diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-23 02:23:31 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-10-23 02:52:43 +0100 |
commit | 4debe52aabaa5d62ad2560f9d5f57bec98b4d9c1 (patch) | |
tree | a7ecae88b02c12eefc0089926e468232da91b2a9 /Scripts/.local/scripts/screentimer | |
parent | dd3932ec1c2bd729ed8eff71842acd07074a52d5 (diff) | |
download | dotfiles-4debe52aabaa5d62ad2560f9d5f57bec98b4d9c1.tar.gz dotfiles-4debe52aabaa5d62ad2560f9d5f57bec98b4d9c1.tar.bz2 dotfiles-4debe52aabaa5d62ad2560f9d5f57bec98b4d9c1.zip |
Setup script to init/tear down a screen timer for autolocking
Diffstat (limited to 'Scripts/.local/scripts/screentimer')
-rwxr-xr-x | Scripts/.local/scripts/screentimer | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/screentimer b/Scripts/.local/scripts/screentimer new file mode 100755 index 0000000..5952dbc --- /dev/null +++ b/Scripts/.local/scripts/screentimer @@ -0,0 +1,9 @@ +#!/usr/bin/env sh + +if [ "$1" = "on" ] +then + xset +dpms s 1800 s noblank; +elif [ "$1" = "off" ] +then + xset -dpms s off s noblank; +fi |