Improvised Pomodoro Technique® timer on KDE based Linux…

There’s no freaking working tomato timer available on a KDE based Linux distros! Can you believe it? I’ve become a nerdy MacGyver to overcome this.

The solution is KTimer with some crafty commands to execute. Let’s check what I did:

  1. I’ve created pomodoro timers 25 min for working, 5 min for short breaks and 15 min when I’m exhausted (normally it occurs after 4 cycles of 25 minutes work).
  2. I’ve decided that my Spotify should pause when I’m chilling (because I work in a headphones, so I need to take them off when I’m leaving my desk).
  3. After break, my Spotify starts to play from the last spot.

You can use any other command pasted into Command line input (two at time aren’t working, dunno why). Some examples? Here you are:

Play/pause Spotify client:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause

Show KDE notification:

kdialog --passivepopup "Job finished"

Say something:

spd-say "Go back to work you lazy Motherfucker"

You can use whatever you want (maybe some electrocution device) or wrap commands into bash file (maybe statistics API). Sky is the limit mate!




Comments

0 responses to “Improvised Pomodoro Technique® timer on KDE based Linux…”

  1. Byron Montes Avatar
    Byron Montes

    Thanks for the post, but you need to check this app:
    http://manuel-kehl.de/projects/go-for-it/

    1. Konrad Fedorczyk Avatar
      Konrad Fedorczyk

      Hi,
      It looks really nice! I’ll give it a try. Also I’ve gave you a star on Github 🙂