I set Power manager to blank the screen after some time of inactivity, eventually locking the screen. For normal use I’m happy with this, but when using certain programs (like Ardour) I’d like to disable this as long as those programs are running.
I found this this related guide and tried replacing flash player with Ardour, but couldn’t get it working.
Xfce power management has a Presentation Mode to disable suspend settings
Left click Power Management plugin in system tray to access control to enable Presentation Mode xfce:xfce4-power-manager:4.16:panel-plugin [Xfce Docs]
or use this command to toggle Presentation Mode on/off
I’d still like a script to automatically enable Presentation Mode when Ardour is running, so I’ll investigate if the mentioned script can be tweaked to check if Ardour is running and if so enable Presentation Mode.
This suggestion seems good, there’s just some minor issues to solve.
Script currently looks like this:
#!/bin/bash
pgrep Ardour >/dev/null
if [[ $? -eq 0 ]]
then
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -T
else
notify-send "ardour is not running!"
fi
Also suggest turn on setting for show-presentation-indicator to show additional icon when presentation-mode is active
The suggested script does not pass shellcheck - SC2181 · koalaman/shellcheck Wiki · GitHub
I suspect that toggling presentation mode might only work every other time
This script would have to be running all the time checking for presence of Ardour
I used to use this script to turn on presentation-mode before starting JACK
(panel launcher for QjackCtl changed to Exec=/usr/bin/sh qjstart)
Since I’m using Cadence to control Jack and closing the Cadence window just minimizes to tray (making complete shutdown easy to forget), I modified your script to start Ardour instead: