-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from JaKooLit/development
Debian-Hyprland updated to Hyprland v0.39.1
- Loading branch information
Showing
11 changed files
with
297 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,6 @@ hypr_package_2=( | |
mpv-mpris | ||
nvtop | ||
pamixer | ||
swayidle | ||
vim | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/bash | ||
# 💫 https://github.com/JaKooLit 💫 # | ||
# hyprcursor # | ||
|
||
cursor=( | ||
libzip-dev | ||
librsvg2-dev | ||
) | ||
|
||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## | ||
# Determine the directory where the script is located | ||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
# Change the working directory to the parent directory of the script | ||
PARENT_DIR="$SCRIPT_DIR/.." | ||
cd "$PARENT_DIR" || exit 1 | ||
|
||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh" | ||
|
||
# Set the name of the log file to include the current date and time | ||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprcursor.log" | ||
MLOG="install-$(date +%d-%H%M%S)_hyprcursor.log" | ||
|
||
# Installation of dependencies | ||
printf "\n%s - Installing hyprcursor dependencies.... \n" "${NOTE}" | ||
|
||
for PKG1 in "${cursor[@]}"; do | ||
install_package "$PKG1" 2>&1 | tee -a "$LOG" | ||
if [ $? -ne 0 ]; then | ||
echo -e "\e[1A\e[K${ERROR} - $PKG1 install had failed, please check the install.log" | ||
exit 1 | ||
fi | ||
done | ||
|
||
# Check if hyprcursor folder exists and remove it | ||
if [ -d "hyprcursor" ]; then | ||
printf "${NOTE} Removing existing hyprcursor folder...\n" | ||
rm -rf "hyprcursor" | ||
fi | ||
|
||
# Clone and build | ||
printf "${NOTE} Installing hyprcursor...\n" | ||
if git clone https://github.com/hyprwm/hyprcursor.git; then | ||
cd hyprcursor || exit 1 | ||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build | ||
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` | ||
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then | ||
printf "${OK} hyprcursor installed successfully.\n" 2>&1 | tee -a "$MLOG" | ||
else | ||
echo -e "${ERROR} Installation failed for hyprcursor." 2>&1 | tee -a "$MLOG" | ||
fi | ||
#moving the addional logs to Install-Logs directory | ||
mv $MLOG ../Install-Logs/ || true | ||
cd .. | ||
else | ||
echo -e "${ERROR} Download failed for hyprcursor." 2>&1 | tee -a "$LOG" | ||
fi | ||
|
||
clear | ||
|
||
|
Oops, something went wrong.