Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.
/ openpomodoro-hooks Public archive

🪝 Hooks I use with open-pomodoro cli

License

Notifications You must be signed in to change notification settings

cljoly/openpomodoro-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

🪝 Openpomodoro Hooks

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.

Features

  • Silences notifications (do not disturb mode) with mako and dunst.
    • Also supports an arbitrary script, to integrate with other notification daemons. If ~/.bin/dnd_toggle is an executable file, it will be run (passing it on or off), instead of communicating with mako or dunst.
  • Pause and start the current player. If cmus is in use, it will pause and start it instead of any other player.

Installation

  1. Set up the open-pomodoro cli
  2. Drop the hooks folder in ~/.pomodoro/hooks/.

Optional Dependencies

If the following programs are present, the hook will opportunisticaly start and pause the current music player, mute notifications…

Automatic Update with Chezmoi (NOT Required)

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

Sponsor this project

Languages