2024-07-15 20:00:04 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2024-07-28 16:32:05 +01:00
|
|
|
. ./common-script.sh
|
|
|
|
|
2024-07-13 22:44:09 +01:00
|
|
|
setupKitty() {
|
|
|
|
echo "Install Kitty if not already installed..."
|
|
|
|
if ! command_exists kitty; then
|
|
|
|
case ${PACKAGER} in
|
|
|
|
pacman)
|
2024-07-15 22:26:03 +01:00
|
|
|
sudo "${PACKAGER}" -S --noconfirm kitty
|
2024-07-13 22:44:09 +01:00
|
|
|
;;
|
|
|
|
*)
|
2024-07-15 22:26:03 +01:00
|
|
|
sudo "${PACKAGER}" install -y kitty
|
2024-07-13 22:44:09 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
echo "Kitty is already installed."
|
|
|
|
fi
|
|
|
|
echo "Copy Kitty config files"
|
|
|
|
if [ -d "${HOME}/.config/kitty" ]; then
|
2024-07-15 22:26:03 +01:00
|
|
|
cp -r "${HOME}"/.config/kitty "${HOME}"/.config/kitty-bak
|
2024-07-13 22:44:09 +01:00
|
|
|
fi
|
2024-07-15 22:26:03 +01:00
|
|
|
mkdir -p "${HOME}"/.config/kitty/
|
|
|
|
wget -O "${HOME}"/.config/kitty/kitty.conf https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/kitty.conf
|
|
|
|
wget -O "${HOME}"/.config/kitty/nord.conf https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/nord.conf
|
2024-07-13 22:44:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
2024-07-15 22:26:03 +01:00
|
|
|
setupKitty
|