Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show the big clock in tmux after N time of inactivity

Tags:

tmux

The big clock can be activated with:

t  big clock

Is it possible to monitor for inactivity and use it like a screensaver?

like image 361
MartinP Avatar asked Nov 09 '22 12:11

MartinP


1 Answers

This is somewhat possible with the introduction of the hook feature in tmux 2.2 & 2.3 (tmux change log)

You should be able to trigger the clock appearing after a window has been silent for a period of time. Monitoring for user inactivity is still not possible.

You can set the window option monitor-silence & use the alert-silence hook to start the clock.

See the tmux 2.3 man page about hooks & monitor-silence.

like image 108
Alex Torok Avatar answered Dec 23 '22 10:12

Alex Torok