diff --git a/.install/packages/hyprland-packages.sh b/.install/packages/hyprland-packages.sh index 1d80eba..5f09eac 100644 --- a/.install/packages/hyprland-packages.sh +++ b/.install/packages/hyprland-packages.sh @@ -10,8 +10,6 @@ packagesPacman=( packagesYay=( "swww" - "hypridle-git" - "hyprlock-git" "wlogout" "nwg-look" "emote" diff --git a/.install/screenlock.sh b/.install/screenlock.sh new file mode 100755 index 0000000..c53e172 --- /dev/null +++ b/.install/screenlock.sh @@ -0,0 +1,13 @@ +#!/bin/bash +echo -e "${GREEN}" +figlet "Screen lock" +echo -e "${NONE}" +if [[ $(_isInstalledYay "hypridle-git") == 1 ]] || [[ $(_isInstalledYay "hyprlock-git") == 1 ]]; then + echo "You can install hypridle and hyprlock lock your screen automatically." + if gum confirm "Do you want to install hypridle and hyprlock?" ;then + yay --noconfirm -S hypridle-git hyprlock-git + fi +else + echo ":: hypridle and hyprlock are already installed." +fi +echo \ No newline at end of file diff --git a/install.sh b/install.sh index 6933c9b..6f9459c 100755 --- a/install.sh +++ b/install.sh @@ -49,6 +49,7 @@ if [[ $profile == *"Hyprland"* ]]; then echo -e "${NONE}" source .install/packages/hyprland-packages.sh source .install/install-packages.sh + source .install/screenlock.sh fi if [[ $profile == *"Qtile"* ]]; then echo -e "${GREEN}"