Updates
This commit is contained in:
37
qtile/scripts/diagnosis.sh
Executable file
37
qtile/scripts/diagnosis.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
sleep 0.5
|
||||
figlet "Diagnosis"
|
||||
echo
|
||||
echo "This script will check that essential packages and "
|
||||
echo "execution commands are available on your system."
|
||||
echo
|
||||
|
||||
_commandExists() {
|
||||
package="$1";
|
||||
if ! type $package > /dev/null 2>&1; then
|
||||
echo ":: ERROR: $package doesn't exists. Please install it with yay -S $2"
|
||||
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" "rofi-wayland"
|
||||
_commandExists "dunst" "dunst"
|
||||
_commandExists "wal" "python-pywal"
|
||||
_commandExists "gum" "gum"
|
||||
_commandExists "magick" "imagemagick"
|
||||
_commandExists "figlet" "figlet"
|
||||
|
||||
echo
|
||||
echo "Press return to exit"
|
||||
read
|
||||
@@ -9,11 +9,7 @@
|
||||
# by Stephan Raabe (2023)
|
||||
# -----------------------------------------------------
|
||||
echo $XDG_SESSION_TYPE
|
||||
if [ $XDG_SESSION_TYPE == "wayland" ]; then
|
||||
lockapp=swaylock
|
||||
else
|
||||
lockapp=slock
|
||||
fi
|
||||
lockapp=slock
|
||||
echo "Using $lockapp to lock the screen."
|
||||
|
||||
option1=" lock"
|
||||
|
||||
Reference in New Issue
Block a user