mirror of
https://github.com/Phantop/dotfiles
synced 2025-11-30 16:17:15 +00:00
Fish: Less redundant update and timer functions
This commit is contained in:
parent
dd545a4a7d
commit
6a0016768d
|
|
@ -1,14 +1,10 @@
|
||||||
# Defined in /tmp/fish.HpGyIZ/timer.fish @ line 2
|
# Defined in /tmp/fish.99BpV1/timer.fish @ line 2
|
||||||
function timer
|
function timer
|
||||||
if tty | grep 'not a tty'
|
tmux new-session -d 'while true
|
||||||
qb / ":quickmark-load timer";
|
for i in (seq -w 1200 -1 0)
|
||||||
else
|
echo (math -s0 $i/60):(math $i%60)
|
||||||
while true
|
sleep 1
|
||||||
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!
|
|
||||||
end
|
end
|
||||||
end
|
zenity --info --text=Time to take a break!
|
||||||
|
end'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
# Defined in /tmp/fish.qPw09H/up.fish @ line 2
|
# Defined in /tmp/fish.xDL739/up.fish @ line 2
|
||||||
function up
|
function up
|
||||||
if tty | grep 'not a tty'
|
se up --y
|
||||||
st -e sudo eopkg up --y
|
|
||||||
else
|
|
||||||
se up --y
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue