This commit is contained in:
2025-11-09 00:19:54 -07:00
parent 315a0b3869
commit 2173267246
32 changed files with 1529 additions and 764 deletions

View File

@@ -1,42 +1,42 @@
#!/bin/sh
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# Identify as a non-reparenting window manager
wmname LG3D &
# START MONITOR BLOCK
bspc monitor HDMI-1 -d I II III IV V
# END MONITOR BLOCK
bspc config border_width 2
bspc config window_gap 4
bsp-key-daemon
bspc config split_ratio 0.54
bspc config border_width 1
bspc config window_gap 4
bspc config pointer_modifier mod4 # When holding super:
bspc config pointer_action1 move # Left click drag moves
bspc config pointer_action2 resize_corner # Right click drag resizes
bspc config split_ratio 0.54
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config pointer_modifier mod4
bspc config pointer_action1 move
# bspc config pointer_action2 resize_side
bspc config pointer_action2 resize_corner
# Focus is on the hovered window, but the cursor is
# moved when the keyboard changes focus
bspc config focus_follows_pointer true
bspc config pointer_follows_focus true
# bspc rule -a \* state=pseudo_tiled
bspc config external_rules_command "$(realpath "$(dirname "$0")")/external-rules"
bspc config automatic_scheme alternate
bspc rule -a qutebrowser state=tiled
bspc rule -a KittyScratch state=floating
# bspc rule -a KittyScratch state=floating
bspc rule -a Wrapper-2.0 state=floating # Xfce start menu
bspc rule -a Rofi state=floating
bspc rule -a Gimp state=floating
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
xsetroot -cursor_name left_ptr &
"$(dirname "$0")/colors"
watch_monitors() {
xfconf-query -c displays -m | while read -r line; do
bspc-xfce-monitors
done
}
export _JAVA_AWT_WM_NONREPARENTING=1
watch_monitors & # Monitor daemon
pgrep -x sxhkd > /dev/null || sxhkd & # Key daemon

8
config/bspwm/external-rules Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
NEXT_WINDOW_RULES_PATH="/tmp/bspwm-next-window-rules"
[ -f "$NEXT_WINDOW_RULES_PATH" ] && {
cat "$NEXT_WINDOW_RULES_PATH"
rm "$NEXT_WINDOW_RULES_PATH"
}