TTY-CLOCK(1)
π TTY-CLOCK(1) π
okay bestie, welcome to the User Commands section of the manual, because today we're talking about tty-clock and she is that girl. πβ¨
πΈ NAME πΈ
tty-clock β a terminal digital clock. that's it, that's the whole vibe. a clock. in your terminal. iconic behavior. π
π SYNOPSIS π
tty-clock [-iuvsScbtrahDBxn] [-C [0-7]] [-f format] [-d delay] [-a
nsdelay] [-T tty]
likeβ¦ look at her. so many little letters. she's giving options. π
π¦ DESCRIPTION π¦
so tty-clock displays a simple digital clock on the terminal. no cap. π°οΈ
if you invoke her with zero options, she'll pop the clock up in the upper left corner of the screen, on the terminal you ran her from. like she just shows up. main character energy fr fr. π
π§ COMMANDS π§
once she's running, tty-clock accepts a bunch of runtime keyboard commands, and bestie β upper and lower case characters are treated identically. so don't stress about caps lock, she doesn't care. π
K,J,H,Lβ vi-style movement commands, aka how you set the position of the displayed clock. tiny little nudge-nudges. β¬οΈβ¬οΈβ¬ οΈβ‘οΈ
heads up tho: these do nothing when the centered option is set. she's centered, she's staying centered, periodt.
[0-7]β pick a different color for displaying the clock. rainbow moment πBβ toggles between bold and normal colors.Xβ toggles displaying a box around the clock. this one is disabled by default.Cβ toggles the clock's position to centered. when this is set, the movement commands are disabled. no take-backs, she's the center of attention now πRβ sets the clock to rebound along the edges of the terminal. she bounces. she's playful. πSβ display seconds. tick tock bestie β±οΈTβ switch the time output to the 12-hour format.Qβ quit. bye queen π«Ά
β¨ OPTIONS β¨
one bullet per flag, no skips, we're thorough in this house π
-sβ show seconds.-Sβ screensaver mode.tty-clockterminates the moment any key is pressed. spooky lil clock π«£-xβ show box.-cβ set the clock at the center of the terminal.-C [0-7]β set the clock color. pick your era π¨-bβ use bold colors.-tβ set the hour in 12h format.-uβ use UTC time. international clock, she travels βοΈ-T ttyβ display the clock on the given tty.ttymust be a valid character device to which the user has rw access permissions. (peep the EXAMPLES section, bestie π)-rβ do rebound the clock. she bounce.-f formatβ set the date format, as described instrftime(3). go read that page if you wanna get fancy π-nβ do not quit the program when theQkey is pressed (or when any key is pressed while in Screensaver mode). instead, a signal must be sent totty-clockin order to terminate its execution. she's unkillable by keyboard alone π (again: see EXAMPLES)-vβ showtty-clockversion.-iβ show some info abouttty-clock.-hβ show usage information.-Dβ hide the date.-Bβ enable the blinking colon. the lil:that goes blinky blinky. lowkey mesmerizing π΅βπ«-d delayβ set the delay (in seconds) between two redraws of the clock. default1s.-a nsdelayβ additional delay (in nanoseconds) between two redraws of the clock. default0ns.
π₯ EXAMPLES π₯
okay so example number one: invoking tty-clock in screensaver mode, with the clock display set to rebound and the update delay set to 1/10th of a second (10 FPS):
$ tty-clock -Sra 100000000 -d 0
10 FPS clock that bounces and also dies when you touch a key. she's fragile but she's fun π
and now the glow-up example: this one arranges for tty-clock to be displayed indefinitely on one of the Virtual Terminals on a Linux system at boot time, using an inittab(5) entry:
# /etc/inittab:
9:2345:respawn:/usr/bin/tty-clock -c -n -T /dev/tty9
she lives on tty9 now. forever. she's not leaving. respectfully π«Ά
real talk for a sec:-Tneeds a valid character device with rw access for your user, and-nmeans no keyboard quit β you have to send a signal. don't come crying to me when you can't Ctrl+C your way out of your own choices, bestie. π
okay that's the whole page!! tysm for reading, you ate that fr fr. this beauty comes to you courtesy of the October 2013 release β yeah she's an elder but she still serves, and that's on periodt. ππ¦β¨ mwah, go stare at a clock in your terminal like the icon you are. π
π¦ where this page comes from
- debian trixie: tty-clock 2.3+git.20211121.f2f847c-1 Β· BSD-3-Clause
- nixos 26.05: tty-clock 2.3+unstable=2021-04-07
- nixpkgs unstable: tty-clock 2.3-unstable-2021-04-07
- ubuntu questing: tty-clock 2.3+git.20211121.f2f847c-1
- ubuntu resolute: tty-clock 2.3+git.20211121.f2f847c-1build1 Β· BSD-3-Clause
- ubuntu stonking: tty-clock 2.3+git.20211121.f2f847c-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms