From 3c359c37ea3267e1ca8c18fd3c0fca9ee18274a8 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Wed, 3 Mar 2021 16:44:21 +0100 Subject: [PATCH] Split horizontal and vertical in padding script --- bin/padding | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/padding b/bin/padding index ab5244c..8a238e9 100755 --- a/bin/padding +++ b/bin/padding @@ -1,6 +1,15 @@ #!/bin/sh +h=0 +if [ -n "$1" ] +then h="$1" +fi +v=$h +if [ -n "$2" ] +then v="$2" +fi + if [ "$TERM" = "xterm-kitty" ] then - kitty @ set-spacing padding=$1 + kitty @ set-spacing padding-h=$h padding-v=$v fi