aboutsummaryrefslogtreecommitdiff
path: root/bspwm/terminal.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bspwm/terminal.sh')
-rwxr-xr-xbspwm/terminal.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/bspwm/terminal.sh b/bspwm/terminal.sh
new file mode 100755
index 0000000..8cd5418
--- /dev/null
+++ b/bspwm/terminal.sh
@@ -0,0 +1,16 @@
+
+
+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
+ echo "sakrit"
+ bspc desktop -f last.local
+else
+ bspc desktop $DESKTOP -m focused
+ bspc desktop -f $DESKTOP
+fi