wlclock(1)

πŸ“¦
version 1.0.1 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– wlclock β€” bestie edition πŸ’–

okay so this is the manual page for wlclock(1), version 1.0.1, and honestly? she's iconic. let's get into it 🫢


✨ NAME ✨

wlclock β€” a digital analog clock for Wayland. yes, it says "digital analog," we don't make the rules, we just vibe with them πŸ’…


🌸 DESCRIPTION 🌸

so basically wlclock puts an analog clock on your Wayland desktop. that's the whole thing. that's her job. she's doing it beautifully. ✨

she's inspired by xclock(1), and the default config was literally hand-picked to mimic it β€” like, a loving tribute, no cap. BUT. and this is the important part bestie: unlike xclock, wlclock is not a regular window. she's a desktop-widget. main character energy, but she stays in her lane. πŸ‘‘

heads up: your Wayland compositor must implement the Layer-Shell and XDG-Output for wlclock to work. no implementation, no clock. it's giving prerequisites, fr fr. 😭

πŸŽ€ OPTIONS πŸŽ€

every single flag, present and accounted for. nothing skipped, we don't do that here. πŸ’–

  • -h, --help β€” show the help message and dip out. ✨
  • -V, --version β€” show the version and exit. she's telling you who she is.
  • -v, --verbose β€” crank up the logging verbosity. more words! more info! πŸ’¬
  • --background-colour <colour> β€” the background colour of the clock. default is "#FFFFFF". 🀍
  • --border-colour <colour> β€” the border colour of the clock. default is "#000000". πŸ–€
  • --border-size <size>, --border-size <top> <right> <bottom> <left> β€” set the border size. you either give her one argument to set every border at once, or four arguments to do each side individually, like a lil custom fit. default border size is 1. πŸ“
  • --clock-colour <colour> β€” the colour of the clock elements. default is "#000000". ⏰
  • --corner-radius <radius>, --corner-radius <top-left> <top-right> <bottom-right> <bottom-left> β€” the radius of the corners. expects either one argument to round all four corners equally, or four arguments for individual corner radii. if you go high enough with the values, wlclock becomes completely round (circle clock era πŸŒ•). set it to 0 to turn corner roundness off entirely. default radius is 0. πŸŽ€
  • --exclusive-zone <option> β€” the exclusive zone of the surface. options are "true", "false" or "stationary".
    • "true" β†’ the compositor is told it shouldn't obstruct wlclock's surface with other surfaces.
    • "false" β†’ the compositor is told it can place other surfaces over or under wlclock's surface.
    • "stationary" β†’ the compositor is told that wlclock's surface shouldn't be moved around to accommodate other layer shell surfaces, and that it can freely place other surfaces over or under her.
    • the default is "stationary".
    • > real talk: the exact implementation is compositor dependant. a compositor may just straight up ignore the requested exclusive zone of surfaces. so... yeah. πŸ™ˆ
  • --hand-width <size> β€” the width of the clock hands. if you set it to 0, wlclock draws xclock-like clock hands. default is 0. πŸ•°οΈ
  • --layer <layer> β€” the layer of the layer surface. can be "overlay", "top", "bottom" or "background". typically "bottom" and "background" end up underneath regular windows, while "top" and "overlay" end up above them β€” but the exact placement on the z axis depends on how the compositor implements it. default layer is "overlay". 🌈
  • --margin <size>, --margin <top> <right> <bottom> <left> β€” set the margin. either one argument for all margins, or four arguments for each one individually. default margin is 0. πŸ“
  • --marking-width <size> β€” the width of the markings on the clock face. default is 1. πŸ”’
  • --namespace <namespace> β€” the namespace of the layers surface. some compositors treat layer surfaces differently depending on their namespace, so this is your lil label. default is "wlclock". 🏷️
  • --no-input β€” with this flag, wlclock asks the compositor to not send her input events. result: mouse events pass straight through wlclock to the windows beneath her. ghost clock behaviour πŸ‘»
  • --output <output name> β€” the name of the output where wlclock should show up. output names are compositor dependant. if you set it to "all" or "*", wlclock shows on all outputs β€” and that's the default behaviour. πŸ–₯️✨
  • --position <position> β€” set the position of the clock. can be "center", "top", "right", "bottom", "left", "top-right", "top-left", "bottom-right" and "bottom-left". defaults to "center". πŸ“
  • --size <size> β€” the size of the clock, without borders. default size is 165. πŸ“¦
  • --snap β€” with this flag, the hour hand instantly snaps to the next position once the new hour begins, instead of slowly creeping over the course of the hour. no more gradual drift, we go straight to the point πŸ’₯

🌈 COLOURS 🌈

wlclock can parse hex code colours and read RGB values directly. she's flexible like that. πŸ’…

the supported formats are:

  • "#RRGGBB" and "#RRGGBBAA" β€” hex code colours
  • "0xRRGGBB" and "0xRRGGBBAA" β€” hex code colours, the 0x way
  • "rgb(rrr,ggg,bbb)" and "rgba(rrr,ggg,bbb,aaa)" β€” RGB colours

πŸ‘‘ AUTHORS πŸ‘‘

Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>


and that's the whole page, bestie!! 🫢 she's wlclock(1), she's Version 1.0.1, and this manual was dated 2025-10-20 β€” so if you're reading this way in the future, hi, hope the clock still slays. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from