Ask Your Question

How to show a notification popup in Gnome-shell 3.30 indicating a battery value below certain threshold?

asked 2018-12-29 05:17:32 -0500

q2dg gravatar image

Hello. In Control Center->Notifications there's no any option about Energy. In Contro Center->Energy there's no any option about notifications. I'm using a brand new Fedora 29, which uses Upower. Thanks a lot.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-29 08:40:06 -0500

hhlp gravatar image

updated 2018-12-29 08:41:01 -0500

you have a various option :

  1. select a gnome-shell that provides this features
  2. make a script :

  3. use (GNOME) Tweaks under Top Bar -> battery porcentege

Regards., HTH

edit flag offensive delete link more

answered 2018-12-29 09:39:07 -0500

q2dg gravatar image

Thanks a lot for giving me some clues.

*I've searched several Gnome extensions but none has convinced me...most are outdated.

*Tweak related to "Top Bar" is not what I want.

"Ubuntu-16-battery-notification" is a Bash script which uses a cronjob to run acpi command to get the desired value and then launch notify-send. I haven't acpi command installed (Fedora comes with Upower instead) but this would not be a problem...The problem is the cronjob is a very ugly way, I think.

*"Battery-monitor" is a Python script which seems quite good but it uses acpi command too. I'll try it, anyway. But before, as maybe this solution is a little overkill and my Fedora uses DBus-based UPower service, I'll try to implement an idea you have given me: I'll try to adapt the script shown in first answer in to my use case.


edit flag offensive delete link more


Well, I've just noticed that simply activating general notifications button in Control Center-Notification windows, without having to activate any of specific program notification, it works.

q2dg gravatar imageq2dg ( 2018-12-29 17:28:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-12-29 05:17:32 -0500

Seen: 87 times

Last updated: Dec 29 '18