mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
added hyprlang installation
This commit is contained in:
parent
498dde6e60
commit
14e487e576
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## 11 Jan 2024
|
## 11 Jan 2024
|
||||||
- dropped wlsunset
|
- dropped wlsunset
|
||||||
|
- added hyprlang build and install
|
||||||
|
|
||||||
## 02 Jan 2024
|
## 02 Jan 2024
|
||||||
- Readme updated for cliphist instruction for ubuntu 23.10 users
|
- Readme updated for cliphist instruction for ubuntu 23.10 users
|
||||||
|
|||||||
48
install-scripts/hyprlang.sh
Executable file
48
install-scripts/hyprlang.sh
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
|
# hyprlang - hyprland and xdg-desktop-portal- dependencies #
|
||||||
|
|
||||||
|
## 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)_hyprlang.log"
|
||||||
|
MLOG="install-$(date +%d-%H%M%S)_hyprlang2.log"
|
||||||
|
|
||||||
|
##
|
||||||
|
printf "${NOTE} Installing hyprlang...\n"
|
||||||
|
|
||||||
|
# Check if hyprlang folder exists and remove it
|
||||||
|
if [ -d "hyprlang" ]; then
|
||||||
|
printf "${NOTE} Removing existing hyprlang folder...\n"
|
||||||
|
rm -rf "hyprlang"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Clone and build hyprlang
|
||||||
|
printf "${NOTE} Installing hyprlang...\n"
|
||||||
|
if git clone https://github.com/hyprwm/hyprlang.git; then
|
||||||
|
cd hyprlang || 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 hyprlang -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
||||||
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
printf "${OK} hyprlang installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for hyprlang." 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 hyprlang." 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
clear
|
||||||
|
|
||||||
@ -47,8 +47,7 @@ if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland;
|
|||||||
mv $MLOG ../Install-Logs/ || true
|
mv $MLOG ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Download failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$LOG"
|
||||||
mv $MLOG Install-Logs/ || true
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|||||||
@ -171,6 +171,7 @@ execute_script "swww.sh"
|
|||||||
execute_script "rofi-wayland.sh"
|
execute_script "rofi-wayland.sh"
|
||||||
execute_script "pywal.sh"
|
execute_script "pywal.sh"
|
||||||
execute_script "force-install.sh"
|
execute_script "force-install.sh"
|
||||||
|
execute_script "hyprlang.sh"
|
||||||
|
|
||||||
#execute_script "cliphist.sh"
|
#execute_script "cliphist.sh"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user