From a63fed1e60048291c19864e7bbb91a880d4d343f Mon Sep 17 00:00:00 2001 From: edwark43 <97860398+edwark43@users.noreply.github.com> Date: Fri, 22 Mar 2024 08:45:21 -0400 Subject: [PATCH] Update bspwmrc --- config/bspwm/bspwmrc | 62 ++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/config/bspwm/bspwmrc b/config/bspwm/bspwmrc index 469b505..1f1816b 100755 --- a/config/bspwm/bspwmrc +++ b/config/bspwm/bspwmrc @@ -8,35 +8,35 @@ export _JAVA_AWT_WM_NONREPARENTING=1 # Workspaces - # Default 1 monitor with 6 workspaces - for monitor in "$(xrandr -q | grep -w 'connected' | cut -d' ' -f1)"; do - bspc monitor "$monitor" -d '1' '2' '3' '4' '5' '6' - done +# Default 1 monitor with 6 workspaces +for monitor in $(xrandr -q | grep -w 'connected' | cut -d' ' -f1); do + bspc monitor "$monitor" -d '1' '2' '3' '4' '5' '6' +done # Bspwm Config bspc config external_rules_command "$HOME"/.local/bin/externalrules -bspc config window_gap -1 -bspc config split_ratio 0.51 -bspc config single_monocle true -bspc config borderless_monocle false -bspc config gapless_monocle false -bspc config focus_follows_pointer true -bspc config pointer_follows_focus false -bspc config pointer_motion_interval 5 -bspc config pointer_modifier mod4 -bspc config pointer_action1 move -bspc config pointer_action2 resize_side -bspc config pointer_action3 resize_corner -bspc config border_width 2 -bspc config top_padding 48 -bspc config bottom_padding 48 -bspc config left_padding 2 -bspc config right_padding 2 -bspc config normal_border_color "#252533" -bspc config active_border_color "#252533" -bspc config focused_border_color "#61C766" -bspc config presel_feedback_color "#61C766" +bspc config window_gap -1 +bspc config split_ratio 0.51 +bspc config single_monocle true +bspc config borderless_monocle false +bspc config gapless_monocle false +bspc config focus_follows_pointer true +bspc config pointer_follows_focus false +bspc config pointer_motion_interval 5 +bspc config pointer_modifier mod4 +bspc config pointer_action1 move +bspc config pointer_action2 resize_side +bspc config pointer_action3 resize_corner +bspc config border_width 2 +bspc config top_padding 48 +bspc config bottom_padding 48 +bspc config left_padding 2 +bspc config right_padding 2 +bspc config normal_border_color "#252533" +bspc config active_border_color "#252533" +bspc config focused_border_color "#61C766" +bspc config presel_feedback_color "#61C766" bspc rule -a scratch sticky=on state=floating focus=on # Autostart @@ -47,11 +47,11 @@ bspc rule -a scratch sticky=on state=floating focus=on # Terminate already running polybar, sxhkd, and dunst instances processes=("polybar" "sxhkd" "dunst") - for process in "${processes[@]}"; do - if pgrep -f "$process"; then - pkill -9 -f "$process" > /dev/null; sleep 0.1 - fi - done +for process in "${processes[@]}"; do + if pgrep -f "$process"; then + pkill -9 -f "$process" > /dev/null; sleep 0.1 + fi +done # Load bspwm conf, colors, dunst, and bars . "$HOME"/.config/polybar/bar.sh @@ -71,4 +71,4 @@ dunst -config "$HOME"/.config/dunst/dunstrc & pidof -q polkit-gnome-authentication-agent-1 || { /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & } # Fix cursor -xsetroot -cursor_name left_ptr \ No newline at end of file +xsetroot -cursor_name left_ptr