81 lines
2.8 KiB
Bash
Executable File
81 lines
2.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euf -o pipefail
|
|
|
|
bspc rule -r "*"
|
|
|
|
monitors=("$(xrandr --listactivemonitors | awk '{print $4}' | sed '/^$/d')")
|
|
|
|
if [ "${#monitors[@]}" == "2" ]; then
|
|
bspc monitor "${monitors[0]}" -d 1 2 3 4 5
|
|
bspc monitor "${monitors[1]}" -d 6 7 8 9 10
|
|
|
|
if xrandr | grep "VGA1 connected"; then
|
|
xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1
|
|
fi
|
|
setbg &
|
|
fi
|
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
|
|
|
bspc config border_width 4
|
|
bspc config window_gap 6
|
|
bspc config top_padding 0
|
|
bspc config left_padding 0
|
|
bspc config right_padding 0
|
|
bspc config bottom_padding 0
|
|
bspc config split_ratio 0.50
|
|
|
|
# Opciones
|
|
bspc config gapless_monocle true
|
|
bspc config borderless_monocle true
|
|
bspc config single_monocle true
|
|
bspc config ignore_ewmh_focus true
|
|
bspc config remove_unplugged_monitors false
|
|
bspc config remove_disabled_monitors false
|
|
bspc config honor_size_hints false
|
|
bspc config directional_focus_tightness low
|
|
bspc config automatic_scheme longest_side
|
|
bspc config initial_polarity second_child
|
|
bspc config click_to_focus any
|
|
bspc config pointer_modifier mod4
|
|
bspc config pointer_action1 resize_side
|
|
bspc config pointer_action2 resize_corner
|
|
bspc config pointer_action3 move
|
|
|
|
# xrdb
|
|
get_xrdb() {
|
|
xrdb -query | grep "$1" | awk '{print $2}' | tail -n1
|
|
}
|
|
|
|
# Colores
|
|
bspc config normal_border_color "$(get_xrdb color0)"
|
|
bspc config focused_border_color "$(get_xrdb color4)"
|
|
bspc config active_border_color "$(get_xrdb color8)"
|
|
bspc config presel_feedback_color "$(get_xrdb color5)"
|
|
|
|
# Flotantes
|
|
bspc rule -a Pavucontrol state=floating
|
|
bspc rule -a Catia state=floating
|
|
bspc rule -a Cadence state=floating
|
|
bspc rule -a Qalculate-gtk state=floating
|
|
bspc rule -a mpv state=floating
|
|
bspc rule -a Gucharmap state=floating
|
|
bspc rule -a File-roller state=floating
|
|
bspc rule -a obs state=floating
|
|
bspc rule -a PdWindow state=floating
|
|
bspc rule -a PatchWindow state=floating
|
|
bspc rule -a Godot state=floating
|
|
bspc rule -a Pinentry state=floating
|
|
bspc rule -a St:flota state=floating
|
|
bspc rule -a Toplevel state=floating
|
|
bspc rule -a Firefox state=floating
|
|
bspc rule -a Lxappearance state=floating
|
|
|
|
# Otros
|
|
bspc rule -a Zathura state=tiled
|
|
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
|
bspc rule -a St:multi desktop='^1'
|
|
|
|
xsetroot -cursor_name left_ptr &
|
|
borders &
|