From 6c9130e407ab4a7d67588ba2cc47c39d0839cfe2 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Fri, 8 May 2020 19:37:41 +0200 Subject: . --- i3/config | 17 +++++++++++------ i3/terminal.sh | 11 +++++++++++ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100755 i3/terminal.sh (limited to 'i3') 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 -- cgit v1.2.3-70-g09d2