dot/config/bspwm/bspwmrc

58 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2021-10-09 21:20:41 +00:00
#!/bin/sh
2022-12-11 18:45:10 +00:00
setup=0
2022-07-31 21:09:31 +00:00
2023-03-19 13:25:11 +00:00
COLOR_BACKGROUND="#282a2e"
2022-12-11 18:45:10 +00:00
COLOR_PRIMARY="#fefefe"
2023-03-31 12:05:02 +00:00
COLOR_SECONDARY="#707880"
2023-12-04 02:32:16 +00:00
BORDER=0
2021-10-09 21:20:41 +00:00
2023-03-19 13:25:11 +00:00
hsetroot -solid $COLOR_BACKGROUND &
2021-10-09 21:20:41 +00:00
xsetroot -cursor_name left_ptr &
2023-07-16 00:37:02 +00:00
xrdb ~/.config/Xdefaults
2021-10-09 21:20:41 +00:00
pgrep -x sxhkd > /dev/null || sxhkd &
2023-12-04 02:32:16 +00:00
pgrep -x picom > /dev/null || picom &
pgrep -x xss-lock > /dev/null || xss-lock slock &
2023-10-09 16:42:22 +00:00
pgrep -x bg.sh > /dev/null || $HOME/.scripts/bg.sh > /dev/null &
2021-10-09 21:20:41 +00:00
2022-12-11 18:45:10 +00:00
[ -f "$HOME/.config/xrandr.sh" ] && . $HOME/.config/xrandr.sh
primary=$(bspc query --monitors -m primary)
set -- a b c d e f g h i j k l m n o
for m in $primary $(bspc query -M | grep -v $primary); do
echo "adding monitor $m as $1"
bspc monitor $m -n $1
shift 1
done
for m in $(bspc query -M --names); do
bspc monitor $m -d ${m}1 ${m}2 ${m}3 ${m}4 ${m}5 ${m}6 ${m}7 ${m}8 ${m}9
done
$HOME/.config/polybar/launch.sh &
2021-10-09 21:20:41 +00:00
2023-03-19 13:25:11 +00:00
bspc config border_width $BORDER
2021-10-09 21:20:41 +00:00
bspc config window_gap 0
2023-03-19 13:25:11 +00:00
$HOME/.scripts/toggle-gap.sh
2021-10-09 21:20:41 +00:00
2023-03-31 12:05:02 +00:00
## individual rules
bspc rule -a Zathura state=tiled
2023-12-04 02:32:16 +00:00
bspc rule -a feh state=fullscreen
2023-03-31 12:05:02 +00:00
2021-10-09 21:20:41 +00:00
bspc config focus_follows_pointer false
2023-11-08 00:33:43 +00:00
2023-03-31 12:05:02 +00:00
bspc config normal_border_color "$COLOR_SECONDARY"
bspc config active_border_color "$COLOR_SECONDARY"
bspc config focused_border_color "$COLOR_PRIMARY"
2023-12-04 02:32:16 +00:00
# fix java programs that get confused on a missing name property
wmname LG3D
2021-10-09 21:20:41 +00:00
2023-10-09 16:42:22 +00:00
sleep 1
2023-11-08 00:33:43 +00:00
#pgrep -x pipewire > /dev/null || pipewire &
#pgrep -x pipewire-pulse > /dev/null || pipewire-pulse &
#pgrep -x wireplumber > /dev/null || wireplumber &
2023-10-09 16:42:22 +00:00
2023-03-19 13:25:11 +00:00
$HOME/.scripts/start-mpd