From 45aaf8b468ce1a95ee094209de7a68ceeade2ab3 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 22 Jan 2017 16:48:44 +1300 Subject: Add lock disabler for youtube vids --- local/bin/disable-fullscreen-lock | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 local/bin/disable-fullscreen-lock (limited to 'local/bin') 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 -- cgit v1.1