]> git.lizzy.rs Git - bspwm.git/blobdiff - examples/external_rules/external_rules
Add an example that uses intermediate consequences
[bspwm.git] / examples / external_rules / external_rules
index 1a31f43fcee69fcdd858b02e7d42a00bc5cf5688..62a9758d5cdb2d43d8843af6e22e9d38d610a8a0 100755 (executable)
@@ -3,12 +3,20 @@
 wid=$1
 class=$2
 instance=$3
+consequences=$4
 
 if [ "$instance" = fontforge ] ; then
        title=$(xtitle "$wid")
        case "$title" in
                Layers|Tools|Warning)
-                       echo "focus = off"
+                       echo "focus=off"
                        ;;
        esac
 fi
+
+case "$class" in
+       Lutris|Liferea)
+               eval "$consequences"
+               [ "$state" ] || echo "state=pseudo_tiled"
+               ;;
+esac