2020-04-07 16:05:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
wid=$1
|
|
|
|
class=$2
|
|
|
|
instance=$3
|
|
|
|
consequences=$4
|
|
|
|
|
|
|
|
title=$(xtitle "$wid")
|
2020-04-11 16:28:12 +00:00
|
|
|
hostname=$(hostname)
|
|
|
|
|
|
|
|
# notify-send "$title" "$1 | $2 | $3 | $4"
|
2020-04-07 16:05:34 +00:00
|
|
|
|
|
|
|
case "$title" in
|
|
|
|
WM_FORCE_FLOATING)
|
|
|
|
echo "state=floating"
|
|
|
|
;;
|
|
|
|
WM_FORCE_FULLSCREEN)
|
|
|
|
echo "state=fullscreen"
|
|
|
|
;;
|
|
|
|
esac
|
2020-04-11 16:28:12 +00:00
|
|
|
|
|
|
|
case "$class" in
|
|
|
|
firefoxdeveloperedition)
|
|
|
|
if [ "$instance" = Devtools ] && [ "$hostname" = Pamela ] ; then
|
|
|
|
eval "$consequences"
|
|
|
|
echo "monitor=VGA-1-1"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|