summaryrefslogtreecommitdiff
path: root/local/bin/disable-fullscreen-lock
blob: 487e33b35558cc6e50c16e22ae770aa5e2adcf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 Print
		xset -dpms
		xset dpms
	fi
	sleep "$DELAY"
done