clock-mode HH:MM:SS

259 views
Skip to first unread message

Sven Guckes

unread,
Mar 19, 2021, 12:52:40 PM3/19/21
to * TMUXUSERS
hi! has anyone made *another* BIG CLOCK yet?
possibly with seconds, showing for 5seconds?

Sven

--
$ apropos tmux
tmux (1) - terminal multiplexer
chat: irc://irc.freenode.net/tmux -> use the webchat:
http://webchat.freenode.net/?channels=%23tmux&uio=d4
mail: tmux-...@googlegroups.com
sub: tmux-users...@googlegroups.com
unsub: tmux-users+...@googlegroups.com
FAQ#1: https://github.com/tmux/tmux/wiki/FAQ
FAQ#2: https://github.com/tmux/tmux/wiki/Advanced-Use
signature.asc

Sven Guckes

unread,
May 22, 2021, 7:48:06 PM5/22/21
to TMUXUSERS
* Shehu Dikko <news....@gmx.net> [2021-05-22 17:59]:
> * Sven Guckes [2021-03-19] [gmane.comp.terminal-emulators.tmux.user]:
> > hi! has anyone made *another* BIG CLOCK yet?
> > possibly with seconds, showing for 5seconds?
> https://github.com/xorg62/tty-clock

hey.. that's a nice clock! :-) see it here:
https://www.guckes.net/2021-05-23.tty-clock.png

while tty-clock is running you can move it about manually,
have it rebound (bounce off the walls of the terminal),
make it go back to center, change its color, toggle
the display of the date and a surrounding box.. nice! :)
you can also have it run on the consoles through inittab.

it's 228KB in my account now.. probably a lot more than
tmux's built-in clock.. but maybe this can be adapted?

> % tty-clock -csDC4 -d5s
> However, tmux freezes when that is called from a binding
> bind t run-shell "tty-clock -csDC4 -d5s"
> % tmux -V -> tmux next-3.3
> % uname -vo -> #1 SMP Debian 4.19.181-1 (2021-03-19) GNU/Linux

tried it here on tmux 2.3.. didnt work somehow.
went away to read something.. and returned to
find almost all of my processes gone as the RAM was
filled almost entirely by my run-away tmux. o_O

i used just a slight variation bound to 'T' with
an absolute path and minus the 5sec update delay:

bind T run-shell "~/bin/tty-clock -csDC4"

maybe i should try it again on my laptop with tmux next-3.3
to verify again.. but it's getting late again...

thanks to Shehu for the pointer. and
back to the maillist/newsgroup again..

ps: the irc channel is now on libera.chat!

Sven

--
$ apropos tmux -> tmux (1) - terminal multiplexer
man: http://man.openbsd.org/OpenBSD-current/man1/tmux.1
code: http://tmux.github.io/
tar: https://github.com/tmux/tmux/releases/download/3.2/tmux-3.2.tar.gz
clog: https://raw.githubusercontent.com/tmux/tmux/3.2/CHANGES
chat: old: irc://irc.freenode.net/tmux
-> new: irc://irc.libera.chat/tmux
old webchat: http://webchat.freenode.net/?channels=%23tmux&uio=d4
signature.asc

Sven Guckes

unread,
May 24, 2021, 5:20:30 PM5/24/21
to TMUXUSERS
* Sven Guckes <mailli...@guckes.net> [2021-05-23 01:48]:
> i used just a slight variation bound to 'T' with
> an absolute path and minus the 5sec update delay:
> bind T run-shell "~/bin/tty-clock -csDC4"
>
> maybe i should try it again on my laptop with tmux next-3.3
> to verify again.. but it's getting late again...

i just tried this again.
added the binding.. and..
BOOM! tmux exploded with it.

anyone have an idea what is going wrong here?

having tty-clock as an alternative
"big clock" in tmux would be really nice.

references again:
https://github.com/xorg62/tty-clock
https://www.guckes.net/2021-05-23.tty-clock.png

Sven
signature.asc
Reply all
Reply to author
Forward
0 new messages