]> git.lizzy.rs Git - bspwm.git/commitdiff
Add an example that uses intermediate consequences
authorBastien Dejean <nihilhill@gmail.com>
Mon, 3 Feb 2020 17:41:25 +0000 (18:41 +0100)
committerBastien Dejean <nihilhill@gmail.com>
Mon, 3 Feb 2020 17:41:25 +0000 (18:41 +0100)
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