Setup script to init/tear down a screen timer for autolocking

This commit is contained in:
2025-10-23 02:23:31 +01:00
parent dd3932ec1c
commit 4debe52aab
3 changed files with 18 additions and 1 deletions

View File

@@ -31,6 +31,14 @@ super + minus
super + numbersign
$HOME/.local/scripts/bt_connect;
super + underscore
notify-send -u normal "Turning off screentimer"; \
$HOME/.local/scripts/screentimer off;
super + plus
notify-send -u normal "Turning on screentimer"; \
$HOME/.local/scripts/screentimer on;
super + z
notify-send -u low "Launching zathura"; \
zathura

View File

@@ -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

View File

@@ -3,7 +3,7 @@
killall sxhkd;
sh .xprofile;
xset s 1800;
screentimer on;
xrandr --output HDMI1 --auto --mode 1920x1080 --left-of eDP1;
xrandr --output eDP1 --auto --mode 1920x1080;