aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SXHkD/.config/sxhkd/sxhkdrc8
-rwxr-xr-xScripts/.local/scripts/screentimer9
-rw-r--r--XServer/.xinitrc2
3 files changed, 18 insertions, 1 deletions
diff --git a/SXHkD/.config/sxhkd/sxhkdrc b/SXHkD/.config/sxhkd/sxhkdrc
index 6ac90e6..45705f2 100644
--- a/SXHkD/.config/sxhkd/sxhkdrc
+++ b/SXHkD/.config/sxhkd/sxhkdrc
@@ -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
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
diff --git a/XServer/.xinitrc b/XServer/.xinitrc
index b1c03b2..b1a9431 100644
--- a/XServer/.xinitrc
+++ b/XServer/.xinitrc
@@ -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;