darkrc/bin/padding

25 lines
394 B
Text
Raw Permalink Normal View History

#!/bin/sh
if [ -n "$1" ]
then t="$1"
else t="0"
fi
if [ -n "$2" ]
then l="$2"
else l="$t"
fi
if [ -n "$3" ]
then b="$3"
else b="$t"
fi
if [ -n "$4" ]
then r="$4"
else r="$l"
fi
2021-12-21 14:45:37 +00:00
if ! [ "$TERM" = "xterm-kitty" ]
then
2021-12-21 14:45:37 +00:00
/bin/echo -e '\033[33mWarning: not running inside Kitty!\033[0m'
fi
2021-12-21 14:45:37 +00:00
kitty @ --to $KITTY_LISTEN_ON set-spacing padding-top=$t padding-left=$l padding-bottom=$b padding-right=$r