summaryrefslogtreecommitdiff
path: root/xidletog
diff options
context:
space:
mode:
Diffstat (limited to 'xidletog')
-rwxr-xr-xxidletog13
1 files changed, 13 insertions, 0 deletions
diff --git a/xidletog b/xidletog
new file mode 100755
index 0000000..19ca5f9
--- /dev/null
+++ b/xidletog
@@ -0,0 +1,13 @@
+#!/sbin/sh
+
+if [ ! -f /tmp/xorg-awake ]; then
+ touch /tmp/xorg-awake
+ xset -dpms
+ xset s off
+else
+ rm -rf /tmp/xorg-awake
+ xset +dpms
+ xset s on
+fi
+
+pkill -RTMIN+19 dwmblocks