Skip to content

Automatic installation script of Hyprland on Arch Linux

License

Notifications You must be signed in to change notification settings

raminsamadi123/hyprinstall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyprinstall

GitHub Repository Size

This project was created to make Arch Linux ricing easier for people who don't have much time or for people who don't want to do a lot of scripting. It's beautiful, simple and lightweight (Runs on 400MB idle on my pc from 2015)

⬇️ Setup ⬇️

Installation

Install Sway desktop with archinstall (NetworkManager) if problems occur try removing your disk's partitions with fdisk or cfdisk and then reboot or you might use pacman-key --init. Note that as desktop you shall use sway with pipewire, multilib and filesystem as EXT4.

Run hyprinstall !!DO THIS AS USER NOT ROOT!!

During xdg-desktop-portal pick xdg-desktop-portal-wlr. If you have a NVIDIA GPU you should type Nvidia when running the script else press enter to continue. Remeber to check the dropdown menus below if any problems occur

sudo pacman -Syu git
cd && git clone https://github.com/raminsamadi123/hyprinstall
cd ~/hyprinstall/
./hyprinstall.sh

If Hyprland is not automatically launching and you only get into tty try run this:

systemctl daemon-reload && systemctl enable --now [email protected] && source ~/.bash_profile && reboot

⌨️ Keyboard ⌨️

Keybind
Key Action
SUPER App Launcher
SUPER + . Emoji
SUPER + Q Quit
SUPER + F Fullscreen
SUPER + Right/Left Focus Window
SUPER + SHIFT + Right/Left Switch Window Position
SUPER + 1-0 Change Workspace
SUPER + SHIFT + 1-0 Move Window to Workspace
SUPER + X Power Menu
SUPER + SHIFT + S Screenshot
SUPER + SHIFT + X Colorpicker (Install grim slurp zenity)
SUPER + T Terminal
SUPER + E File Manager (Install thunar)
SUPER + L Lock Screen
SUPER + Mouse left button + Drag Drag Window
Change Keyboard Layout

Install Vim or any editor of your choice

sudo pacman -Syu vim

Find out what your X11 layout is

localectl
localectl list-x11-keymap-layouts

Edit Hyprland Configuration file

sudo vim ~/.config/hypr/hyprland.conf

Under EXEC & INPUT change se to your x11 layout

Under EXEC:

exec-once = echo se > /tmp/kb_layout

Under INPUT:

kb_layout = se

🖥️ Monitor 🖥️

Change Monitor Position/Resolution/Refresh Rate

Install Vim or any editor of your choice

sudo pacman -Syu vim

