Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Rémi Lavedrine
Rémi Lavedrine

Posted on

     

Do you use the Pomodoro Technique?

Hi everyone,

I am wondering if some of you uses thePomodoro technique from time to time, or frequently, in order to improve your focus and then you productivity.


Here is a good video that explains what it is of you don't know what is the Pomodoro technique.

I was using this technique earlier and stopped for a while.
But as I wanted to use it again, I came quickly at looking for a good app that does simple Pomodoro for Linux.
Unfortunately every app around here is either full of setup and features or requires Java or something similar that I don't want to install on my computer.

Then I come with a good idea about it ;-)

"why can't I just use the terminal to set up a timer in the terminal that sends a notification when it has ended?"

As always, pretty easy with the terminal.


1. Step 1 - Start the 25 minutes work session

sleep1500&& notify-send"Your pomodoro session just ended. Have a well deserved 5 minutes break"
Enter fullscreen modeExit fullscreen mode

1500 seconds are 25 minutes. Then the terminal will display a notification that says "Your pomodoro session just ended. Have a well deserved 5 minutes break"

2. Step 2 - Start the well deserved, guilt free break

sleep300&& notify-send"Back to work"# a short, 5-minute break
Enter fullscreen modeExit fullscreen mode

3. Step 3 - Improvement

But, you can also do both launch timer and break timer at once.

sleep1500&& notify-send"Your pomodoro session just ended. Have a well deserved 5 minutes break";sleep300&& notify-send"Back to work"
Enter fullscreen modeExit fullscreen mode

4. Step 4 - Alias (I am a lazy person ;-) )

Add this to your alias file

pomodorostrt='sleep 1500 && notify-send "Your pomodoro session just ended. Have a well deserved 5 minutes break"'pomodorobrk='sleep 300 && notify-send "Back to work"'pomodoro='sleep 1500 && notify-send "Your pomodoro session just ended. Have a well deserved 5 minutes break"; sleep 300 && notify-send "Back to work"'
Enter fullscreen modeExit fullscreen mode

You can change the alias to something shorter. But as I have the autocompletion, I prefer to make it clear. :-)

And then you can just type eitherpomodorostrt orpomodorosbrk to start thework session or thebreak orpomodoro to launch a completePomodoro session.


Another Improvement

You can use zenity (man zenity for further explanation) to have a more sticky notification.

sleep1500&& zenity--warning--text="25 minutes passed"
Enter fullscreen modeExit fullscreen mode

So do you think you can use the terminal to improve you productivity?
Do you use the pomodoro technique and do you think that it has improve your productivity or focus at some point?
Are you using any other time-management technique?

Top comments(12)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
bgadrian profile image
Adrian B.G.
Striving to become a master Go/Cloud developer; Father 👨‍👧‍👦; 🤖/((Full Stack Web|Unity3D) + Developer)/g; Science supporter 👩‍🔬; https://coder.today
  • Email
  • Location
    E EU
  • Education
    Bachelor of Economic Informatics
  • Work
    Cloud Engineer at CrowdStrike
  • Joined

Kind of, but my time is usually 40-50min. I think that hourly brakes are the perfect mix between focus work and healthy work style.

Also in the bash you can detach the process from the current terminal with an & or run the command in a screen (so you can close the terminal or use it for other commands).

sleep3600&& notify-send"get out!" &

or run the notify each hour

watch-n 3600 notify-send"Get Out!"
CollapseExpand
 
shostarsson profile image
Rémi Lavedrine
Software Dev turned Security Dev.Follow me on dev.to, twitch.tv/shostarsson or wildnsecure.com
  • Work
    Lead Security Engineer
  • Joined

Excellent.

CollapseExpand
 
bgadrian profile image
Adrian B.G.
Striving to become a master Go/Cloud developer; Father 👨‍👧‍👦; 🤖/((Full Stack Web|Unity3D) + Developer)/g; Science supporter 👩‍🔬; https://coder.today
  • Email
  • Location
    E EU
  • Education
    Bachelor of Economic Informatics
  • Work
    Cloud Engineer at CrowdStrike
  • Joined

