mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 18:20:13 +01:00
updated script to avoid some errors
This commit is contained in:
parent
52186f1468
commit
7aec54b9c4
@ -146,6 +146,10 @@ ninja -C build
|
|||||||
sudo ninja -C build install
|
sudo ninja -C build install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 🤬 FAQ
|
||||||
|
#### Most common question I got is, Hey Ja, Why the heck it is taking long time to install? Other distro like Arch its only a minute or two. Why here takes like forever?!?!?!
|
||||||
|
- Well, most of the core packages are downloaded and Build and compiled from SOURCE. There are no pre-built binary (yet) for Debian and Ubuntu. Unlike Other distros, they already have prepacked binary that can just download and install.
|
||||||
|
|
||||||
### 🛣️ Roadmap:
|
### 🛣️ Roadmap:
|
||||||
- [ ] Install zsh and oh-my-zsh without necessary steps above
|
- [ ] Install zsh and oh-my-zsh without necessary steps above
|
||||||
- [ ] possibly adding gruvbox themes, cursors, icons
|
- [ ] possibly adding gruvbox themes, cursors, icons
|
||||||
|
|||||||
@ -15,18 +15,25 @@ LOG="install-$(date +%d-%H%M%S)_hyprland.log"
|
|||||||
|
|
||||||
# Clone, build, and install Hyprland using Cmake
|
# Clone, build, and install Hyprland using Cmake
|
||||||
printf "${NOTE} Cloning Hyprland...\n"
|
printf "${NOTE} Cloning Hyprland...\n"
|
||||||
|
|
||||||
|
# Check if Hyprland folder exists and remove it
|
||||||
|
if [ -d "Hyprland" ]; then
|
||||||
|
printf "${NOTE} Removing existing Hyprland folder...\n"
|
||||||
|
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
|
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
|
||||||
cd Hyprland || exit 1
|
cd "Hyprland" || exit 1
|
||||||
make all 2>&1 | tee -a "$LOG"
|
make all 2>&1 | tee -a "$LOG"
|
||||||
if sudo make install 2>&1 | tee -a "$LOG"; then
|
if sudo make install 2>&1 | tee -a "$LOG"; then
|
||||||
printf "${OK} Hyprland installed successfully.\n"
|
printf "${OK} Hyprland installed successfully.\n"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for Hyprland."
|
echo -e "${ERROR} Installation failed for Hyprland."
|
||||||
fi
|
fi
|
||||||
# Return to the previous directory
|
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for Hyprland."
|
echo -e "${ERROR} Download failed for Hyprland."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -82,6 +82,13 @@ add_to_file() {
|
|||||||
|
|
||||||
# Clone, build, and install nvidia-Hyprland using Cmake
|
# Clone, build, and install nvidia-Hyprland using Cmake
|
||||||
printf "${NOTE} Installing nvidia-Hyprland...\n"
|
printf "${NOTE} Installing nvidia-Hyprland...\n"
|
||||||
|
|
||||||
|
# Check if Hyprland folder exists and remove it
|
||||||
|
if [ -d "Hyprland" ]; then
|
||||||
|
printf "${NOTE} Removing existing Hyprland folder...\n"
|
||||||
|
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
|
if git clone --recursive -b v0.32.3 "https://github.com/hyprwm/Hyprland" 2>&1 | tee -a "$LOG"; then
|
||||||
cd Hyprland || exit 1
|
cd Hyprland || exit 1
|
||||||
make all
|
make all
|
||||||
|
|||||||
@ -53,6 +53,13 @@ for package in "${nwg_look[@]}"; do
|
|||||||
install_package "$package" || exit 1
|
install_package "$package" || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
# Check if nwg-look folder exists and remove it
|
||||||
|
if [ -d "nwg-look" ]; then
|
||||||
|
printf "${NOTE} Removing existing nwg-look folder...\n"
|
||||||
|
rm -rf "nwg-look" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
printf "${NOTE} Installing nwg-look\n"
|
printf "${NOTE} Installing nwg-look\n"
|
||||||
if git clone https://github.com/nwg-piotr/nwg-look.git; then
|
if git clone https://github.com/nwg-piotr/nwg-look.git; then
|
||||||
cd nwg-look || exit 1
|
cd nwg-look || exit 1
|
||||||
|
|||||||
@ -70,12 +70,18 @@ done
|
|||||||
|
|
||||||
printf "\n\n\n"
|
printf "\n\n\n"
|
||||||
|
|
||||||
# Clone and build xdg-desktop-portal-hyprland
|
# Clone and build rofi - wayland
|
||||||
printf "${NOTE} Installing rofi-wayland...\n"
|
printf "${NOTE} Installing rofi-wayland...\n"
|
||||||
|
|
||||||
|
# Check if rofi folder exists and remove it
|
||||||
|
if [ -d "rofi" ]; then
|
||||||
|
printf "${NOTE} Removing existing rofi folder...\n"
|
||||||
|
rm -rf "rofi" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone https://github.com/lbonn/rofi.git 2>&1 | tee -a "$LOG"; then
|
if git clone https://github.com/lbonn/rofi.git 2>&1 | tee -a "$LOG"; then
|
||||||
cd rofi || exit 1
|
cd "rofi" || exit 1
|
||||||
meson setup build
|
if meson setup build && ninja -C build; then
|
||||||
ninja -C build
|
|
||||||
if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then
|
if sudo ninja -C build install 2>&1 | tee -a "$LOG"; then
|
||||||
printf "${OK} rofi-wayland installed successfully.\n"
|
printf "${OK} rofi-wayland installed successfully.\n"
|
||||||
# Return to the previous directory
|
# Return to the previous directory
|
||||||
@ -83,10 +89,11 @@ if git clone https://github.com/lbonn/rofi.git 2>&1 | tee -a "$LOG"; then
|
|||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for rofi-wayland."
|
echo -e "${ERROR} Installation failed for rofi-wayland."
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo -e "${ERROR} Meson setup or ninja build failed for rofi-wayland."
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for rofi-wayland."
|
echo -e "${ERROR} Download failed for rofi-wayland."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swappy.log"
|
|||||||
|
|
||||||
printf "${NOTE} Installing swappy..\n"
|
printf "${NOTE} Installing swappy..\n"
|
||||||
|
|
||||||
|
# Check if Hyprland folder exists and remove it
|
||||||
|
if [ -d "swappy" ]; then
|
||||||
|
printf "${NOTE} Removing existing swappy folder...\n"
|
||||||
|
rm -rf "swappy" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone https://github.com/jtheoof/swappy.git; then
|
if git clone https://github.com/jtheoof/swappy.git; then
|
||||||
cd swappy || exit 1
|
cd swappy || exit 1
|
||||||
meson build
|
meson build
|
||||||
|
|||||||
@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swaylock-effects.log"
|
|||||||
|
|
||||||
printf "${NOTE} Installing swaylock-effects\n"
|
printf "${NOTE} Installing swaylock-effects\n"
|
||||||
|
|
||||||
|
# Check if swaylock-effects folder exists and remove it
|
||||||
|
if [ -d "swaylock-effects" ]; then
|
||||||
|
printf "${NOTE} Removing existing swaylock-effects folder...\n"
|
||||||
|
rm -rf "swaylock-effects" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone https://github.com/mortie/swaylock-effects.git; then
|
if git clone https://github.com/mortie/swaylock-effects.git; then
|
||||||
cd swaylock-effects || exit 1
|
cd swaylock-effects || exit 1
|
||||||
meson build
|
meson build
|
||||||
|
|||||||
@ -24,6 +24,12 @@ LOG="install-$(date +'%d-%H%M%S')_swww.log"
|
|||||||
|
|
||||||
printf "${NOTE} Installing swww\n"
|
printf "${NOTE} Installing swww\n"
|
||||||
|
|
||||||
|
# Check if swww folder exists and remove it
|
||||||
|
if [ -d "swww" ]; then
|
||||||
|
printf "${NOTE} Removing existing swww folder...\n"
|
||||||
|
rm -rf "swww" 2>&1 | tee -a "$LOG"
|
||||||
|
fi
|
||||||
|
|
||||||
if git clone https://github.com/Horus645/swww.git 2>&1 | tee -a "$LOG"; then
|
if git clone https://github.com/Horus645/swww.git 2>&1 | tee -a "$LOG"; then
|
||||||
cd swww || exit 1
|
cd swww || exit 1
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
|
|||||||
@ -22,6 +22,13 @@ RESET=$(tput sgr0)
|
|||||||
# 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-$(date +%d-%H%M%S)_xdph.log"
|
LOG="install-$(date +%d-%H%M%S)_xdph.log"
|
||||||
|
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Clone and build xdg-desktop-portal-hyprland
|
# Clone and build xdg-desktop-portal-hyprland
|
||||||
printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
|
printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
|
||||||
if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland 2>&1 | tee -a "$LOG"; then
|
if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland 2>&1 | tee -a "$LOG"; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user