Update bspwmrc

This commit is contained in:
edwark43 2024-03-22 08:45:21 -04:00 committed by GitHub
parent 4f242678ac
commit a63fed1e60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,10 +8,10 @@ export _JAVA_AWT_WM_NONREPARENTING=1
# Workspaces # Workspaces
# Default 1 monitor with 6 workspaces # Default 1 monitor with 6 workspaces
for monitor in "$(xrandr -q | grep -w 'connected' | cut -d' ' -f1)"; do for monitor in $(xrandr -q | grep -w 'connected' | cut -d' ' -f1); do
bspc monitor "$monitor" -d '1' '2' '3' '4' '5' '6' bspc monitor "$monitor" -d '1' '2' '3' '4' '5' '6'
done done
# Bspwm Config # Bspwm Config
@ -47,11 +47,11 @@ bspc rule -a scratch sticky=on state=floating focus=on
# Terminate already running polybar, sxhkd, and dunst instances # Terminate already running polybar, sxhkd, and dunst instances
processes=("polybar" "sxhkd" "dunst") processes=("polybar" "sxhkd" "dunst")
for process in "${processes[@]}"; do for process in "${processes[@]}"; do
if pgrep -f "$process"; then if pgrep -f "$process"; then
pkill -9 -f "$process" > /dev/null; sleep 0.1 pkill -9 -f "$process" > /dev/null; sleep 0.1
fi fi
done done
# Load bspwm conf, colors, dunst, and bars # Load bspwm conf, colors, dunst, and bars
. "$HOME"/.config/polybar/bar.sh . "$HOME"/.config/polybar/bar.sh