diff options
Diffstat (limited to 'terminal.sh')
| -rwxr-xr-x | terminal.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
