Creating a simple Pomodoro timer for i3

A terminal based Pomodoro coountdown doesn’t appear to exist but can be created simply in i3’s config file.

It requires the following packages to enable “notify-send” which is a simple gtk popup notification.

  • libnotify-bin
  • libnotify4

# Pomodoro start and end notifications
bindsym $mod+Control+p exec notify-send --icon=gtk-info Pomodoro "Focus for 25 minutes" && sleep 2500 && notify-send --icon=gtk-info Pomodoro "Take a 5 minute break"

This quick notification will dismiss itself in a few seconds, if you blink you may miss it.

As an alternative I’m also considering adding my bash command to lock the system and force that me to at least put in my password to continue.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.