From 86bc85bb8335152b6cba9a7002c6eb28b3b264d1 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sat, 3 Sep 2022 16:25:50 +0200 Subject: Color border for bswm. --- stow/bspwm/.config/bspwm/bspwmrc | 9 +++++++-- stow/sxhkd/.config/sxhkd/sxhkdrcbspc | 23 ++++------------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/stow/bspwm/.config/bspwm/bspwmrc b/stow/bspwm/.config/bspwm/bspwmrc index f2126cc..2c78e1c 100755 --- a/stow/bspwm/.config/bspwm/bspwmrc +++ b/stow/bspwm/.config/bspwm/bspwmrc @@ -14,8 +14,8 @@ else bspc monitor -d $desktops fi -bspc config border_width 4 -bspc config window_gap 10 +bspc config border_width 4 +bspc config window_gap 10 bspc config split_ratio 0.50 bspc config borderless_monocle true @@ -31,3 +31,8 @@ bspc rule -a Screenkey manage=off pgrep -x sxhkd > /dev/null || sxhkd "$XDG_CONFIG_HOME/sxhkd/sxhkdrcbspc" >~/logs/sxhkd.log & xinit.sh + +bspc config normal_border_color "$(xrdb -get color0)" +bspc config active_border_color "$(xrdb -get color8)" +bspc config focused_border_color "$(xrdb -get color4)" +bspc config presel_border_color "$(xrdb -get color8)" diff --git a/stow/sxhkd/.config/sxhkd/sxhkdrcbspc b/stow/sxhkd/.config/sxhkd/sxhkdrcbspc index cf0f604..46ae5ee 100644 --- a/stow/sxhkd/.config/sxhkd/sxhkdrcbspc +++ b/stow/sxhkd/.config/sxhkd/sxhkdrcbspc @@ -35,30 +35,15 @@ super + shift + {0-9} # Directionally select node with same floating state super + {h,j,k,l} - direction={west,south,north,east}; \ - if bspc wm -g | grep -q ':TF:'; then \ - bspc node -f "$direction".floating; \ - elif bspc wm -g | grep -q ':LM:'; then \ - bspc node -f next.local.window.!floating; \ - else \ - bspc node -f "$direction".!floating; \ - fi + bspcDirectionFocus.sh {west,south,north,east} # Swap node with adjacent node super + shift + {h,j,k,l} - bspc node -s {west,south,north,east} + bspc node --swap {west,south,north,east} # Resize node -#super + alt + {h,j,k,l} -# bspc node --resize {right,bottom,bottom,right} {-5,0,0,5} {0,5,-5,0} -super + alt + h - bspc node --resize right -5 0 -super + alt + j - bspc node --resize bottom 0 5 -super + alt + k - bspc node --resize bottom 0 -5 -super + alt + l - bspc node --resize right 5 0 +super + alt + {h,j,k,l} + bspc node --resize {right -5 0,bottom 0 5,bottom 0 -5,right 5 0} # Resize gaps super + g -- cgit v1.2.1