mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
Compare commits
No commits in common. "6029b017b7953feedac3319624d029feaff83fbf" and "1603c8be35e6223b70d66e2170982ce20cd332ed" have entirely different histories.
6029b017b7
...
1603c8be35
5
assets/hyprland.desktop
Normal file
5
assets/hyprland.desktop
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Hyprland
|
||||||
|
Comment=An intelligent dynamic tiling Wayland compositor
|
||||||
|
Exec=Hyprland
|
||||||
|
Type=Application
|
||||||
@ -9,6 +9,10 @@ TARGET_DIR="/usr/local/bin"
|
|||||||
|
|
||||||
# Define packages to manually remove (was manually installed previously)
|
# Define packages to manually remove (was manually installed previously)
|
||||||
PACKAGES=(
|
PACKAGES=(
|
||||||
|
hyprctl
|
||||||
|
hyprpm
|
||||||
|
hyprland
|
||||||
|
Hyprland
|
||||||
cliphist
|
cliphist
|
||||||
pypr
|
pypr
|
||||||
swappy
|
swappy
|
||||||
@ -16,16 +20,6 @@ PACKAGES=(
|
|||||||
magick
|
magick
|
||||||
)
|
)
|
||||||
|
|
||||||
# List of packages installed from Debian-Hyprland repo
|
|
||||||
uninstall=(
|
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
libhhyprland-dev
|
|
||||||
libhyprutils-dev
|
|
||||||
libhyprutils0
|
|
||||||
hyprwayland-scanner
|
|
||||||
hyprland-protocols
|
|
||||||
)
|
|
||||||
|
|
||||||
## 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 )"
|
||||||
|
|
||||||
@ -57,19 +51,4 @@ for PKG_NAME in "${PACKAGES[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
clear
|
||||||
# packages removal installed from Debian-Hyprland repo
|
|
||||||
overall_failed=0
|
|
||||||
printf "\n%s - ${SKY_BLUE}Removing some packages${RESET} installed from Debian Hyprland official repo \n" "${NOTE}"
|
|
||||||
for PKG in "${uninstall[@]}"; do
|
|
||||||
uninstall_package "$PKG" 2>&1 | tee -a "$LOG"
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
overall_failed=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $overall_failed -ne 0 ]; then
|
|
||||||
echo -e "${ERROR} Some packages failed to uninstall. Please check the log."
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf "\n%.0s" {1..1}
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
# Hyprland-Dots to download from main #
|
# Hyprland-Dots to download from main #
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
dots_tag="Debian-Dots"
|
dots_tag="Deb-Untu-Dots"
|
||||||
|
|
||||||
## 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 )"
|
||||||
|
|||||||
@ -7,7 +7,6 @@ qt_support=(
|
|||||||
qt6-base-dev
|
qt6-base-dev
|
||||||
qt6-wayland
|
qt6-wayland
|
||||||
qt6-declarative-dev
|
qt6-declarative-dev
|
||||||
qml6-module-qtcore
|
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
|
|||||||
@ -75,4 +75,8 @@ else
|
|||||||
echo -e "${ERROR} Download failed for ${YELLOW}Hyprland $hyprland_tag${RESET}" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for ${YELLOW}Hyprland $hyprland_tag${RESET}" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
wayland_sessions_dir=/usr/share/wayland-sessions
|
||||||
|
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
|
||||||
|
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
@ -10,10 +10,6 @@ lock=(
|
|||||||
libaudit-dev
|
libaudit-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
build_dep=(
|
|
||||||
pam
|
|
||||||
)
|
|
||||||
|
|
||||||
#specific branch or release
|
#specific branch or release
|
||||||
lock_tag="v0.9.0"
|
lock_tag="v0.9.0"
|
||||||
|
|
||||||
@ -41,10 +37,6 @@ for PKG1 in "${lock[@]}"; do
|
|||||||
re_install_package "$PKG1" "$LOG"
|
re_install_package "$PKG1" "$LOG"
|
||||||
done
|
done
|
||||||
|
|
||||||
for PKG1 in "${build_dep[@]}"; do
|
|
||||||
build_dep "$PKG1" "$LOG"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Check if hyprlock directory exists and remove it
|
# Check if hyprlock directory exists and remove it
|
||||||
if [ -d "hyprlock" ]; then
|
if [ -d "hyprlock" ]; then
|
||||||
rm -rf "hyprlock"
|
rm -rf "hyprlock"
|
||||||
|
|||||||
@ -35,11 +35,7 @@ rofi=(
|
|||||||
wget
|
wget
|
||||||
)
|
)
|
||||||
|
|
||||||
# variables
|
rofi_tag="1.7.8+wayland1"
|
||||||
rofi_tag="1.7.9+wayland1"
|
|
||||||
release_url="https://github.com/lbonn/rofi/releases/download/1.7.9%2Bwayland1/rofi-1.7.9+wayland1.tar.gz"
|
|
||||||
|
|
||||||
|
|
||||||
## 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 )"
|
||||||
|
|
||||||
@ -66,7 +62,7 @@ printf "\n%s - Re-installing ${SKY_BLUE}rofi-wayland dependencies${RESET}.... \n
|
|||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
# Clone and build rofi - wayland
|
# Clone and build rofi - wayland
|
||||||
printf "${NOTE} Building and Installing ${SKY_BLUE}rofi-wayland${RESET} $rofi_tag ...\n"
|
printf "${NOTE} Installing ${SKY_BLUE}rofi-wayland${RESET}...\n"
|
||||||
|
|
||||||
# Check if rofi directory exists
|
# Check if rofi directory exists
|
||||||
if [ -d "rofi-$rofi_tag" ]; then
|
if [ -d "rofi-$rofi_tag" ]; then
|
||||||
@ -75,7 +71,7 @@ fi
|
|||||||
|
|
||||||
# cloning rofi-wayland
|
# cloning rofi-wayland
|
||||||
printf "${NOTE} Downloading ${YELLOW}rofi-wayland $rofi_tag${RESET} from releases...\n"
|
printf "${NOTE} Downloading ${YELLOW}rofi-wayland $rofi_tag${RESET} from releases...\n"
|
||||||
wget $release_url
|
wget https://github.com/lbonn/rofi/releases/download/1.7.8%2Bwayland1/rofi-1.7.8+wayland1.tar.gz
|
||||||
|
|
||||||
if [ -f "rofi-$rofi_tag.tar.gz" ]; then
|
if [ -f "rofi-$rofi_tag.tar.gz" ]; then
|
||||||
printf "${OK} ${YELLOW}rofi-wayland $rofi_tag${RESET} downloaded successfully.\n" 2>&1 | tee -a "$LOG"
|
printf "${OK} ${YELLOW}rofi-wayland $rofi_tag${RESET} downloaded successfully.\n" 2>&1 | tee -a "$LOG"
|
||||||
|
|||||||
@ -77,5 +77,6 @@ sudo systemctl enable sddm.service 2>&1 | tee -a "$LOG"
|
|||||||
|
|
||||||
wayland_sessions_dir=/usr/share/wayland-sessions
|
wayland_sessions_dir=/usr/share/wayland-sessions
|
||||||
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
|
[ ! -d "$wayland_sessions_dir" ] && { printf "$CAT - $wayland_sessions_dir not found, creating...\n"; sudo mkdir -p "$wayland_sessions_dir" 2>&1 | tee -a "$LOG"; }
|
||||||
|
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
@ -20,9 +20,9 @@ SKY_BLUE="$(tput setaf 6)"
|
|||||||
RESET="$(tput sgr0)"
|
RESET="$(tput sgr0)"
|
||||||
|
|
||||||
# Display warning message
|
# Display warning message
|
||||||
echo -e "${NOTE}: Most Hyprland Packages installed here are manually built from github"
|
echo -e "${WARNING}NOTE:${RESET} Hyprland on Repo is extremely outdated and will not be supported anymore."
|
||||||
echo -e "${INFO}: You need to manually update it yourself."
|
echo -e "Use this at your own risk."
|
||||||
echo -e "${WARN}: Use this script at your own risk"
|
echo -e "${WARNING}Any issues will not be dealt with${RESET}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Prompt user to continue or exit
|
# Prompt user to continue or exit
|
||||||
@ -78,7 +78,7 @@ fi
|
|||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
echo -e "\e[35m
|
echo -e "\e[35m
|
||||||
╦╔═┌─┐┌─┐╦ ╦ ╦┬ ┬┌─┐┬─┐┬ ┌─┐┌┐┌┌┬┐
|
╦╔═┌─┐┌─┐╦ ╦ ╦┬ ┬┌─┐┬─┐┬ ┌─┐┌┐┌┌┬┐
|
||||||
╠╩╗│ ││ │║ ╠═╣└┬┘├─┘├┬┘│ ├─┤│││ ││ July 2025
|
╠╩╗│ ││ │║ ╠═╣└┬┘├─┘├┬┘│ ├─┤│││ ││ 2025
|
||||||
╩ ╩└─┘└─┘╩═╝ ╩ ╩ ┴ ┴ ┴└─┴─┘┴ ┴┘└┘─┴┘ Debian Trixie / SiD
|
╩ ╩└─┘└─┘╩═╝ ╩ ╩ ┴ ┴ ┴└─┴─┘┴ ┴┘└┘─┴┘ Debian Trixie / SiD
|
||||||
\e[0m"
|
\e[0m"
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user