Hyprland-dotfiles/scripts/diagnosis.sh

45 lines
924 B
Bash
Raw 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";
if ! type $package > /dev/null; then
echo ":: ERROR: $package doesn't exists. Please install it."
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
}
_commandExists "rofi"
_commandExists "dunst"
_commandExists "waybar"
2024-05-02 09:59:08 -04:00
_commandExists "hyprpaper"
_commandExists "hyprlock"
_commandExists "hypridle"
2024-03-26 09:30:58 -04:00
_commandExists "wal"
_commandExists "gum"
_commandExists "wlogout"
2024-05-02 09:59:08 -04:00
_commandExists "wal"
_commandExists "swww"
_commandExists "eww"
_commandExists "magick"
_commandExists "figlet"
2024-03-26 09:30:58 -04:00
echo
echo "Press return to close the window"
read