2023-11-05 12:22:05 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-01-21 21:52:18 +01:00
|
|
|
. ~/.bin/_config
|
|
|
|
|
2024-01-21 12:06:39 +01:00
|
|
|
# export MIXERDEVICE=/dev/audioctl0
|
|
|
|
# pgrep -q polybar || polybar &
|
2023-11-05 12:22:05 +01:00
|
|
|
|
|
|
|
# start hotkey daemon
|
|
|
|
pgrep -q sxhkd || sxhkd -c $HOME/.config/bspwm/sxhkdrc &
|
|
|
|
|
2023-11-08 11:02:15 +01:00
|
|
|
# we're fancy now.
|
2024-01-21 12:06:39 +01:00
|
|
|
# hsetroot -fill ~/Backgrounds/5JdtbnY.jpg
|
|
|
|
# pgrep -q picom || picom &
|
2023-11-08 11:02:15 +01:00
|
|
|
|
2024-01-21 21:52:18 +01:00
|
|
|
xsetroot -solid "$BACKGROUND"
|
|
|
|
|
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
|
2024-01-21 21:52:18 +01:00
|
|
|
bspc config window_gap 26
|
2023-11-05 12:22:05 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-01-21 21:52:18 +01:00
|
|
|
bspc config focused_border_color "$COLOR_NF"
|
|
|
|
bspc config active_border_color "$COLOR_NF"
|
|
|
|
bspc config normal_border_color "$COLOR_NB"
|
|
|
|
bspc config ignore_ewmh_fullscreen true
|
2023-11-05 12:22:05 +01:00
|
|
|
|
2024-01-22 10:28:53 +01:00
|
|
|
bspc config presel_feedback_color "$COLOR_SB"
|
2024-01-21 12:06:39 +01:00
|
|
|
bspc config presel_feedback true
|
2023-11-05 12:22:05 +01:00
|
|
|
|
|
|
|
# automatic tiling
|
2024-01-21 12:06:39 +01:00
|
|
|
bspc config automatic_scheme alternate
|
2023-11-05 12:22:05 +01:00
|
|
|
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
|