Add bspwm external rules, make emacs question window floating
This commit is contained in:
@@ -32,6 +32,8 @@ bspc config pointer_modifier mod4
|
||||
|
||||
#--- Rules ---#
|
||||
|
||||
bspc config external_rules_command "$HOME/.config/bspwm/rules"
|
||||
|
||||
# Reset all rules
|
||||
bspc rule -r *
|
||||
|
||||
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
|
||||
WID=$1
|
||||
CLASS=$2
|
||||
INSTANCE=$3
|
||||
CONSEQUENCES=$4
|
||||
|
||||
name() {
|
||||
xprop -id "$WID" WM_NAME | sed 's/"//g;s/.*= //'
|
||||
}
|
||||
|
||||
case "$CLASS" in
|
||||
Emacs)
|
||||
[ "$(name)" = "Question" ] && echo "state=floating"
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user