copied Ubuntu 24.10 (almost) installation of hyprland. See if this helps with installation of hypridle

This commit is contained in:
JaKooLit 2025-03-12 23:01:18 +09:00
parent 7f3fc195b5
commit 0eeb107c4a
11 changed files with 74 additions and 75 deletions

View File

@ -10,7 +10,7 @@ Extra=(
) )
# packages neeeded # packages needed
hypr_package=( hypr_package=(
cliphist cliphist
grim grim
@ -23,7 +23,6 @@ hypr_package=(
pavucontrol pavucontrol
playerctl playerctl
polkit-kde-agent-1 polkit-kde-agent-1
pkexec
python3-requests python3-requests
python3-pip python3-pip
qt5ct qt5ct
@ -31,9 +30,9 @@ hypr_package=(
qt5-style-kvantum-themes qt5-style-kvantum-themes
qt6ct qt6ct
slurp slurp
sway-notification-center
swappy swappy
unzip # required later sway-notification-center
unzip
waybar waybar
wget wget
wl-clipboard wl-clipboard
@ -48,19 +47,25 @@ hypr_package_2=(
brightnessctl brightnessctl
btop btop
cava cava
loupe
nwg-look
nwg-displays
fastfetch fastfetch
loupe
gnome-system-monitor gnome-system-monitor
mousepad mousepad
mpv mpv
mpv-mpris mpv-mpris
nwg-look
nwg-displays
nvtop nvtop
pamixer pamixer
qalculate-gtk qalculate-gtk
) )
# packages to force reinstall
force=(
imagemagick
wayland-protocols
)
# List of packages to uninstall as it conflicts with swaync or causing swaync to not function properly # List of packages to uninstall as it conflicts with swaync or causing swaync to not function properly
uninstall=( uninstall=(
dunst dunst
@ -69,11 +74,6 @@ uninstall=(
cargo cargo
) )
# List packages to force reinstall
force=(
yad
)
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -106,7 +106,6 @@ fi
printf "\n%.0s" {1..1} printf "\n%.0s" {1..1}
# Installation of main components # Installation of main components
printf "\n%s - Installing ${SKY_BLUE}KooL's hyprland necessary packages${RESET} .... \n" "${NOTE}" printf "\n%s - Installing ${SKY_BLUE}KooL's hyprland necessary packages${RESET} .... \n" "${NOTE}"
@ -114,12 +113,13 @@ for PKG1 in "${hypr_package[@]}" "${hypr_package_2[@]}" "${Extra[@]}"; do
install_package "$PKG1" "$LOG" install_package "$PKG1" "$LOG"
done done
printf "\n%.0s" {1..1}
for PKG2 in "${force[@]}"; do for PKG2 in "${force[@]}"; do
re_install_package "$PKG2" "$LOG" re_install_package "$PKG2" "$LOG"
done done
printf "\n%.0s" {1..1} printf "\n%.0s" {1..1}
# install YAD from assets. NOTE This is downloaded from SID repo and sometimes # install YAD from assets. NOTE This is downloaded from SID repo and sometimes
# Trixie is removing YAD for some strange reasons # Trixie is removing YAD for some strange reasons
# Check if yad is installed # Check if yad is installed

View File

@ -3,7 +3,7 @@
# This script is cleaning up previous manual installation files / directories # This script is cleaning up previous manual installation files / directories
# 22 Aug 2024 # 22 Aug 2024
# Files to be removed rom /usr/local/bin # Files to be removed from /usr/local/bin
TARGET_DIR="/usr/local/bin" TARGET_DIR="/usr/local/bin"
@ -46,7 +46,9 @@ for PKG_NAME in "${PACKAGES[@]}"; do
# Delete the file # Delete the file
sudo rm "$FILE_PATH" sudo rm "$FILE_PATH"
echo "Deleted: $FILE_PATH" 2>&1 | tee -a "$LOG" echo "Deleted: $FILE_PATH" 2>&1 | tee -a "$LOG"
else
echo "File not found: $FILE_PATH" 2>&1 | tee -a "$LOG"
fi fi
done done
printf "\n%.0s" {1..2} clear

View File

@ -49,6 +49,7 @@ if command -v ags &>/dev/null; then
AGS_VERSION=$(ags -v | awk '{print $NF}') AGS_VERSION=$(ags -v | awk '{print $NF}')
if [[ "$AGS_VERSION" == "1.9.0" ]]; then if [[ "$AGS_VERSION" == "1.9.0" ]]; then
printf "${INFO} ${MAGENTA}Aylur's GTK Shell v1.9.0${RESET} is already installed. Skipping installation." printf "${INFO} ${MAGENTA}Aylur's GTK Shell v1.9.0${RESET} is already installed. Skipping installation."
printf "\n%.0s" {1..2}
exit 0 exit 0
fi fi
fi fi

View File

@ -3,10 +3,8 @@
# Main Hyprland Package # # Main Hyprland Package #
hypr=( hypr=(
libhyprutils0
libhyprlang-dev
hyprwayland-scanner
hyprland-protocols hyprland-protocols
hyprwayland-scanner
) )
# forcing to reinstall. Had experience it says hyprland is already installed # forcing to reinstall. Had experience it says hyprland is already installed
@ -30,6 +28,7 @@ fi
# Set the name of the log file to include the current date and time # Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log" LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprland.log"
# Hyprland # Hyprland
printf "${NOTE} Installing ${SKY_BLUE}Hyprland packages${RESET} .......\n" printf "${NOTE} Installing ${SKY_BLUE}Hyprland packages${RESET} .......\n"
for HYPR in "${hypr[@]}"; do for HYPR in "${hypr[@]}"; do

View File

@ -8,6 +8,7 @@ sddm1=(
) )
sddm2=( sddm2=(
qt6-5compat-dev
qml6-module-qt5compat-graphicaleffects qml6-module-qt5compat-graphicaleffects
qt6-declarative-dev qt6-declarative-dev
qt6-svg-dev qt6-svg-dev

View File

@ -110,8 +110,7 @@ if git clone --depth=1 "$source_theme" "$theme_name"; then
echo "Failed to copy fonts." echo "Failed to copy fonts."
fi fi
# Update font cache and log the output fc-cache -fv 2>&1 | tee -a "$LOG"
fc-cache -v -f 2>&1 | tee -a "$LOG"
printf "\n%.0s" {1..1} printf "\n%.0s" {1..1}

View File

@ -5,7 +5,6 @@
wallust=( wallust=(
wallust wallust
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

View File

@ -4,8 +4,8 @@
zsh=( zsh=(
lsd lsd
mercurial
zsh zsh
mercurial
zplug zplug
) )

View File

@ -18,7 +18,6 @@ fi
# Set the name of the log file to include the current date and time # Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log" LOG="Install-Logs/install-$(date +%d-%H%M%S)_zsh_pokemon.log"
printf "${INFO} Installing ${SKY_BLUE}Pokemon color scripts${RESET} ..." printf "${INFO} Installing ${SKY_BLUE}Pokemon color scripts${RESET} ..."
if [ -d "pokemon-colorscripts" ]; then if [ -d "pokemon-colorscripts" ]; then
@ -36,5 +35,4 @@ else
echo "$HOME/.zshrc not found. Cant enable ${YELLOW}Pokemon color scripts${RESET}" >> "$LOG" 2>&1 echo "$HOME/.zshrc not found. Cant enable ${YELLOW}Pokemon color scripts${RESET}" >> "$LOG" 2>&1
fi fi
printf "\n%.0s" {1..2} printf "\n%.0s" {1..2}

View File

@ -169,7 +169,7 @@ if check_services_running; then
# Display the active login manager(s) in the whiptail message box # Display the active login manager(s) in the whiptail message box
whiptail --title "Active non-SDDM login manager(s) detected" \ whiptail --title "Active non-SDDM login manager(s) detected" \
--msgbox "The following login manager(s) are active:\n\n$active_list\n\nIf you want to install SDDM and SDDM theme, stop and disable first the active services above first before running this script\nRefer to README on switching to SDDM if you really want SDDM\n\nNOTE: Your option to install SDDM and SDDM theme has now been removed\n\n😎 Ja " 27 80 --msgbox "The following login manager(s) are active:\n\n$active_list\n\nIf you want to install SDDM and SDDM theme, stop and disable first the active services above first before running this script\nRefer to README on switching to SDDM if you really want SDDM\n\nNOTE: Your option to install SDDM and SDDM theme has now been removed\n\n-Ja " 27 80
fi fi
# Check if NVIDIA GPU is detected # Check if NVIDIA GPU is detected