mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-25 04:49:44 +00:00
216f1a4836
* BIG CHANGES * core metadata * Added readme.md to the package * Moved the crate back to tui Co-authored-by: Liam <lj3954@users.noreply.github.com> --------- Co-authored-by: Liam <lj3954@users.noreply.github.com>
34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#!/bin/sh -e
|
|
|
|
. ../common-script.sh
|
|
|
|
installKitty() {
|
|
printf "%b\n" "${YELLOW}Install Kitty if not already installed...${RC}"
|
|
if ! command_exists kitty; then
|
|
case "$PACKAGER" in
|
|
pacman)
|
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm kitty
|
|
;;
|
|
*)
|
|
"$ESCALATION_TOOL" "$PACKAGER" install -y kitty
|
|
;;
|
|
esac
|
|
else
|
|
printf "%b\n" "${GREEN}Kitty is already installed.${RC}"
|
|
fi
|
|
}
|
|
|
|
setupKittyConfig() {
|
|
printf "%b\n" "${YELLOW}Copying Kitty configuration files...${RC}"
|
|
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
|
|
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
|
|
fi
|
|
mkdir -p "${HOME}/.config/kitty/"
|
|
curl -sSLo "${HOME}/.config/kitty/kitty.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/kitty.conf
|
|
curl -sSLo "${HOME}/.config/kitty/nord.conf" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/kitty/nord.conf
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installKitty
|
|
setupKittyConfig |