aboutsummaryrefslogtreecommitdiff
path: root/bspwm/terminal.sh
diff options
context:
space:
mode:
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