Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-03-20 10:43:16

sh4tr
Member
Registered: 2014-03-20
Posts: 32

[Solved] Battery icon menu- minimal? normal/presentation switch

Kernel: 3.12.13-1-MANJARO i686 (32 bit) Desktop: Xfce 4.11.3 X.Org: 1.14.5

Is it possible to edit the right click battery icon menu in the notification area so it would only contain "Normal" and "Presentation", to hide "Close program","About","Help","Suspend" and the other options? It is for my parents who have no experience even with m$windows and I want to make it simple for them, right click on battery icon and left click "Normal" or "Presentation".

Last edited by sh4tr (2014-03-20 18:26:04)

Offline

#2 2014-03-20 13:32:04

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: [Solved] Battery icon menu- minimal? normal/presentation switch

I don't think you can, its hard-coded.

However, if all you need is to control the mode (I'm assuming you want to temporarily disable all DPMS and screen blanking), then you can fully hide the battery icon (Preferences -> System Tray Icon = "Never Show Icon") and use another method to temporarily disable screen blanking (maybe a launcher toggle?). More info on this can be found at the Display Power Management Signaling Arch wiki article.

Last edited by ToZ (2014-03-20 13:33:21)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-03-20 16:48:42

sh4tr
Member
Registered: 2014-03-20
Posts: 32

Re: [Solved] Battery icon menu- minimal? normal/presentation switch

Yes, I have disabled screen saver blanking and want to temporarily disable dpms sometimes. The battery icon is not needed and can bring confusion or complications since it offers easy access to configuration options which would be best to remain hidden. But I did not find any other way to switch power modes except from it. Is a launcher toggle possible?

Offline

#4 2014-03-21 14:57:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: [Solved] Battery icon menu- minimal? normal/presentation switch

You can use a script like this one:

#!/bin/bash
# DPMS/blanking toggle
# Requires: libnotify gnome-icon-theme

STATUS=$(xset -q | grep DPMS | cut -d' ' -f5 | tail -n1)
if [ "$STATUS" == "Enabled" ]; then
	xset -dpms 
	xset s off
	notify-send "DPMS Status" -i non-starred "Disabled"
else
	xset +dpms
	xset s on
	notify-send "DPMS Status" -i starred "Enabled"
fi

Save it somewhere, make it executable and add it as a launcher. It will toggle the dpms and s states and send out a notification when clicked.

Note: This assumes that "xset -dpms; xset s off" in fact disables screen blanking/dpms for you.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2014-03-22 18:05:54

sh4tr
Member
Registered: 2014-03-20
Posts: 32

Re: [Solved] Battery icon menu- minimal? normal/presentation switch

Thank you very much.

Offline

Board footer

Powered by FluxBB