bspwm/external.sh

31 lines
459 B
Bash
Raw Normal View History

#!/bin/sh
wid=$1
class=$2
instance=$3
consequences=$4
title=$(xtitle "$wid")
hostname=$(hostname)
# notify-send "$title" "$1 | $2 | $3 | $4"
case "$title" in
WM_FORCE_FLOATING)
echo "state=floating"
;;
WM_FORCE_FULLSCREEN)
echo "state=fullscreen"
;;
esac
case "$class" in
firefoxdeveloperedition)
if [ "$instance" = Devtools ] && [ "$hostname" = Pamela ] ; then
eval "$consequences"
echo "monitor=VGA-1-1"
fi
;;
esac