This commit is contained in:
edwark43
2023-11-19 23:55:40 -05:00
committed by GitHub
parent f5fd9fb9f4
commit 4dc48552c7
82 changed files with 5097 additions and 2 deletions

32
misc/bin/externalrules Normal file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
wid=$1
class=$2
instance=$3
consequences=$4
case "$class" in
floaterm)
eval "$consequences"
[ "$state" ] || echo "state=floating center=on"
;;
updating)
eval "$consequences"
[ "$state" ] || echo "state=floating sticky=on center=on"
;;
mpv)
eval "$consequences"
[ "$state" ] || echo "state=pseudo_tiled focus=on rectangle=849x477+0+0 center=on"
;;
virt-manager)
eval "$consequences"
[ "$state" ] || echo "state=floating desktop=^5 follow=on center=on"
;;
esac
case "$instance" in
Toolkit)
eval "$consequences"
[ "$state" ] || echo "state=floating sticky=on rectangle=500x290+1054+593"
;;
esac