52 lines
1.3 KiB
Bash
Raw Normal View History

2024-03-26 14:30:58 +01:00
#!/bin/bash
2024-05-23 15:47:31 +02:00
# ____ _ _
# | _ \(_) __ _ __ _ _ __ ___ ___(_)___
# | | | | |/ _` |/ _` | '_ \ / _ \/ __| / __|
# | |_| | | (_| | (_| | | | | (_) \__ \ \__ \
# |____/|_|\__,_|\__, |_| |_|\___/|___/_|___/
# |___/
#
2024-03-26 14:30:58 +01:00
clear
sleep 0.5
figlet "Diagnosis"
echo
2024-05-02 15:59:08 +02:00
echo "This script will check that essential packages and "
echo "execution commands are available on your system."
2024-03-26 14:30:58 +01:00
echo
_commandExists() {
package="$1";
2024-05-03 09:20:03 +02:00
if ! type $package > /dev/null 2>&1; then
echo ":: ERROR: $package doesn't exists. Please install it with yay -S $2"
2024-03-26 14:30:58 +01:00
else
echo ":: OK: $package found."
fi
}
_folderExists() {
folder="$1";
if [ ! -d $folder ]; then
echo ":: ERROR: $folder doesn't exists."
else
echo ":: OK: $folder found."
fi
}
2024-05-03 09:20:03 +02:00
_commandExists "rofi" "rofi-wayland"
_commandExists "dunst" "dunst"
_commandExists "waybar" "waybar"
_commandExists "hyprpaper" "hyprpaper"
_commandExists "hyprlock" "hyprpaper"
_commandExists "hypridle" "hyprpaper"
_commandExists "wal" "python-pywal"
_commandExists "gum" "gum"
_commandExists "wlogout" "wlogout"
_commandExists "swww" "swww"
_commandExists "eww" "eww"
2024-05-15 11:56:26 +02:00
_commandExists "magick" "imagemagick"
_commandExists "figlet" "figlet"
2024-03-26 14:30:58 +01:00
echo
2024-05-03 09:20:03 +02:00
echo "Press return to exit"
2024-03-26 14:30:58 +01:00
read