Debian-Hyprland/README.md
2023-12-08 18:21:03 +09:00

13 KiB

💌 JaKooLit's Debian/Ubuntu Hyprland Install Script 💌

GitHub Repo stars GitHub last commit GitHub repo size


!

♨️♨️♨️ ATTENTION ♨️♨️♨️ 06 Dec 2023

  • Recent hyprland release v0.33.0, needed a newer libdrm and Debian dont have newer libdrm yet on their repo. That is why for now, the hyprland version to be installed with this script is v0.32.3

Debian 13 Trixie and SID and Ubuntu 23.10 Mantic Minotaur Hyprland Install Script

⚠️ Pre-requisites and VERY Important!

  • Do not run this installer as sudo or as root
  • This Installer requires a user with a priviledge to install packages
  • Needs a Debian 13 Testing (Trixie) Branch as it needs a newer wayland packages! I have tried on Stable Debian 12 Bookworm in which, Hyprland wont build.
  • In theory, it should also work on Debian SID (unstable) but I have not tested yet.
  • edit your /etc/apt/sources.list and remove # on lines with deb-src to enable source packaging else will not install properly especially Hyprland
sudo nano /etc/apt/sources.list
  • delete # on the lines with 'deb-src'
  • ensure to allow to install non-free drivers especially for users with NVIDIA gpus. You can also install non-free drivers if required. Edit install-scripts/nvidia.sh and change the nvidia stuff's if required
  • If you have login Manager already like GDM (gnome login manager), I highly advice not to install SDDM. But if you decide to install SDDM, see here Issue 2 - SDDM

🔔 NOTICE TO UBUNTU USERS

  • You can use this installer. However, I have only tested on Ubuntu 23.10. Not sure if it works on older ubuntu as Hyprland needs an updated wayland libraries. For sure wont work in any Ubuntu LTS.
  • If you are using Gnome already, DO NOT install the SDDM. The GDM works file as well. For some reason, during installation, you will be asked which login manager you wanted to use. But during my test, nothing happened.
  • For Ubuntu with NVIDIA GPU's, make sure to edit the install-scripts/nvidia.sh . Delete all packages in nvidia_pkg except libva-wayland2 and nvidia-vaapi-driver and uncomment/remove # before sudo ubuntu-drivers install. You also need to delete or simply just add # in the lines 44 and 45 echo "echo "## for nvidia" | sudo tee -a... and echo "deb http://deb.debian.org/debian........

⚠️ WARNING! If you have GDM already as log-in manager, DO NOT install SDDM

📷 Hyprland-Dots-v2 Featuring Rofi

Installed on Kali Linux 😈

alt text

📷 More updated Screenshots Here Link

📷 Older Screenshots: v1Link & v2Link

Youtube presentation V1

Youtube presentation V2

A video walk through my dotfilesLink

A video walk through of My Hyprland-Dots v2Link

💯💯 Check out Installation Video coverage by KSK royal (Ubuntu 23.10 + nvidia)

💯💯 Check out Installation Video coverage by KSK royal (Kali Linux xfce + nvidia). He have details regarding installing timeshift and switching to sddm from lightdm

🪧🪧🪧 ANNOUNCEMENT 🪧🪧🪧

  • This Repo does not contain Hyprland Dots or configs! Dotfiles can be checked here Hyprland-Dots . During installation, if you opt to copy installation, it will be downloaded from that centralized repo.
  • Hyprland-Dots use are constantly evolving / improving. you can check CHANGELOGS here Hyprland-Dots-Changelogs
  • Since the Hyprland-Dots are evolving, some of the screenshots maybe old

Some notes on this installer / Prerequisites

  • install a backup tool like snapper or timeshift. and Backup your system before installing hyprland using this script. This script DOES not include uninstallation of packages as it may break your system due to shared packages / libraries.
  • This script is meant to install in Debian Testing (Trixie).
  • If However, decided to try, recommend to install SDDM. Apart from GDM and SDDM, any other Login Manager may not work nor launch Hyprland. However, hyprland can be launched through tty by type Hyprland
  • It should work on latest Ubuntu 23.10

⚠️ WARNING! nwg-look takes long time to install.

  • nwg-look is a utility to costumize your GTK theme. It's a LXAppearance like. Its a good tool though but this package is entirely optional

