I hacked my clock to control my focus
2 minutes
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.
This hack requires:
Install Panel Date Format from the GNOME Extensions website.
Create a file named Make it executable:
For easy access from any terminal:
Now you can type Screenshot of how it looks like when the focus is set to 'Agents'
This hack works because it piggybacks on an existing behavior pattern rather than trying to create a new one.
You could extend this with:
How I hacked my clock to control my focus
Implementation
1. Install the Panel Date Format extension
# If you don't have the GNOME Shell extensions manager
sudo apt install gnome-shell-extensions
2. Create a focus script
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"
chmod +x focus.sh
3. Add to your PATH
# Add to ~/.bashrc or ~/.zshrc
export PATH="$PATH:/path/to/your/script"
Usage
focus.sh Coding
or focus.sh Marketing
and your clock features a persistent reminder of your intended focus.
Why This Works
Extensions
Stay in the Loop:
Hear my takes on machine learning and solopreneurship:
290 Words
May 11, 2025
What's Your Reaction?






