diff options
-rwxr-xr-x | .local/bin/caffeine | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/caffeine b/.local/bin/caffeine index 014ee7d..ed4eb81 100755 --- a/.local/bin/caffeine +++ b/.local/bin/caffeine @@ -55,7 +55,8 @@ caf_time() { dep_check "$menu" - printf "1m\n3m\n5m\n10m\n15m\n30m" | "$menu" -p " sleep after " + time="$(printf "1m\n3m\n5m\n10m\n15m\n30m" | "$menu" -p " sleep after ")" + echo "${time%m}" } drink() |