2019-04-07 22:18:49 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euf -o pipefail
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2020-03-29 19:16:35 +00:00
|
|
|
bspc rule -r "*"
|
2019-12-03 14:50:43 +00:00
|
|
|
|
2020-04-02 10:15:45 +00:00
|
|
|
moni &
|
2020-03-29 19:16:35 +00:00
|
|
|
|
2020-04-01 15:47:43 +00:00
|
|
|
bspc config border_width 1
|
2019-06-23 03:48:32 +00:00
|
|
|
bspc config window_gap 6
|
2018-08-12 05:26:07 +00:00
|
|
|
bspc config top_padding 0
|
2018-08-03 10:50:24 +00:00
|
|
|
bspc config left_padding 0
|
|
|
|
bspc config right_padding 0
|
2018-08-12 05:26:07 +00:00
|
|
|
bspc config bottom_padding 0
|
2020-03-29 19:16:35 +00:00
|
|
|
bspc config split_ratio 0.50
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2019-04-25 03:39:38 +00:00
|
|
|
# Opciones
|
2020-04-29 17:44:55 +00:00
|
|
|
bspc config gapless_monocle false
|
|
|
|
bspc config borderless_monocle false
|
2018-08-12 05:26:07 +00:00
|
|
|
bspc config single_monocle true
|
2018-08-03 10:50:24 +00:00
|
|
|
bspc config ignore_ewmh_focus true
|
2020-03-29 19:16:35 +00:00
|
|
|
bspc config remove_unplugged_monitors false
|
|
|
|
bspc config remove_disabled_monitors false
|
2018-08-12 05:26:07 +00:00
|
|
|
bspc config honor_size_hints false
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config directional_focus_tightness low
|
2019-04-07 22:18:49 +00:00
|
|
|
bspc config automatic_scheme longest_side
|
2018-08-03 10:50:24 +00:00
|
|
|
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
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2018-05-26 20:06:45 +00:00
|
|
|
# xrdb
|
2018-08-12 05:26:07 +00:00
|
|
|
get_xrdb() {
|
2018-05-26 20:06:45 +00:00
|
|
|
xrdb -query | grep "$1" | awk '{print $2}' | tail -n1
|
|
|
|
}
|
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Colores
|
2018-08-28 16:13:36 +00:00
|
|
|
bspc config normal_border_color "$(get_xrdb color0)"
|
2020-04-29 17:44:55 +00:00
|
|
|
bspc config focused_border_color "$(get_xrdb color12)"
|
2018-08-28 16:13:36 +00:00
|
|
|
bspc config active_border_color "$(get_xrdb color8)"
|
2020-04-29 17:44:55 +00:00
|
|
|
bspc config presel_feedback_color "$(get_xrdb color6)"
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Flotantes
|
2020-04-28 18:34:58 +00:00
|
|
|
bspc rule -a Pavucontrol state=floating
|
2018-08-03 10:50:24 +00:00
|
|
|
bspc rule -a Catia state=floating
|
|
|
|
bspc rule -a Cadence state=floating
|
|
|
|
bspc rule -a mpv state=floating
|
|
|
|
bspc rule -a obs state=floating
|
|
|
|
bspc rule -a PdWindow state=floating
|
|
|
|
bspc rule -a PatchWindow state=floating
|
2020-04-14 04:07:37 +00:00
|
|
|
bspc rule -a Alacritty:flota state=floating
|
2020-04-19 04:42:47 +00:00
|
|
|
bspc rule -a Sxiv:fontpreview state=floating
|
2020-04-28 18:34:58 +00:00
|
|
|
bspc rule -a Toplevel state=floating
|
2018-10-18 19:25:56 +00:00
|
|
|
bspc rule -a Firefox state=floating
|
2020-04-19 04:42:47 +00:00
|
|
|
bspc rule -a Display state=floating
|
2020-05-05 22:22:57 +00:00
|
|
|
bspc rule -a krita state=floating
|
2018-04-04 18:12:51 +00:00
|
|
|
|
2018-08-03 10:50:24 +00:00
|
|
|
# Otros
|
|
|
|
bspc rule -a Zathura state=tiled
|
2020-03-29 19:16:35 +00:00
|
|
|
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
2020-04-14 04:07:37 +00:00
|
|
|
bspc rule -a Alacritty:multi desktop='^1'
|
|
|
|
|
2020-04-29 17:44:55 +00:00
|
|
|
stx &
|