mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-08-29 20:12:42 +00:00
751 B
751 B
timer_and_stopwatch
A minimal timer and stopwatch blocklet. Right click switches between the two functionalities, left click starts/stops the counter, wheel sets the timer or the initialial stopwatch time.
- Copy the script into your directory of choice, e.g. ~/.i3blocks/blocklets
- Give it execution permission (
chmod +x timer_and_stopwatch
) - Add the following blocklet to your i3blocks.conf:
[timer_and_stopwatch]
# the DEFAULT_MODE variable must be either timer or stopwatch
format=json
interval=1
#TIMER_LABEL=TM
#STOPWATCH_LABEL=SW
#DEFAULT_MODE=timer
#DEFAULT_STOPWATCH=0
#DEFAULT_TIMER=60
#PLAY_LABEL=(playing)
#PAUSE_LABEL=(paused)
#TIMER_LOOP=true
#NEUTRAL_COLOR=#000000