Update 2023-11-05 12:22 OpenBSD/amd64-x13
This commit is contained in:
45
.config/bspwm/bspwmrc
Executable file
45
.config/bspwm/bspwmrc
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
|
||||
#export MIXERDEVICE=/dev/audioctl0
|
||||
pgrep -q polybar || polybar &
|
||||
|
||||
# start hotkey daemon
|
||||
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
|
||||
|
||||
# configure bspwm
|
||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||
|
||||
bspc config border_width 1
|
||||
bspc config window_gap 12
|
||||
|
||||
remove_disabled_monitors true
|
||||
remove_unplugged_monitors true
|
||||
|
||||
bspc config split_ratio 0.52
|
||||
bspc config focus_follows_pointer true
|
||||
|
||||
bspc config borderless_monocle false
|
||||
bspc config gapless_monocle true
|
||||
|
||||
bspc config focused_border_color "#FF6A00"
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user