mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-02 12:54:39 +00:00
Fish: New timer
This commit is contained in:
parent
f5b8854cac
commit
28e6afe3f1
|
@ -1,7 +1,7 @@
|
|||
# PATHS #
|
||||
set -gx ANDROID_HOME $D/Installs/Android/sdk
|
||||
set fish_user_paths $D/Tools/bin $ANDROID_HOME/platform-tools /sbin /bin /usr/sbin /usr/bin
|
||||
set fish_function_path $D/Games/Minecraft/Game/functions $fish_function_path
|
||||
set fish_function_path $fish_function_path $D/Games/Minecraft/Game/functions
|
||||
|
||||
# PROGRAM SETTINGS #
|
||||
set -gx EDITOR nvim
|
||||
|
|
14
.config/fish/functions/timer.fish
Normal file
14
.config/fish/functions/timer.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Defined in /tmp/fish.HpGyIZ/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!
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue