2023-11-05 12:22:05 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#export MIXERDEVICE=/dev/audioctl0
|
|
|
|
pgrep -q polybar || polybar &
|
|
|
|
|
|
|
|
# start hotkey daemon
|
|
|
|
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
|
|
|
|
|
2023-11-08 11:02:15 +01:00
|
|
|
# we're fancy now.
|
|
|
|
pgrep -q picom || picom &
|
|
|
|
|
2023-11-05 12:22:05 +01:00
|
|
|
# configure bspwm
|
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
|
|
|
|
2023-11-08 11:02:15 +01:00
|
|
|
bspc config border_width 2
|
2023-11-05 12:22:05 +01:00
|
|
|
bspc config window_gap 12
|
|
|
|
|
|
|
|
remove_disabled_monitors true
|
|
|
|
remove_unplugged_monitors true
|
|
|
|
|
2023-11-08 11:02:15 +01:00
|
|
|
bspc config split_ratio 0.50
|
2023-11-05 12:22:05 +01:00
|
|
|
bspc config focus_follows_pointer true
|
|
|
|
|
|
|
|
bspc config borderless_monocle false
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
|
|
|
bspc config focused_border_color "#FF6A00"
|
2023-11-08 11:02:15 +01:00
|
|
|
bspc config active_border_color "#444444"
|
|
|
|
bspc config normal_border_color "#222222"
|
|
|
|
bspc config ignore_ewmh_fullscreen true
|
2023-11-05 12:22:05 +01:00
|
|
|
|
|
|
|
bspc config presel_feedback_color "#FF6A00"
|
|
|
|
bspc config presel_feedback false
|
|
|
|
|
|
|
|
# automatic tiling
|
|
|
|
bspc config automatic_scheme longest_side
|
|
|
|
bspc config honor_size_hints false
|
|
|
|
|
|
|
|
# mouse can resize/move floating nodes
|
|
|
|
bspc config pointer_modifier mod1
|
|
|
|
bspc config pointer_action1 move
|
|
|
|
bspc config pointer_action2 resize_corner
|
|
|
|
|
|
|
|
RES=$(xrandr | grep "*+" | awk '{print $1}')
|
|
|
|
GAP=150
|
|
|
|
H=$(( ${RES%x*} - 2 * GAP ))
|
|
|
|
V=$(( ${RES#*x} - 2 * GAP ))
|
|
|
|
|
|
|
|
bspc rule -a mpv sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|
|
|
|
bspc rule -a Screenkey manage=off
|
|
|
|
bspc rule -a scratchpad sticky=on state=floating rectangle=$GAP,$GAP,$H,$V
|