mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Add fastfetch
This commit is contained in:
parent
6838811e74
commit
4b3da30328
29
tabs/applications-setup/fastfetch-setup.sh
Normal file
29
tabs/applications-setup/fastfetch-setup.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../common-script.sh
|
||||
|
||||
setupFastfetch() {
|
||||
echo "Install Fastfetch if not already installed..."
|
||||
if ! command_exists fastfetch; then
|
||||
case ${PACKAGER} in
|
||||
pacman)
|
||||
$ESCALATION_TOOL "${PACKAGER}" -S --needed --noconfirm fastfetch
|
||||
;;
|
||||
*)
|
||||
$ESCALATION_TOOL "${PACKAGER}" install -y fastfetch
|
||||
;;
|
||||
esac
|
||||
else
|
||||
echo "Fastfetch is already installed."
|
||||
fi
|
||||
echo "Copy Fastfetch config files"
|
||||
if [ -d "${HOME}/.config/fastfetch" ] && [ ! -d "${HOME}/.config/fastfetch-bak" ]; then
|
||||
cp -r "${HOME}/.config/fastfetch" "${HOME}/.config/fastfetch-bak"
|
||||
fi
|
||||
mkdir -p "${HOME}/.config/fastfetch/"
|
||||
curl -sSLo "${HOME}/.config/fastfetch/config.jsonc" https://raw.githubusercontent.com/ChrisTitusTech/mybash/main/config.jsonc
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
setupFastfetch
|
|
@ -27,3 +27,7 @@ script = "rofi-setup.sh"
|
|||
[[data]]
|
||||
name = "ZSH Prompt"
|
||||
script = "zsh-setup.sh"
|
||||
|
||||
[[data]]
|
||||
name = "Fastfetch"
|
||||
script = "fastfetch-setup.sh"
|
Loading…
Reference in New Issue
Block a user