You are not logged in.

#1 2020-10-26 07:06:10

wombatvvv
Member
Registered: 2016-07-29
Posts: 50

How to make a clock overlay on the desktop?

Hej,

I'm experimenting with my OpenBox setup without a panel or taskbar or any window decorations (I control them using the keyboard).

So far I quite like it, but I'm missing the system clock for some reason (I wear a watch!). It would be nice to have it displayed just as a semi-opaque overlay in the bottom right corner that goes over any open windows. Is that possible? If yes, can someone point me in the right direction

Offline

#2 2020-10-26 10:21:32

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 1,001
Website

Re: How to make a clock overlay on the desktop?

If it were drawing on desktop only, I would say use conky (there are million configs out there), but since you want it to go over any open window, I'd say try osd_cat (part of xosd package), it's not pretty but it works:

while true; do date; sleep 1; done | osd_cat -c red -o 40 -i 30 -p bottom -l 1 -d 1 -f -*-*-*-*-*-*-18-*-*-*-*-*-*-*

Use xfontsel to select a suitable font value.

Offline

#3 2020-10-26 15:28:35

arch_jsb
Member
Registered: 2010-03-13
Posts: 28

Re: How to make a clock overlay on the desktop?

-f 6x13 is aliased to some long font name.  FWIW. [from stackexchange I think ]

Offline

#4 2020-10-26 15:32:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,610
Website

Re: How to make a clock overlay on the desktop?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-10-26 20:12:22

arch_jsb
Member
Registered: 2010-03-13
Posts: 28

Re: How to make a clock overlay on the desktop?

Per the post above:

while true; do date; sleep 1; done | osd_cat -c green -o 400 -i 10 -p top -l 1 -d 1 -f 9x15

Though this way it is more noticeable but not in any way in the way of the other
stuff on the screen unless it's production work or something.

Last edited by arch_jsb (2020-10-26 20:14:55)

Offline

Board footer

Powered by FluxBB