Hyprland: Difference between revisions

From Alpine Linux
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Hyprland is a tiling window manager.
This wiki page is about [https://hyprland.org Hyprland], a [[wayland]] based tiling compositor with all the eyecandy, powerful plugins and much more.  


https://wiki.hyprland.org/Getting-Started/Master-Tutorial/
Refer to [https://wiki.hyprland.org/Getting-Started/Master-Tutorial/ hyprland Tutorial] to get started on using Hyprland.
 
{{:Include:Desktop prerequisites}}
The <Code>setup-wayland-base</Code> script installs and enables [[elogind]] as [[Seat manager|seat manager]], enables [[Repositories#Community|community repository]] and enables [[eudev]] automatically as these are required for Wayland to work.
 
== Installation ==
 
Install the package {{Pkg|hyprland|arch=}} using the command: {{Cmd|# apk add hyprland}}


== Troubleshooting ==
== Troubleshooting ==
Line 11: Line 18:
The ugly graphic goes away when you've launched a [https://wiki.hyprland.org/Useful-Utilities/Wallpapers/ wallpaper utility], but the scary message remains.
The ugly graphic goes away when you've launched a [https://wiki.hyprland.org/Useful-Utilities/Wallpapers/ wallpaper utility], but the scary message remains.


The canonical way to solve this is to
The canonical way to solve this is to install {{pkg|hyprland-wallpapers}} package using the command:
 
{{Cmd|# apk add hyprland-wallpapers}}
 
Or you can just have some file at {{Path|/usr/share/hypr/wall0.png}} or {{Path|/usr/local/share/hypr/wall0.png}} and modify  your config file to have a line as follows:
 
{{Cat|~/.config/hypr/hyprland.conf|<Pre>misc {
        force_default_wallpaper = 0
    }</Pre>}}
 
=== 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 {{pkg|xwayland}}, or  disable in your config:
 
{{Cat|~/.config/hypr/hyprland.conf|<Pre>xwayland:enabled = false</Pre>}}
 
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.
 
<blockquote>Your system does not have hyprland-qtutils installed. This is a runtime dependency for some dialogs. Consider installing it.</blockquote>
 
You can disable the check in your config like so:


apk add hyprland-wallpaper
{{Cat|~/.config/hypr/hyprland.conf|<Pre>misc:disable_hyprland_qtutils_check = true</Pre>}}


Or you can just have some file at /usr/{local/,}share/hypr/wall0.png and have
== See Also ==
* [https://wiki.hyprland.org Official Hyprland wiki]


```
[[Category:Desktop]]
misc {
[[Category:Window Managers]]
    force_default_wallpaper = 0
[[Category:Wayland]]
}
[[Category:compositor]]
```
in your config

Latest revision as of 22:46, 19 January 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.

Note: Before installing any desktop,

The setup-wayland-base script installs and enables elogind as seat manager, enables community repository and enables eudev automatically as these are required for Wayland to work.

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

See Also