Archived: I’m not changing this configuration anymore, but it is still working.
Hooks I use with open-pomodoro cli. It is mostly oriented toward a sway/i3 desktop environment and text based programs.
- Silences notifications (do not disturb mode) with mako and dunst.
- Also supports an arbitrary script, to integrate with other notification daemons. If
~/.bin/dnd_toggleis an executable file, it will be run (passing itonoroff), instead of communicating with mako or dunst.
- Also supports an arbitrary script, to integrate with other notification daemons. If
- Pause and start the current player. If cmus is in use, it will pause and start it instead of any other player.
- Set up the open-pomodoro cli
- Drop the
hooksfolder in~/.pomodoro/hooks/.
If the following programs are present, the hook will opportunisticaly start and pause the current music player, mute notifications…
Chezmoi external feature allows you to auto update and manage the hooks, by adding the following to your ~/.local/share/chezmoi/.chezmoiexternal.toml:
[".pomodoro/hooks/"]
type = "archive"
url = "https://github.com/cljoly/openpomodoro-hooks/archive/refs/heads/main.zip"
exact = true
stripComponents = 2