aboutsummaryrefslogtreecommitdiff
path: root/bspwm
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2021-02-13 15:54:13 +0100
committerbozo.kopic <bozo@kopic.xyz>2021-02-13 15:54:13 +0100
commit67b68e9983b6453aa026f0cd0211bc72ed257701 (patch)
tree2704ab297ec80d1a7b5e718320529925c933a3aa /bspwm
parent50388dca816fb7b45cdcaa8ffa2c932d250c981f (diff)
.
Diffstat (limited to 'bspwm')
-rw-r--r--bspwm/sxhkdrc19
-rwxr-xr-xbspwm/terminal.sh9
2 files changed, 11 insertions, 17 deletions
diff --git a/bspwm/sxhkdrc b/bspwm/sxhkdrc
index 5eb5df0..664aaef 100644
--- a/bspwm/sxhkdrc
+++ b/bspwm/sxhkdrc
@@ -9,16 +9,6 @@ mod4 + Return
alacritty
mod4 + space
rofi -show drun
-#mod4 + backslash
-# i3-msg "split h"
-#mod4 + minus
-# i3-msg "split v"
-#mod4 + Tab
-# i3-msg "layout toggle split"
-#mod4 + p
-# i3-msg "focus parent"
-#mod4 + r
-# i3-msg "mode resize"
mod4 + {1, 2, 3, 4, a, s, d, f}
@@ -51,8 +41,11 @@ mod4 + {l, Right}
mod4 + shift + {h, Left}
bspc node -s west
mod4 + shift + {j, Down}
- bspc node -s west
+ bspc node -s south
mod4 + shift + {k, Up}
- bspc node -s west
+ bspc node -s north
mod4 + shift + {l, Right}
- bspc node -s west
+ bspc node -s east
+
+mod4 + slash
+ bspc node @parent -R 90
diff --git a/bspwm/terminal.sh b/bspwm/terminal.sh
index 6dcce6e..f89375c 100755
--- a/bspwm/terminal.sh
+++ b/bspwm/terminal.sh
@@ -3,13 +3,14 @@
DESKTOP=term
INSTANCE=tmux_term
-(xdo id -n $INSTANCE > /dev/null) || \
- alacritty --class $INSTANCE -e \
- tmux new-session -A -s default
-
if [ $(bspc query -D --names -d focused) = $DESKTOP ]; then
bspc desktop -f last.local
else
bspc desktop $DESKTOP -m focused
bspc desktop -f $DESKTOP
+
+ if ! (xdo id -n $INSTANCE > /dev/null); then
+ exec alacritty --class $INSTANCE -e \
+ tmux new-session -A -s default
+ fi
fi