summaryrefslogtreecommitdiff
path: root/README.md
blob: 273cbaa6ef696181fb905311f4ecb8612bbd819f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This program sets your X servers root window name as the current time in 12-hour binary. This allows dwm to use it in their status bar. Other window managers may also use this string for something. I use it with dwm as a clock to practice recognising binary numbers quickly.

arguments:

````-d: display time in decimal format (HH:MM)````


````-m: Use the 24-hour time format````


compile:
````cc binstatus.c -lX11 -o binstatus````


run:
````./binstatus &````


You may prefer to put this in your .xinitrc file and move the binary to somewhere like /usr/bin.