aboutsummaryrefslogtreecommitdiff
path: root/bspwm/terminal.sh
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/terminal.sh
parent50388dca816fb7b45cdcaa8ffa2c932d250c981f (diff)
.
Diffstat (limited to 'bspwm/terminal.sh')
-rwxr-xr-xbspwm/terminal.sh9
1 files changed, 5 insertions, 4 deletions
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