You are not logged in.
Pages: 1
This might make a useful addition to the documentation.
Presentation mode turns off the screen saver and automatic locking. It is nice while you are watching a movie or giving a presentation.
Ordinarily you can access it from the upper panel, power manager plugin. You may have to enable it: right click on the power manager plugin, go to properties, and enable "Show 'Presentation mode' indicator:".
However you may want to toggle it on or off in a script. If so:
xfconf-query -c xfce4-power-manager -n -p /xfce4-power-manager/presentation-mode -T
That works fine in a terminal window as well.
Now, suppose you want to assign that to a keystroke, say <Alt>p? Do this:
xfconf-query -v -c xfce4-keyboard-shortcuts -n -p "/commands/custom/<Alt>p" -t string -s "xfconf-query -c xfce4-power-manager -n -p /xfce4-power-manager/presentation-mode -T"
I welcome suggestions for improvement.
Offline
Pages: 1
[ Generated in 0.010 seconds, 9 queries executed - Memory usage: 512.76 KiB (Peak: 513.38 KiB) ]