summaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
Diffstat (limited to 'local')
-rwxr-xr-xlocal/bin/disable-fullscreen-lock13
1 files changed, 13 insertions, 0 deletions
diff --git a/local/bin/disable-fullscreen-lock b/local/bin/disable-fullscreen-lock
new file mode 100755
index 0000000..1eff71c
--- /dev/null
+++ b/local/bin/disable-fullscreen-lock
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+DELAY=300
+
+while true; do
+ activ_win_id=$(xprop -root _NET_ACTIVE_WINDOW)
+ if result=$(xprop -id ${activ_win_id:40:9} | grep _NET_WM_STATE_FULLSCREEN); then
+ xdotool key Shift
+ xset -dpms
+ xset dpms
+ fi
+ sleep "$DELAY"
+done