mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Compare commits
6 Commits
6029b017b7
...
2a364e0730
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a364e0730 | ||
|
|
3a3ee81726 | ||
|
|
e149238243 | ||
|
|
1c2301ef9a | ||
|
|
805821e85a | ||
|
|
102aefb774 |
@ -79,6 +79,7 @@ dependencies=(
|
|||||||
libxkbcommon-x11-dev
|
libxkbcommon-x11-dev
|
||||||
libxkbregistry-dev
|
libxkbregistry-dev
|
||||||
libxml2-dev
|
libxml2-dev
|
||||||
|
libsdbus-c++-dev
|
||||||
libxxhash-dev
|
libxxhash-dev
|
||||||
meson
|
meson
|
||||||
ninja-build
|
ninja-build
|
||||||
|
|||||||
@ -3,6 +3,9 @@
|
|||||||
# Hypr Ecosystem #
|
# Hypr Ecosystem #
|
||||||
# hyprgraphics #
|
# hyprgraphics #
|
||||||
|
|
||||||
|
hyprgraphics=(
|
||||||
|
libmagic
|
||||||
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
graphics_tag="v0.1.5"
|
graphics_tag="v0.1.5"
|
||||||
@ -27,6 +30,15 @@ MLOG="install-$(date +%d-%H%M%S)_hyprgraphics2.log"
|
|||||||
# Installation of dependencies
|
# Installation of dependencies
|
||||||
printf "\n%s - Installing ${YELLOW}hyprgraphics dependencies${RESET} .... \n" "${INFO}"
|
printf "\n%s - Installing ${YELLOW}hyprgraphics dependencies${RESET} .... \n" "${INFO}"
|
||||||
|
|
||||||
|
for PKG1 in "${hyprgraphics[@]}"; do
|
||||||
|
re_install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Check if hyprgraphics directory exists and remove it
|
# Check if hyprgraphics directory exists and remove it
|
||||||
if [ -d "hyprgraphics" ]; then
|
if [ -d "hyprgraphics" ]; then
|
||||||
rm -rf "hyprgraphics"
|
rm -rf "hyprgraphics"
|
||||||
|
|||||||
@ -8,6 +8,10 @@ qt_support=(
|
|||||||
qt6-wayland
|
qt6-wayland
|
||||||
qt6-declarative-dev
|
qt6-declarative-dev
|
||||||
qml6-module-qtcore
|
qml6-module-qtcore
|
||||||
|
qml6-module-qtquick-layouts
|
||||||
|
qt6-tools-dev
|
||||||
|
qt6-tools-dev-tools
|
||||||
|
qt6-charts-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
|
|||||||
@ -6,11 +6,14 @@
|
|||||||
qtutils=(
|
qtutils=(
|
||||||
libqt6core5compat6
|
libqt6core5compat6
|
||||||
qt6-base-dev
|
qt6-base-dev
|
||||||
qt6-wayland
|
qt6-wayland-dev
|
||||||
|
qt6-wayland
|
||||||
qt6-declarative-dev
|
qt6-declarative-dev
|
||||||
qml6-module-qtcore
|
qml6-module-qtcore
|
||||||
qt6-3d-dev
|
qt6-3d-dev
|
||||||
qt6-5compat-dev
|
qt6-5compat-dev
|
||||||
|
libqt6waylandclient6
|
||||||
|
qml6-module-qtwayland-client-texturesharing
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
|
|||||||
@ -45,7 +45,7 @@ printf "\n%s - Installing Hyprland additional dependencies (glaze).... \n" "${NO
|
|||||||
if [ ! -d /usr/include/glaze ]; then
|
if [ ! -d /usr/include/glaze ]; then
|
||||||
echo "${INFO} ${YELLOW}Glaze${RESET} is not installed. Installing ${YELLOW}glaze from assets${RESET} ..."
|
echo "${INFO} ${YELLOW}Glaze${RESET} is not installed. Installing ${YELLOW}glaze from assets${RESET} ..."
|
||||||
sudo dpkg -i assets/libglaze-dev_4.4.3-1_all.deb 2>&1 | tee -a "$LOG"
|
sudo dpkg -i assets/libglaze-dev_4.4.3-1_all.deb 2>&1 | tee -a "$LOG"
|
||||||
sudo apt install -f -y 2>&1 | tee -a "$LOG"
|
sudo apt-get install -f -y 2>&1 | tee -a "$LOG"
|
||||||
echo "${INFO} ${YELLOW}libglaze-dev from assets${RESET} installed."
|
echo "${INFO} ${YELLOW}libglaze-dev from assets${RESET} installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@ lock=(
|
|||||||
libdrm-dev
|
libdrm-dev
|
||||||
libmagic-dev
|
libmagic-dev
|
||||||
libaudit-dev
|
libaudit-dev
|
||||||
|
libsdbus-c++-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dep=(
|
build_dep=(
|
||||||
|
|||||||
@ -6,6 +6,10 @@
|
|||||||
polkitagent=(
|
polkitagent=(
|
||||||
libpolkit-agent-1-dev
|
libpolkit-agent-1-dev
|
||||||
libpolkit-qt6-1-dev
|
libpolkit-qt6-1-dev
|
||||||
|
qml6-module-qtquick-layouts
|
||||||
|
qt6-tools-dev
|
||||||
|
qt6-tools-dev-tools
|
||||||
|
qt6-charts-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
@ -32,7 +36,7 @@ MLOG="install-$(date +%d-%H%M%S)_hyprpolkitagent.log"
|
|||||||
printf "\n%s - Installing hyprpolkitagent dependencies.... \n" "${NOTE}"
|
printf "\n%s - Installing hyprpolkitagent dependencies.... \n" "${NOTE}"
|
||||||
|
|
||||||
for PKG1 in "${polkitagent[@]}"; do
|
for PKG1 in "${polkitagent[@]}"; do
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
re_install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@ -3,10 +3,17 @@
|
|||||||
# XDG-Desktop-Portals for hyprland #
|
# XDG-Desktop-Portals for hyprland #
|
||||||
|
|
||||||
xdg=(
|
xdg=(
|
||||||
xdg-desktop-portal-gtk
|
libdrm-dev
|
||||||
xdg-desktop-portal-hyprland
|
libpipewire-0.3-dev
|
||||||
|
libspa-0.2-dev
|
||||||
|
libsdbus-c++-dev
|
||||||
|
libwayland-client0
|
||||||
|
wayland-protocols
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
)
|
)
|
||||||
|
|
||||||
|
xdph_tag="v1.3.9"
|
||||||
|
|
||||||
## 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 )"
|
||||||
|
|
||||||
@ -26,9 +33,38 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_xdph.log"
|
|||||||
[[ -f "/usr/lib/xdg-desktop-portal-hyprland" ]] && sudo rm "/usr/lib/xdg-desktop-portal-hyprland"
|
[[ -f "/usr/lib/xdg-desktop-portal-hyprland" ]] && sudo rm "/usr/lib/xdg-desktop-portal-hyprland"
|
||||||
|
|
||||||
# XDG-DESKTOP-PORTAL-HYPRLAND
|
# XDG-DESKTOP-PORTAL-HYPRLAND
|
||||||
printf "${NOTE} Installing ${SKY_BLUE}xdg-desktop-portal-hyprland${RESET}\n\n"
|
printf "${NOTE} Installing ${SKY_BLUE}xdg-desktop-portal-hyprland dependencies${RESET}\n\n"
|
||||||
for xdgs in "${xdg[@]}"; do
|
|
||||||
install_package "$xdgs" "$LOG"
|
for PKG1 in "${xdg[@]}"; do
|
||||||
|
re_install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Clone, build, and install XDPH
|
||||||
|
printf "${NOTE} Cloning and Installing ${YELLOW}XDG Desktop Portal Hyprland $hyprland_tag${RESET} ...\n"
|
||||||
|
|
||||||
|
# Check if xdg-desktop-portal-hyprland folder exists and remove it
|
||||||
|
if [ -d "xdg-desktop-portal-hyprland" ]; then
|
||||||
|
printf "${NOTE} Removing existing xdg-desktop-portal-hyprland folder...\n"
|
||||||
|
rm -rf "xdg-desktop-portal-hyprland" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if git clone --recursive -b $xdph_tag "https://github.com/hyprwm/xdg-desktop-portal-hyprland.git"; then
|
||||||
|
cd "xdg-desktop-portal-hyprland" || exit 1
|
||||||
|
cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -B build
|
||||||
|
cmake --build build
|
||||||
|
if sudo cmake --install build 2>&1 | tee -a "$MLOG"; then
|
||||||
|
printf "${OK} ${MAGENTA}xdph $xdph_tag${RESET} installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Installation failed for ${YELLOW}xdph $xdph_tag${RESET}" 2>&1 | tee -a "$MLOG"
|
||||||
|
fi
|
||||||
|
mv $MLOG ../Install-Logs/ || true
|
||||||
|
cd ..
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Download failed for ${YELLOW}xdph $xdph_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|||||||
@ -329,12 +329,12 @@ echo "${INFO} Installing ${SKY_BLUE}KooL Hyprland packages...${RESET}" | tee -a
|
|||||||
sleep 1
|
sleep 1
|
||||||
execute_script "01-hypr-pkgs.sh"
|
execute_script "01-hypr-pkgs.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
execute_script "hyprutils.sh"
|
||||||
|
sleep 1
|
||||||
execute_script "hyprlang.sh"
|
execute_script "hyprlang.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "hyprcursor.sh"
|
execute_script "hyprcursor.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "hyprutils.sh"
|
|
||||||
sleep 1
|
|
||||||
execute_script "hyprwayland-scanner.sh"
|
execute_script "hyprwayland-scanner.sh"
|
||||||
sleep 1
|
sleep 1
|
||||||
execute_script "hyprgraphics.sh"
|
execute_script "hyprgraphics.sh"
|
||||||
@ -464,8 +464,8 @@ execute_script "03-Final-Check.sh"
|
|||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# Check if either hyprland or hyprland-git is installed
|
# Check if either hyprland or Hyprland files exist in /usr/local/bin/
|
||||||
if dpkg -l | grep -qw hyprland; then
|
if [ -e /usr/local/bin/hyprland ] || [ -f /usr/local/bin/Hyprland ]; then
|
||||||
printf "\n ${OK} 👌 Hyprland is installed. However, some essential packages may not be installed. Please see above!"
|
printf "\n ${OK} 👌 Hyprland is installed. However, some essential packages may not be installed. Please see above!"
|
||||||
printf "\n${CAT} Ignore this message if it states ${YELLOW}All essential packages${RESET} are installed as per above\n"
|
printf "\n${CAT} Ignore this message if it states ${YELLOW}All essential packages${RESET} are installed as per above\n"
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user