aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
Diffstat (limited to 'i3')
-rw-r--r--i3/config17
-rwxr-xr-xi3/terminal.sh11
2 files changed, 22 insertions, 6 deletions
diff --git a/i3/config b/i3/config
index 9b2b38d..56bc71d 100644
--- a/i3/config
+++ b/i3/config
@@ -114,14 +114,19 @@ bar {
# picom
exec --no-startup-id picom
+# gajim
+exec --no-startup-id gajim
+
+# zeal
+exec --no-startup-id zeal
+
# background
exec_always --no-startup-id feh --bg-scale ~/.dotfiles/pictures/bg1.jpg \
~/.dotfiles/pictures/bg2.jpg
# terminal
-exec --no-startup-id alacritty --class scratchpad_term -e tmux new-session -A -s default
-for_window [instance="scratchpad_term"] move scratchpad
-bindsym F12 [instance="scratchpad_term"] scratchpad show, \
- resize set 100 ppt 100 ppt, \
- resize shrink height 30 px, \
- move position center
+for_window [instance="scratchpad_term"] \
+ move scratchpad, \
+ border none, \
+ exec --no-startup-id ~/.config/i3/terminal.sh
+bindsym F12 exec --no-startup-id ~/.config/i3/terminal.sh
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