[SOLVED] Powermanager settings from shell

I’ve realized that when playing music using Audacious (and doing nothing else for a while) my system goes to sleep. A workaround is right click the battery icon and select Presentation mode. I’d like to automate this - make a script that sets presentation mode when Audacious starts, and unset the same thing when Audacious exits. But I can’t find any way to change this setting from shell. Does anyone know how to do this setting from shell script?

You can use the following commands in your script or keyboard shortcut(s) to set the value for the presentation mode of the Xfce power manager.

To set it to on:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s true

To set it to off:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -s false

To toggle the property on/off:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -T
1 Like

Thanks a lot!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.