darkrc/bin/padding

24 lines
394 B
Bash
Executable file

#!/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
if ! [ "$TERM" = "xterm-kitty" ]
then
/bin/echo -e '\033[33mWarning: not running inside Kitty!\033[0m'
fi
kitty @ --to $KITTY_LISTEN_ON set-spacing padding-top=$t padding-left=$l padding-bottom=$b padding-right=$r