Disable and Enable Screensaver via Bash Script
- Date: Mon, 15 Oct 2018 23:51:48 +0000
- From: Matthew Crews <mailinglists@xxxxxxxxxxxxx>
- Subject: Disable and Enable Screensaver via Bash Script
Currently I am running Stretch with XFCE (window manager is XFWM4). I
presently use Xscreensaver for my screen saver. Caffeine indicator
doesn't work with XFCE as far as I've been able to tell, so if I want to
temporarily disable the screensaver I need to do so manually, and
re-enable it manually.
I'm wondering, is there a way to perform this feature with a bash
script? What I'm looking for is a bash script that does the following,
1. Disable Xscreensaver
2. Run a given application
3. When the application closes, re-enable Xscreensaver
Any help would be appreciated. Thanks.