query the power manager?

ToddAndMargo ToddAndMargo at zoho.com
Fri Mar 2 19:43:54 CET 2018


On 02/26/2018 02:18 PM, ToddAndMargo wrote:
> Hi All,
> 
> Is there a way from the command line to query the Xfce
> Power Manager to see what is going on with it?  I am
> specifically looking to see if presentation mode is
> enabled
> 
> 
> Many thanks,
> -T
> 


Followup:

Presentation mode drives me nuts when it starts and does not
tell me it is enabled (it messes up my screensaver).

https://bugzilla.xfce.org/show_bug.cgi?id=14210

So I wrote myself the following and placed it in start up:

<code PresentationMode.sh>
#!/bin/bash

sleep 5s

# ture|false
PresentationMode=$(xfconf-query -c xfce4-power-manager -p 
/xfce4-power-manager/presentation-mode)

if [ "$PresentationMode" == "true" ]; then
    notify-send --urgency=normal \
    --icon 
/usr/share/icons/oxygen/base/64x64/mimetypes/x-office-presentation.png \
    --expire-time 0  Xfce4-power-manager  "Presentation Mode is Enabled"
fi
</code>




More information about the Xfce mailing list