dotfiles/.config/bspwm/bspwmrc

52 lines
1.4 KiB
Bash
Executable File

#!/bin/sh
#export MIXERDEVICE=/dev/audioctl0
pgrep -q polybar || polybar &
# start hotkey daemon
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
# we're fancy now.
pgrep -q picom || picom &
# configure bspwm
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
bspc config border_width 2
bspc config window_gap 12
remove_disabled_monitors true
remove_unplugged_monitors true
bspc config split_ratio 0.50
bspc config focus_follows_pointer true
bspc config borderless_monocle false
bspc config gapless_monocle true
bspc config focused_border_color "#FF6A00"
bspc config active_border_color "#444444"
bspc config normal_border_color "#222222"
bspc config ignore_ewmh_fullscreen true
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