Hyprland Logo | |
Release Status | Maintained |
---|---|
Last Release | v0.40.0, 2024-05-04 |
Language(s) | C++ |
Developer(s) | The hyprwm team |
Website | hyprland.org |
Hyprland is a dynamic tiling window manager that does not sacrifice on its looks, it is a wl-roots based compositor that has a lot of eye candy. It was originally made by Vaxry. It is one of the few window manager that aim for pure eye candy with nice animations, smooth looks and it's own somewhat of an ecosystem.
It also has it's very own custom syntax for its configurations. It is somewhat similar to bash scripting and it is quite easy to use. The hyperwm team has also made nice utilities that go well with the tiling window manager. Some like hyprcursor are made to completely change and revolutionize the XCursor style we have been using for years, others like hypridle are made for Hyprland specifically and shares a lot of features with something like swayidle, except it is tightly integrated with Hyprland configuration folders. It also has it's own wallpaper software called hyprpaper which is quite optimized.
Features
There are tons of feature to this window manager like:
- Smooth and animated graphics (such as moving windows, dragging them and in general opening and closing them)
- Gradient customization for pretty much everything like window borders including gradient angles.
- Nice integration with it's own apps (such as hyprpaper, hyprcursor and hypridle).
- Compatibility with most wayland apps and support for
xorg-xwayland
. - Decent default configuration file auto-generated and has pretty much all important configurations setup for you (like touchpad tap to click, etc).
Installation
To install Hyprland, it is recommended to use a rolling release or a semi-rolling release distributions. Most recommended ones include Arch Linux, Gentoo, NixOS, Fedora and openSUSE (Tumbleweed) due to them having the most recent packages and Hyprland is a bleeding edge window manager.
You must also install kitty if you do not have an existing configuration or existing dotfiles you want to try.
Arch Linux
By far the easiest one to install Hyprland on, you just run this command:
sudo pacman -S hyprland --needed
The --needed
flag is to make sure that you do not reinstall Hyprland.
NixOS
Just enable Hyprland in your NixOS configuration by adding:
programs.hyprland.enable = true;
openSUSE (Tumbleweed)
It is quite simple here also, you can just simply run:
sudo zypper install hyprland
Alternatively, you can install it via YaST2 Software, you can also try manual building if you are not on Tumbleweed. It is not recommended to try it on other versions than Tumbleweed.
Fedora
You must have the latest version of Fedora installed, if so run the following:
sudo dnf install hyprland
You can also install the hyprland-devel
package if you want to build plugins.
Gentoo
You can edit some USE flags like:
X
: to add support for X11.legacy-renderer
: to enable the legacy renderer.systemd
: enable use of specific systemd libraries like socket activation or session tracking.
But, it is not necessary to edit any of these USE flags and should be able to manually build using:
emerge --ask gui-wm/hyprland # please run as root
Ubuntu 23.04
WARNING: Not recommended at all by the Hyprland developers and is potentially unsafe for other packages on a system.
This can lead to system breakages so we are not including it in this article but you can read this article. Please do note that this is long and tedious and may require you to manually build extremely lengthy packages and/or dependency hell since most dependencies on the Ubuntu repo can be outdated.
Slackware
For Slackware, you might need to use the SlackBuilds repository which has the hyprland-bin
package.
Void Linux
Hyprland is not available for Void Linux from the official repositories as Hyprland doesn’t build against tagged wlroots, however template files are available from a third party which can build Hyprland using xbps-src. The README has a pretty good explanation on how to install and use it.
For a manual releases install[1] and for a manual build install[2] you can check the Hyprland wiki.
Configuration
This is a pretty verbose topic but is very simple for new users. Hyprland configuration files are generally suffixed with a .conf
extension and are quite simple to read because almost everything is a variable. The Hyprland Wiki has a step above[3] but this guide will teach you pretty much everything you need to know. Your configuration file is located at ~/.config/hypr/hyprland.conf
and can contain configurations of programs that are under the hypr-ecosystem.
This topic is divided into 6 sub-sections:
- Variables
- Section-specific variables (This will have its own 7 sub-topics)
- Binding Keys (bind and other variants)
- Binding Special Keys (according to the XF86 specification)
- Animations (quick overview)
- Monitors (some references to
hyprctl
)
Variables
This is the most important part of your configuration file because it is pretty much your whole configuration file, the entire hyprland.conf is comprised of a syntax like:
variable = arg1, arg2, arg3, arg4
Each line is required to have 3 commas, however not 4 arguments, for example you can do:
monitor =,preferred,auto,1 # this is actually part of your auto-generated configuration file
There are some exceptional cases where all 3 commas are not necessary like the exec-once
command but most of the time it does require 3 commas.