Find your monitors output (It should look something like this if you use Display Port DP-1. For HDMI it's something else)

wl-randr

Edit Hyprland Configuration file

sudo vim ~/.config/hypr/hyprland.conf

Under MONITOR change monitor=,preferred,auto,1 to your preference

monitor=,preferred,auto,1

Here are some examples (Thanks to SinisterSpatula) :

#monitor=name, resolution, position, scale
monitor=DP-5, 2560x1440, 1920x0, 1.25
monitor=DP-6, 1920x1080, 0x0, 1

For highest resolution:

monitor=,highres,auto,1

For highest refresh rate:

monitor=,highrr,auto,1

For more specific information visit https://wiki.hyprland.org/Configuring/Monitors/

🌆 Wallpaper 🌆

Change Wallpaper

Install Vim or any editor of your choice

sudo pacman -Syu vim

Find out your monitor's name in terminal

It should look something like DP-1 or HDMI-A-1

hyprctl monitors

Edit the hyprpapper.conf in terminal

sudo vim ~/.config/hypr/hyprpaper.conf

NVIDIA

How to fix no cursor or dissapearing cursor on NVIDIA install

Open your terminal and run the command below

echo "
    export LIBVA_DRIVER_NAME=nvidia
    export XDG_SESSION_TYPE=wayland
    export GBM_BACKEND=nvidia-drm
    export __GLX_VENDOR_LIBRARY_NAME=nvidia
    export WLR_NO_HARDWARE_CURSORS=1
    export CURSOR_INACTIVE_TIMEOUT=0
    " >> ~/.bashrc && source ~/.bashrc

Reboot

reboot

Virtual Machine

Problems in Virtualmachine?

Here's some articles if you really want to run it in a VM. Remeber that you need to enable 3D acceleration.

Quick tip: Go into tty by pressing ctrl+alt+(F2-F6) and run:

Hyprland

If you are on VMware install these

sudo pacman -Syu open-vm-tools xf86-input-vmmouse xf86-video-vmware

You may also want to try this

sudo pacman -Syu egl-wayland lib32-libva
sudo sh -c "echo 'LIBSEAT_BACKEND=logind' >> /etc/environment"
echo '
export XDG_SESSION_TYPE=wayland
export LIBSEAT_BACKEND=logind
export WLR_NO_HARDWARE_CURSORS=1
export WLR_RENDERER_ALLOW_SOFTWARE=1 Hyprland
' >> ~/.bashrc && source ~/.bashrc
echo '
#!/usr/bin/env bash
# wrappedhl
# Launch Hyprland with a simple wrapper
cd ~
# Variables
export _JAVA_AWT_WM_NONREPARENTING=1
export XCURSOR_SIZE=24
export MOZ_ENABLE_WAYLAND=1
export WLR_RENDERER_ALLOW_SOFTWARE=1 Hyprland
export LIBSEAT_BACKEND=logind
export WLR_NO_HARDWARE_CURSORS=1
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=gtk2
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland  
exec Hyprland
# Execute Hyprland
if [ -f /usr/local/bin/Hyprland ]; then
	exec /usr/local/bin/Hyprland >/dev/null 2>&1
elif [ -f /usr/bin/Hyprland ]; then
	exec /usr/bin/Hyprland >/dev/null 2>&1
fi' > ~/.local/bin/wrappedhl
sudo cp ~/.local/bin/wrappedhl /usr/share/wayland-sessions/wrapped_hl.desktop

https://unix.stackexchange.com/questions/656328/libseat-backend-seatd-c70-could-not-connect-to-socket-run-seatd-sock-no-su swaywm/sway#5834 https://ask.fedoraproject.org/t/cant-switch-back-to-x11/19640 https://bbs.archlinux.org/viewtopic.php?id=164391 https://www.reddit.com/r/hyprland/comments/y5fc5e/how_can_i_wrapping_the_launcher/

🔧 Optional Configuration 🔧

How to get a working colorpicker? Note that I didn't enable this by default during installation in order to make your device more lightweight

Install dependencies and then press (SUPER + SHIFT + X) and click somewhere to pick the color

sudo pacman -Syu grim slurp zenity
Silent-boot for systemd-bootctl

Install an editor of your choice

sudo pacman -Syu vim

Edit your entries .conf file (Mine looks like this)

sudo vim /boot/loader/entries/2023-02-05_21-29-22_linux.conf

add this at the end of options rw quiet splash loglevel=0 (it should look something like this)

options root=PARTUUID=a49e02ad-bb32-476d-b200-4812aafcd87f zswap.enabled=0 rw intel_pstate=no_hwp rootfstype=ext4 rw quiet splash loglevel=0

Update your bootctl

sudo bootctl update
Silent-boot for grub

Install an editor of your choice

sudo pacman -Syu vim

Edit your entries grub file

sudo vim /etc/default/grub

Add loglevel=0 in between quiet splashscreen (like this)

GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"

Update your grub

grub-mkconfig -o /boot/grub/grub.cfg
How to remove timeout during systemd boot

Run this in your terminal

sudo sh -c "echo -e '#timeout 3\n#console-mode keep' > /boot/loader/loader.conf" 
How to remove timeout during grub boot

Install an editor of your choice

sudo pacman -Syu vim 

Edit your grub file

sudo vim /etc/default/grub 

Change GRUB_TIMEOUT to be equal to 0

GRUB_TIMEOUT=0 

Update grub

grub-mkconfig -o /boot/grub/grub.cfg

Credits

Beauty community: r/unixporn.

© Artist who make Wallpapers, graphics and more

© All of mantainers of this amazing and opensource tools


© Owl4ce © Ilham25 © Siduck © NvChad © Rxyhn © AmitGold © linuxmobile © ChrisTitusTech

About

Automatic installation script of Hyprland on Arch Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published