Costumize the packages to be installed

  • inside the install-scripts folder, you can edit 00-hypr-pkgs.sh. Do not edit 00-dependencies.sh unless you know what you are doing. Care though as the Hyprland Dots may not work properly!
  • default GTK theme if agreed to be installed is Tokyo night GTK themes (dark and light) + Tokyo night SE icons

🔔 NOTICE TO NVIDIA OWNERS

  • by default it is installing the latest and newest nvidia drivers. If you have an older nvidia-gpu (GTX 800 series and older), check out nvidia-debian website LINK and edit nvidia.sh in install-scripts folder to install proper gpu driver

to run

clone this repo by using git. Change directory, make executable and run the script

git clone https://github.com/JaKooLit/Debian-Hyprland.git
cd Debian-Hyprland
chmod +x install.sh
./install.sh

for ZSH and OH-MY-ZSH installation

do this once installed and script completed; do the following to change the default shell zsh

chsh -s $(which zsh)
zsh
source ~/.zshrc
  • reboot or logout
  • by default mikeh theme is installed. You can find more themes from this OH-MY-ZSH-THEMES
  • to change the theme, edit ~/.zshrc ZSH_THEME="desired theme"

TO DO once installation done and dotfiles copied

  • if you opted to install gtk themes, to apply the theme and icon, press the dark/light button (beside the padlock). To apply Bibata modern ice cursor, launch nwg-look (GTK Settings) through rofi.

  • SUPER H for HINT or click on the waybar HINT! Button

  • Head over to FAQ and TIPS

  • if you installed in your laptop and Brightness and Keyboard brightness does not work you can execute this command sudo chmod +s $(which brightnessctl)

Packages that are manually downloaded and build. These packages will not be updated by apt and have to be manually updated

  • Hyprland LINK

  • nwg-look LINK

  • Asus ROG asusctl LINK and superfxctl LINK

  • swww LINK

  • swaylock-effects LINK

  • swappy LINK

  • xdg-desktop-portal-hyprland LINK

  • rofi-wayland LINK

  • a.) to update these package, in your installation folder, you can move these folders, Hyprland nwg-look swaylock-effects swappy swww rofi asusctl supergfxctl, as appropriate or download manually, cd into it, update/install

- b.) to update Hyprland and xdg-desktop-portal-hyprland bash~~ ~~git pull~~ ~~make all~~ ~~sudo make install~~ ~~

  • c.) for nwg-look, asusctl, supergfxtctl, to update ran
git pull
sudo make install
  • c.) for swww, to update
git pull
cargo build --release
  • d.) for swaylock-effects and swappy
git pull
meson build
ninja -C build
sudo ninja -C build install
  • e.) for rofi
git pull
meson setup build
ninja -C build
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.

🏴‍☠️🏴‍☠️🏴‍☠️ Got a questions regarding the Hyprland Dots?

  • Head over to wiki Link WIKI

🛣️ Roadmap:

  • Install zsh and oh-my-zsh without necessary steps above
  • possibly adding gruvbox themes, cursors, icons

some known issues

  • reports from members of my discord, states that some users of nvidia are getting stuck on sddm login. credit to @Kenni Fix stated was
 while in sddm press ctrl+alt+F2 or F3
log into your account
`lspci -nn`, find the id of your nvidia card
`ls /dev/dri/by-path` find the matching id
`ls -l /dev/dri/by-path` to check where the symlink points to 
)
-  add "env = WLR_DRM_DEVICES,/dev/dri/cardX" to the ENVvariables config (.config/hypr/configs/ENVariables.conf)  ; X being where the symlink of the gpu points to
  • more info from the hyprland wiki Hyprland Wiki Link

  • Does not work in Ubuntu 23.04

  • sddm blackscreen when log-out

  • Installing SDDM if or any other Login Manager installed. See Issue 2 - SDDM

  • network is down or become unmanaged This might help

📒 Final Notes

  • join my discord channel Discord
  • Feel free to copy, re-distribute, and use this script however you want. Would appreciate if you give me some loves by crediting my work :)

👍👍👍 Thanks and Credits!

  • Hyprland Of course to Hyprland and @vaxerski for this awesome Dynamic Tiling Manager.
  • shout out to CooSee from Gentoo forums for the nice rainbow borders

💌 Some screenshots shared to me via discord

  • Discord user : thunderlake. alt text

💖 Support

  • a Star on my Github repos would be nice 🌟

  • Subscribe to my Youtube Channel YouTube

  • You can also buy me Coffee Through ko-fi.com 🤩

Buy Me a Coffee at ko-fi.com