summaryrefslogtreecommitdiff
path: root/config/bspwm/bspwmrc
blob: aaa92ec7d79085b0d90448aac66b12730bb8e12d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
setup=0

COLOR_BACKGROUND="#282a2e"
COLOR_PRIMARY="#fefefe"
COLOR_SECONDARY="#707880"
BORDER=3

hsetroot -solid $COLOR_BACKGROUND &
xsetroot -cursor_name left_ptr &
xrdb ~/.config/Xdefaults

pgrep -x sxhkd > /dev/null || sxhkd &
#pgrep -x picom > /dev/null || picom &
pgrep -x xss-lock > /dev/null || xss-lock slock &
pgrep -x bg.sh > /dev/null || $HOME/.scripts/bg.sh > /dev/null &
pgrep -x xcompmgr > /dev/null || xcompmgr -c -C -t-5 -l-5 -r4.2 -o.55 &

[ -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 &

bspc config border_width	$BORDER
bspc config window_gap		0
$HOME/.scripts/toggle-gap.sh

## individual rules
bspc rule -a Zathura state=tiled
bspc rule -a feh state=fullscreen

bspc config focus_follows_pointer false
 
bspc config normal_border_color "$COLOR_SECONDARY"
bspc config active_border_color "$COLOR_SECONDARY"
bspc config focused_border_color "$COLOR_PRIMARY"
wmname bspwm 

sleep 1

pgrep -x pipewire > /dev/null || pipewire &
pgrep -x pipewire-pulse > /dev/null || pipewire-pulse &
pgrep -x wireplumber > /dev/null || wireplumber &

$HOME/.scripts/start-mpd