aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-09-03 16:25:50 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-09-03 16:25:50 +0200
commit86bc85bb8335152b6cba9a7002c6eb28b3b264d1 (patch)
treecfb7143eaeb7d911232ce79f89a4b5ce33995026
parentfc2206f7dbecbbb24d8701076152ec767ad64f1f (diff)
downloadconfigs-86bc85bb8335152b6cba9a7002c6eb28b3b264d1.tar.gz
configs-86bc85bb8335152b6cba9a7002c6eb28b3b264d1.zip
Color border for bswm.
-rwxr-xr-xstow/bspwm/.config/bspwm/bspwmrc9
-rw-r--r--stow/sxhkd/.config/sxhkd/sxhkdrcbspc23
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