bspwm/external.sh

23 lines
291 B
Bash
Raw Normal View History

#!/bin/sh
wid=$1
class=$2
instance=$3
consequences=$4
title=$(xtitle "$wid")
# notify-send "$title" "$1 | $2 | $3 | $4"
case "$title" in
WM_FORCE_FLOATING)
echo "state=floating"
;;
2020-10-27 12:45:23 +00:00
WM_FORCE_TILED)
echo "state=tiled"
;;
WM_FORCE_FULLSCREEN)
echo "state=fullscreen"
;;
esac