46 lines
1.1 KiB
Bash
Executable file
46 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# case $HOSTNAME in
|
|
# kuro) export LAN=eno1 ;;
|
|
# shiro) export LAN=wlp3s0 ;;
|
|
# esac
|
|
|
|
export MONITOR=$(xrandr -q | grep primary | cut -d' ' -f1)
|
|
export MONITORS=( $(xrandr -q | grep ' connected' | cut -d' ' -f1) )
|
|
MONITOR=${MONITOR:-${MONITORS[0]}}
|
|
|
|
# Only have workspaces for primary monitor
|
|
bspc monitor $MONITOR -d {1,2,3,4,5}
|
|
|
|
bspc config remove_disabled_monitors true
|
|
bspc config remove_unplugged_monitors true
|
|
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config border_width 1
|
|
bspc config window_gap 4
|
|
|
|
bspc config normal_border_color "#181a23"
|
|
bspc config active_border_color "#181a23"
|
|
bspc config focused_border_color "#bd93f9"
|
|
bspc config presel_feedback_color "#bd93f9"
|
|
|
|
bspc config split_ratio 0.71
|
|
|
|
# Extra padding for polybar
|
|
bspc config -m primary top_padding 34
|
|
bspc config -m primary bottom_padding 0
|
|
|
|
# Rules
|
|
bspc rule -r '*'
|
|
|
|
bspc rule -a Pinentry state=floating center=on
|
|
bspc rule -a Firefox state=fullscreen
|
|
bspc rule -a feh state=fullscreen
|
|
|
|
# polybar
|
|
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
|
|
source "$file"
|
|
done
|