Setup script to init/tear down a screen timer for autolocking
This commit is contained in:
@@ -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
|
||||
|
||||
9
Scripts/.local/scripts/screentimer
Executable file
9
Scripts/.local/scripts/screentimer
Executable 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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user