Skip to content

Instantly share code, notes, and snippets.

@cljoly
Last active January 8, 2022 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cljoly/d795f3057f6561ec59b44da6573bbe24 to your computer and use it in GitHub Desktop.
Save cljoly/d795f3057f6561ec59b44da6573bbe24 to your computer and use it in GitHub Desktop.
Open pomodoro hooks
#!/usr/bin/env bash
set -exo pipefail
notify-send -u critical "🍅 break"
makoctl set-mode normal
# dunstctl set-paused false || echo "Error with dunst"
cmus-remote -s
#!/usr/bin/env bash
set -exo pipefail
t=4
notify-send -t $t -u critical "🍅 start"
sleep $t
makoctl set-mode do-not-disturb
# dunstctl set-paused true || echo "Error with dunst"
cmus-remote -f ~/Sync/mynoise_noise_colors/11_Ocean\ In\ Pink.opus
cmus-remote -C "set repeat_current=true"
#!/usr/bin/env bash
set -exo pipefail
notify-send -u critical "🍅 stop"
makoctl set-mode normal
# dunstctl set-paused false || echo "Error with dunst"
cmus-remote -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment