Hyprland-dotfiles/scripts/diagnosis.sh

44 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2024-03-26 09:30:58 -04:00
#!/bin/bash
clear
sleep 0.5
figlet "Diagnosis"
echo
2024-05-02 09:59:08 -04:00
echo "This script will check that essential packages and "
echo "execution commands are available on your system."
2024-03-26 09:30:58 -04:00
echo
_commandExists() {
package="$1";
2024-05-03 03:20:03 -04: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 09:30:58 -04: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 03:20:03 -04: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"
_commandExists "magick2" "imagemagick"
_commandExists "figlet2" "figlet"
2024-03-26 09:30:58 -04:00
echo
2024-05-03 03:20:03 -04:00
echo "Press return to exit"
2024-03-26 09:30:58 -04:00
read