Add jj/kitty/nvim/opencode/paru/fish/yazi/jjui
This commit is contained in:
11
fish/files/functions/pomodoro.fish
Normal file
11
fish/files/functions/pomodoro.fish
Normal file
@@ -0,0 +1,11 @@
|
||||
function pomodoro --argument type
|
||||
set -l durations work 45 break 10
|
||||
set -l idx (contains -i -- $type $durations)
|
||||
|
||||
if test -n "$idx"
|
||||
set -l minutes $durations[(math $idx + 1)]
|
||||
echo $type | lolcat
|
||||
timer {$minutes}m
|
||||
espeak "$type session done"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user