Find Related products on Amazon

Shop on Amazon

I hacked my clock to control my focus

Published on: 2025-07-15 18:12:42

I often get distracted. I obviously don’t like it. So I decided to turn my computer’s clock into a constant reminder to help me focus. Implementation This hack requires: Ubuntu with GNOME desktop environment The Panel Date Format extension A simple bash script # If you don't have the GNOME Shell extensions manager sudo apt install gnome-shell-extensions Install Panel Date Format from the GNOME Extensions website. 2. Create a focus script Create a file named focus.sh in your preferred location: #!/bin/bash # Set focus text from command line argument or prompt user if [ -z " $1 " ] ; then echo "What's your current focus?" read FOCUS else FOCUS = " $1 " fi if [ -z " $FOCUS " ] ; then dconf write /org/gnome/shell/extensions/panel-date-format/format "'%b %d %H:%M'" else dconf write /org/gnome/shell/extensions/panel-date-format/format "'%b %d %H:%M Focus: $FOCUS '" fi echo "Focus set to: $FOCUS " Make it executable: chmod +x focus.sh 3. Add to your PATH For easy access from a ... Read full article.