aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbozo.kopic <bozo.kopic@gmail.com>2020-06-22 18:48:44 +0200
committerbozo.kopic <bozo.kopic@gmail.com>2020-06-22 18:48:44 +0200
commit2dd1195f9056695009b4204966a0159eb4819098 (patch)
treed8d47a625d2b3fc0dfe6660dcace971aef50c7e5
parentc2926f4be4a7b18649672c4f6f58f8978898932a (diff)
.
-rw-r--r--i3/config4
-rw-r--r--sway/config4
-rwxr-xr-xterminal.sh5
3 files changed, 7 insertions, 6 deletions
diff --git a/i3/config b/i3/config
index 34d96ee..293191f 100644
--- a/i3/config
+++ b/i3/config
@@ -128,5 +128,5 @@ exec_always --no-startup-id feh --bg-scale ~/.dotfiles/pictures/bg1.jpg \
for_window [instance="scratchpad_term"] \
move scratchpad, \
border none, \
- exec --no-startup-id ~/.config/terminal.sh
-bindsym F12 exec --no-startup-id ~/.config/terminal.sh
+ exec --no-startup-id ~/.dotfiles/terminal.sh
+bindsym F12 exec --no-startup-id ~/.dotfiles/terminal.sh
diff --git a/sway/config b/sway/config
index 6bfd198..16fdd9e 100644
--- a/sway/config
+++ b/sway/config
@@ -122,5 +122,5 @@ exec xrdb -load ~/.config/sway/.Xresources
for_window [app_id="scratchpad_term"] \
move scratchpad, \
border none, \
- exec --no-startup-id ~/.config/terminal.sh
-bindsym F12 exec --no-startup-id ~/.config/terminal.sh
+ exec --no-startup-id ~/.dotfiles/terminal.sh
+bindsym F12 exec --no-startup-id ~/.dotfiles/terminal.sh
diff --git a/terminal.sh b/terminal.sh
index 2db68d3..2b5b2f7 100755
--- a/terminal.sh
+++ b/terminal.sh
@@ -2,15 +2,16 @@
CLASSNAME=scratchpad_term
RESIZE_CMD="resize set 100 ppt 100 ppt"
-MOVE_CMD="move position 0 0"
if ps -C i3 > /dev/null ; then
CMD=i3-msg
PROP=instance
- RESIZE+=", resize shrink height 22 px"
+ RESIZE_CMD+=", resize shrink height 22 px"
+ MOVE_CMD="move position center"
elif ps -C sway > /dev/null ; then
CMD=swaymsg
PROP=app_id
+ MOVE_CMD="move position 0 0"
else
exit 1
fi