diff options
Diffstat (limited to 'i3')
| -rw-r--r-- | i3/config | 17 | ||||
| -rwxr-xr-x | i3/terminal.sh | 11 |
2 files changed, 22 insertions, 6 deletions
@@ -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 |
