darkrc/bin/padding

23 lines
305 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
kitty @ set-spacing padding-top=$t padding-left=$l padding-bottom=$b padding-right=$r
fi