this post was submitted on 21 Apr 2024
31 points (97.0% liked)

Linux

48328 readers
641 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I want to display a symbol at the top right of one or both of my screens, similar to the lightning bolt symbol raspberry pi OS uses to indicate lack of power, when certain conditions are met.

I'm pretty sure i could cobble a bash script together to decide when to do it, but it's the actual displaying of the symbol i'm not sure where to start on. It would need to appear on top of anything else that may be on the screen at the time

Everything i have tried googling returns irrelevant results

top 8 comments
sorted by: hot top controversial new old
[–] breakcore@discuss.tchncs.de 8 points 7 months ago (1 children)

What you are looking for is some kind of on screen display overlay.

I found this, see if it can be of any use : https://github.com/vascofazza/Retropie-open-OSD

[–] PrettyFlyForAFatGuy@feddit.uk 3 points 7 months ago

looks similar, i might be able to adapt something from this, thanks

[–] juliebean@lemm.ee 2 points 7 months ago

would a notification work? notify-send seems like it could fit the bill.

[–] maiskanzler@feddit.de 1 points 7 months ago (1 children)

Does it have to be an overlay or would a regular notification that pops up suffice? Those may be quite easy to write fir your chosen DE.

[–] PrettyFlyForAFatGuy@feddit.uk 2 points 7 months ago

I tend to ignore the KDE notifications. i want something that will be on screen until i take certain mitigating actions

[–] Ludrol@szmer.info 1 points 7 months ago

Maybe write it as an GNOME or KDE plugin?

[–] refalo@programming.dev -1 points 7 months ago (1 children)

Why not just look at the lightning bolt code and use that?

[–] PrettyFlyForAFatGuy@feddit.uk 1 points 7 months ago

not sure where it is tbh