aboutsummaryrefslogtreecommitdiff
path: root/i3/terminal.sh
diff options
context:
space:
mode:
Diffstat (limited to 'i3/terminal.sh')
-rwxr-xr-xi3/terminal.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/i3/terminal.sh b/i3/terminal.sh
new file mode 100755
index 0000000..5d6808d
--- /dev/null
+++ b/i3/terminal.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+CLASSNAME=scratchpad_term
+
+[[ -z $(xdotool search --classname $CLASSNAME) ]] && \
+ alacritty --class $CLASSNAME -e tmux new-session -A -s default
+
+i3-msg [instance=\"$CLASSNAME\"] scratchpad show, \
+ resize set 100 ppt 100 ppt, \
+ resize shrink height 22 px, \
+ move position center