diff options
| author | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 15:56:49 +0100 |
|---|---|---|
| committer | Ivan K. Boikov <mail@ikboikov.net> | 2025-01-25 19:35:11 +0100 |
| commit | c225ece12bf259ee3f28a9a5f27be144dc4cd184 (patch) | |
| tree | adf5d22eb118bad92ca2b92d3b6048d0ff886d76 /scripts | |
| parent | 3525ade66ff9e4cd6dd325d0dd099695d33eb2c0 (diff) | |
New screensaver control script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/.local/bin/allow-screensaver | 5 | ||||
| -rwxr-xr-x | scripts/.local/bin/forbid-screensaver | 5 | ||||
| -rwxr-xr-x | scripts/.local/bin/scrsav | 16 |
3 files changed, 16 insertions, 10 deletions
diff --git a/scripts/.local/bin/allow-screensaver b/scripts/.local/bin/allow-screensaver deleted file mode 100755 index 6ad137f..0000000 --- a/scripts/.local/bin/allow-screensaver +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -xset s on -xset s blank -xset +dpms -notify-send "Screensaver ON" diff --git a/scripts/.local/bin/forbid-screensaver b/scripts/.local/bin/forbid-screensaver deleted file mode 100755 index f509cb9..0000000 --- a/scripts/.local/bin/forbid-screensaver +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -xset s off -xset s noblank -xset -dpms -notify-send "Screensaver OFF" diff --git a/scripts/.local/bin/scrsav b/scripts/.local/bin/scrsav new file mode 100755 index 0000000..8baab2b --- /dev/null +++ b/scripts/.local/bin/scrsav @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ "$1" = 'on' ]; then + xset s on + xset s blank + xset +dpms + notify-send "Screensaver: ON" +elif [ "$1" = 'off' ]; then + xset s off + xset s noblank + xset -dpms + notify-send "Screensaver: OFF" +else + echo "Usage: scrsav [on/off]" + notify-send "Usage: scrsav [on/off]" +fi |
