dotfiles/i3/checknofullscreen.sh

8 lines
184 B
Bash
Raw Normal View History

2017-01-26 13:48:55 +01:00
#! /bin/bash
FOCUSED=$(xprop -root _NET_ACTIVE_WINDOW | awk -F' ' '{print $NF}')
if xprop -id ${FOCUSED} _NET_WM_STATE | grep -q _NET_WM_STATE_FULLSCREEN; then
exit 1
else
exit 0
fi