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!

Published by

Konrad Fedorczyk

Konrad Fedorczyk

I'm interested in programming and gamedev. I especially luv HTML5 and everything connected to web technologies.

Leave a Reply

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