60 lines
1.4 KiB
Bash
Executable file
60 lines
1.4 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
INTERN="LVDS1"
|
|
EXTERN="VGA1"
|
|
|
|
bspc monitor $INTERN -d 1 2 3 4 5 6 7 8 9
|
|
|
|
EXTERN_CONNECTED=$(bspc query -M | grep $EXTERN)
|
|
|
|
if [ -n "$EXTERN_CONNECTED" ]; then
|
|
bspc monitor $EXTERN -d 1 2 3 4 5 6 7 8 9
|
|
else
|
|
bspc monitor $EXTERN -d
|
|
fi
|
|
bspc control --adopt-orphans
|
|
|
|
bspc config border_width 1
|
|
bspc config -m $INTERN top_padding 14
|
|
bspc config window_gap 8
|
|
bspc config split_ratio 0.5
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle false
|
|
bspc config focus_follows_pointer true
|
|
#bspc config auto_alternate true
|
|
bspc config auto_cancel true
|
|
bspc config ignore_ewmh_focus true
|
|
bspc config remove_disabled_monitor true
|
|
|
|
bspc config active_border_color "#545350"
|
|
bspc config focused_border_color "#7E7F89"
|
|
|
|
|
|
bspc rule -a viewnior floating=true
|
|
bspc rule -a feh floating=true
|
|
bspc rule -a mpv floating=true
|
|
bspc rule -a urxvt floating=true
|
|
bspc rule -a Thunar floating=true
|
|
bspc rule -a QEMU floating=true
|
|
bspc rule -a Gimp focus=on
|
|
|
|
#VBAM
|
|
bspc rule -a InputOutput floating=true
|
|
|
|
#Nitrogen
|
|
bspc rule -a Nitrogen floating=true
|
|
|
|
# Onboard keyboard
|
|
bspc rule -a onboard manage=off
|
|
|
|
# Flash
|
|
bspc rule -a plugin-container floating=true
|
|
bspc rule -a plugin-container fullscreen=true
|
|
|
|
bspc desktop LVDS1:^9 -l monocle
|
|
bspc rule -a "Psi-plus" desktop=LVDS1:^9
|
|
bspc rule -a "Thunderbird" desktop=LVDS1:^9
|
|
bspc rule -a "Weechat" desktop=LVDS1:^9
|
|
|
|
wmname LG3D
|
|
|