Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wayland OSD clock?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2669

PostPosted: Fri Jan 31, 2025 10:47 am    Post subject: Wayland OSD clock? Reply with quote

I'm looking for something that will be on my screen but will be transparent and not take focus to show me the time and maybe some other notifications, but most importantly, time. I don't want status bars and similar. Currently I have a keybind in Hyprland to invoke SwayOSD that displays the output of date as an OSD message but I don't find that very convenient.

Can somebody point me to something that supports Wayland? Or give me an idea how to achieve that?

Best Regards,
Georgi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3906
Location: Rasi, Finland

PostPosted: Fri Jan 31, 2025 11:30 am    Post subject: Re: Wayland OSD clock? Reply with quote

logrusx wrote:
I don't want status bars and similar.
Maybe not the answer you're looking for, but yambar is very light on resources. Maybe you could configure it so that it only displays time?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2669

PostPosted: Fri Jan 31, 2025 11:43 am    Post subject: Re: Wayland OSD clock? Reply with quote

Zucca wrote:
logrusx wrote:
I don't want status bars and similar.
Maybe not the answer you're looking for, but yambar is very light on resources. Maybe you could configure it so that it only displays time?


Thanks, I'll check it out. In the mean time I found this:

https://git.sr.ht/~proycon/wayout

It works like that:

Code:
while :; do date +%H:%M:%S; sleep 1; done | wayout --feed-line --layer overlay &


I'm still tinkering with it, but exec-once of the above line in hyprland.conf should suffice. If I figure out how to position it where I want it... :)

And you can find it packaged here, if you're interested: https://github.com/logrusx/gentoo/tree/master/gui-apps/wayout

Best Regards,
Georgi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3906
Location: Rasi, Finland

PostPosted: Fri Jan 31, 2025 11:53 am    Post subject: Reply with quote

Nice.
I could use wayout to display cal -w3m output instead of a terminal window.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2669

PostPosted: Fri Jan 31, 2025 12:28 pm    Post subject: Reply with quote

Zucca wrote:
Nice.
I could use wayout to display cal -w3m output instead of a terminal window.


Unfortunately only predefined locations are available: top, bottom, left, right and their corresponding combinations. Also something like color inversion or blurring is not available so sometimes the text won't be visible depending on the background.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3906
Location: Rasi, Finland

PostPosted: Fri Jan 31, 2025 12:47 pm    Post subject: Reply with quote

I think I could give it a try anyways. Doesn't hurt to test it.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2669

PostPosted: Fri Jan 31, 2025 1:07 pm    Post subject: Reply with quote

Choose the appropriate layer. For me it's top or overlay as be it fixed poisons, it still allows me to put it over windows headers and I want to see it all the time. For you it might be appropriate not to alter it if you want to just trigger it by a hot key on an empty screen. Otherwise it's going to cover a lot of what you're doing.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum