Hyprland: Difference between revisions

From Alpine Linux
Line 63: Line 63:
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
</Pre>}}
</Pre>}}
If you use gsettings make sure you have installed [https://pkgs.alpinelinux.org/package/edge/community/x86_64/gsettings-desktop-schemas gsettings-desktop-schemas].


== See Also ==
== See Also ==

Revision as of 16:15, 8 April 2025

This wiki page is about Hyprland, a wayland based tiling compositor with all the eyecandy, powerful plugins and much more.

Refer to hyprland Tutorial to get started on using Hyprland.

Prerequisites

Installation

Install the package hyprland using the command:

# apk add hyprland

Troubleshooting

Black/Magenta checkerboard background: Hyprland failed to load 1 essential asset

As of Hyprland 0.45.0, upstream shows a scary message (and an ugly graphic) if you don't have their wallpapers installed.

The ugly graphic goes away when you've launched a wallpaper utility, but the scary message remains.

The canonical way to solve this is to install hyprland-wallpapers package using the command:

# apk add hyprland-wallpapers

Or you can just have some file at /usr/share/hypr/wall0.png or /usr/local/share/hypr/wall0.png and modify your config file to have a line as follows:

Contents of ~/.config/hypr/hyprland.conf

misc {
        force_default_wallpaper = 0
    }

Hyprland crashes almost immediately

Hyprland 0.46 has a bug where the default configuration will crash if Xwayland is not installed. You can either install xwayland, or disable in your config:

Contents of ~/.config/hypr/hyprland.conf

xwayland:enabled = false

This should be fixed in the next update.

warning message about hyprland-qtutils

Hyprland 0.46 and newer suggest you install hyprland-qtutils, which is currently not available in alpine.

Your system does not have hyprland-qtutils installed. This is a runtime dependency for some dialogs. Consider installing it.

You can disable the check in your config like so:

Contents of ~/.config/hypr/hyprland.conf

misc:disable_hyprland_qtutils_check = true

consistent icon theme

Depending on what applications you are running, you only need the HYPRCURSOR_THEME environment, it should work for all modern applications. But since you are reading this, you probably found an incompatible application. You have the option to disable hyprcursors, then you need only one theme. Otherwise you need to download a theme that is available as hyprcursors and xcursors (e.g. rose-pine-hyprcursor).

Contents of ~/.config/hypr/hyprland.conf

# Set the theme for most applications
env = HYPRCURSOR_THEME,$your_hyprcursor_theme
env = HYPRCURSOR_SIZE,24
# Set the theme for some Qt applications
env = XCURSOR_THEME,$your_xcursor_theme
env = XCURSOR_SIZE,24
# Set the theme for some GTK applications
exec-once = gsettings set org.gnome.desktop.interface cursor-theme $your_xcursor_theme
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24

If you use gsettings make sure you have installed gsettings-desktop-schemas.

See Also