Although I forgot to add, it is a cool idea but I never used the terminal for this, rather I had alarm setups (monday to friday, each hour) on my phone. After a while (few months) my internal clock got used to hourly brakes and I didn't need any alarm, I just knew is time to take a break.

They actually started as a reminder to drink water (I had some issues because of it), and I had to retrain my brain/body :D.

CollapseExpand
 
rhymes profile image
rhymes
Such software as dreams are made on.I mostly rant about performance, unnecessary complexity, privacy and data collection.
  • Joined

I do, I use the pomodoro technique just to help me detach and rest my eyes. We've all had super long coding sessions, this technique helps me move from the chair at regular intervals :D

I don't know about productivity, it's more about health for me ;D

CollapseExpand
 
phlickey profile image
Phil
  • Joined
• Edited on• Edited

This reminds me of when I was staying in a hotel with no WiFi without my phone charger. I needed to set an alarm, but all I had was my laptop. I ultimately ended on

$sleep["I don't remember how many seconds eight hours is"]&& say"wake up wake up wake up wake up wake up"

scared me senseless when it went off, but I woke up on time.

CollapseExpand
 
maxwell_dev profile image
Max Antonucci
Journalist turned full-time coder, part-time ponderer.
  • Location
    New Haven, CT
  • Education
    Syracuse University
  • Work
    Senior Front-end Engineer at AgileSix
  • Joined

That's a creative use of the terminal and, having just tested how the voice sounds on my computer, I don't blame you for being scared when it woke you up haha.

CollapseExpand
 
vlasales profile image
Vlastimil Pospichal
  • Joined
pomodorostrt='sleep 1500 && notify-send "Your pomodoro session just ended. Have a well deserved 5 minutes break"'pomodorobrk='sleep 300 && notify-send "Back to work"'pomodoro='pomodorostrt; pomodorobrk'
CollapseExpand
 
shostarsson profile image
Rémi Lavedrine
Software Dev turned Security Dev.Follow me on dev.to, twitch.tv/shostarsson or wildnsecure.com
  • Work
    Lead Security Engineer
  • Joined

That is what I have in my .bash_aliases file indeed. ;-)

CollapseExpand
 
chrisparnin profile image
Chris🌱Parnin
Assistant prof at NCSU studying software engineering from empirical, hci, and cognitive neuroscience perspectives.
  • Joined

Nice simple hack! I wrote about how I use pomodoro as part of my work philosophyDeliberate Work.

For timers, I built a tool that uses a usb light (blink1), to help have an ambient light timer. Discussion oftasklights here.

CollapseExpand
 
jmourtada profile image
Jonathan Mourtada
I'm a developer. I love coding.
  • Location
    Sweden
  • Joined

I use it when I'm having a hard time to focus. It helps to think that "just give it 25 minutes then you'll have your break".

CollapseExpand
 
stargator profile image
Stargator
Software Engineer, looking to grow into a leader as well as strengthen my backend skills and knowledge.
  • Location
    Washington, DC
  • Education
    B.S. in Computer Science
  • Work
    Software Engineer
  • Joined

Agreed, I used it recently when I really needed to focus and allow myself breaks.

CollapseExpand
 
4lch4 profile image
Devin W. Leaman
I'm just some guy who likes making and fixing things that usually involve a keyboard and/or a mouse.
  • Email
  • Location
    Arkansas, USA
  • Education
    Bachelor's of Science - Information Technology Programming
  • Pronouns
    He/Him
  • Work
    DevOps Engineer/Consultant @ Liatrio
  • Joined

I've wanted to try this for some time but I find it difficult to stop myself if I'm in a groove. It's one thing to get myself going for 20 - 30 minutes but once I do, I'm not fond of stopping just for the sake of a break.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Dev turned Security Dev.Follow me on dev.to, twitch.tv/shostarsson or wildnsecure.com
  • Work
    Lead Security Engineer
  • Joined

More fromRémi Lavedrine

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp