Browse Source

Add bspwm external rules, make emacs question window floating

master
Riyyi 4 years ago
parent
commit
2d002ad89c
  1. 2
      .config/bspwm/bspwmrc
  2. 17
      .config/bspwm/rules

2
.config/bspwm/bspwmrc

@ -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 *

17
.config/bspwm/rules

@ -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
Loading…
Cancel
Save