summaryrefslogtreecommitdiff
path: root/local/bin/disable-fullscreen-lock
blob: 1eff71c7cf8d70100c021227f96b057ab9136c93 (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 Shift
		xset -dpms
		xset dpms
	fi
	sleep "$DELAY"
done