dotfiles/i3/checknofullscreen.sh
Benedikt Heine 16aad7f4c5 Adapt shebangs
Convert all shebangs to /usr/bin/env bash, if bash is really required in
the script. Otherwise convert it to /bin/sh.

/bin/bash is not available on all systems, while /usr/bin/env bash and
/bin/sh are.
2018-05-29 00:02:00 +02:00

8 lines
182 B
Bash
Executable file

#!/bin/sh
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