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.
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
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
sudo pacman -Syu vim
localectl
localectl list-x11-keymap-layouts
sudo vim ~/.config/hypr/hyprland.conf
Under EXEC:
exec-once = echo se > /tmp/kb_layout
Under INPUT:
kb_layout = se
Change Monitor Position/Resolution/Refresh Rate
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
sudo vim ~/.config/hypr/hyprland.conf
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/
Change Wallpaper
sudo pacman -Syu vim
It should look something like DP-1 or HDMI-A-1
hyprctl monitors
sudo vim ~/.config/hypr/hyprpaper.conf
How to fix no cursor or dissapearing cursor on NVIDIA install
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
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.
Hyprland
sudo pacman -Syu open-vm-tools xf86-input-vmmouse xf86-video-vmware
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/
How to get a working colorpicker?
Note that I didn't enable this by default during installation in order to make your device more lightweightsudo pacman -Syu grim slurp zenity
Silent-boot for systemd-bootctl
sudo pacman -Syu vim
sudo vim /boot/loader/entries/2023-02-05_21-29-22_linux.conf
options root=PARTUUID=a49e02ad-bb32-476d-b200-4812aafcd87f zswap.enabled=0 rw intel_pstate=no_hwp rootfstype=ext4 rw quiet splash loglevel=0
sudo bootctl update
Silent-boot for grub
sudo pacman -Syu vim
sudo vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"
grub-mkconfig -o /boot/grub/grub.cfg
How to remove timeout during systemd boot
sudo sh -c "echo -e '#timeout 3\n#console-mode keep' > /boot/loader/loader.conf"
How to remove timeout during grub boot
sudo pacman -Syu vim
sudo vim /etc/default/grub
GRUB_TIMEOUT=0
grub-mkconfig -o /boot/grub/grub.cfg
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