diff --git a/.config/fish/functions/timer.fish b/.config/fish/functions/timer.fish index b998971..bc4ce8e 100644 --- a/.config/fish/functions/timer.fish +++ b/.config/fish/functions/timer.fish @@ -1,14 +1,10 @@ -# Defined in /tmp/fish.HpGyIZ/timer.fish @ line 2 +# Defined in /tmp/fish.99BpV1/timer.fish @ line 2 function timer - if tty | grep 'not a tty' - qb / ":quickmark-load timer"; - else - while true - for i in (seq -w 1200 -1 0) - echo (math -s0 $i/60):(math $i%60) - sleep 1 - end - zenity --info --text=Time to take a break! + tmux new-session -d 'while true + for i in (seq -w 1200 -1 0) + echo (math -s0 $i/60):(math $i%60) + sleep 1 end - end + zenity --info --text=Time to take a break! + end' end diff --git a/.config/fish/functions/up.fish b/.config/fish/functions/up.fish index 238231a..3f9193c 100644 --- a/.config/fish/functions/up.fish +++ b/.config/fish/functions/up.fish @@ -1,8 +1,4 @@ -# Defined in /tmp/fish.qPw09H/up.fish @ line 2 +# Defined in /tmp/fish.xDL739/up.fish @ line 2 function up - if tty | grep 'not a tty' - st -e sudo eopkg up --y - else - se up --y - end + se up --y end