Split horizontal and vertical in padding script

This commit is contained in:
Talia 2021-03-03 16:44:21 +01:00
parent c6dcbfd91d
commit 3c359c37ea

View file

@ -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