How to display a symbol similar to the undervoltage symbol on raspberry pi

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

refalo,

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

PrettyFlyForAFatGuy,

not sure where it is tbh

juliebean,

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

maiskanzler,

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,

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

Ludrol,
@Ludrol@szmer.info avatar

Maybe write it as an GNOME or KDE plugin?

breakcore,

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

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

PrettyFlyForAFatGuy,

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • ethstaker
  • DreamBathrooms
  • cubers
  • mdbf
  • everett
  • magazineikmin
  • Durango
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • GTA5RPClips
  • ngwrru68w68
  • JUstTest
  • thenastyranch
  • cisconetworking
  • khanakhh
  • osvaldo12
  • InstantRegret
  • normalnudes
  • Leos
  • tacticalgear
  • tester
  • megavids
  • anitta
  • provamag3
  • lostlight
  • All magazines