2022-08-12 20:46:36 +02:00
|
|
|
# Foreword
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
Nvidia GPUs are widely known as... yeah. If you want to try Hyprland on Nvidia
|
|
|
|
regardless (many people have reported successes), follow the
|
|
|
|
[Nvidia page](https://github.com/hyprwm/Hyprland/wiki/Nvidia) after installing
|
|
|
|
Hyprland.
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
### Distros
|
|
|
|
|
|
|
|
Arch and NixOS are very supported. For any other distro (not based on Arch/Nix)
|
|
|
|
you might have varying amounts of success. However, since Hyprland is extremely
|
2022-08-13 01:47:48 +02:00
|
|
|
bleeding-edge, distros like Pop!\_OS, Ubuntu, etc. might have **major** issues
|
|
|
|
running Hyprland.
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
|
|
|
Installing Hyprland is very easy. Either you install it from your local package
|
|
|
|
provider (if they provide pkgs for Hyprland) or you install/build it yourself.
|
|
|
|
|
2022-08-13 10:41:13 +02:00
|
|
|
{{< hint title=note >}}
|
|
|
|
This project is under development and is constantly
|
2022-08-13 01:47:48 +02:00
|
|
|
changing. If you want to keep up to date with the latest commits, please
|
|
|
|
consider updating your packages with `yay -Syu --devel`, or your other preferred
|
2022-08-13 10:41:13 +02:00
|
|
|
package manager.
|
|
|
|
{{< /hint >}}
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
## Packages
|
|
|
|
|
|
|
|
**WARNING:** I do not maintain any packages. If they are broken, try building
|
|
|
|
from source first.
|
|
|
|
|
2022-08-13 10:41:13 +02:00
|
|
|
{{< tabs "uniqueid" >}}
|
2022-08-12 20:46:36 +02:00
|
|
|
|
2022-08-13 10:41:13 +02:00
|
|
|
{{< tab "Arch Linux" >}} *If you're on Arch Linux, I* ***heavily*** *recommend
|
2022-08-13 01:47:48 +02:00
|
|
|
you use the AUR.*
|
2022-08-12 20:46:36 +02:00
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
hyprland-git - compiles from latest source
|
|
|
|
hyprland - compiles from latest release source
|
|
|
|
hyprland-bin - compiled latest release
|
|
|
|
```
|
|
|
|
|
2022-08-13 10:41:13 +02:00
|
|
|
{{< /tab >}}
|
2022-08-13 11:48:45 +02:00
|
|
|
{{< tab "Nix" >}}Read the [Nix page](https://github.com/hyprwm/Hyprland/wiki/Nix).{{< /tab >}}
|
|
|
|
{{< tab "Fedora" >}}<https://github.com/hyprwm/Hyprland/discussions/284>{{< /tab >}}
|
2022-08-12 20:46:36 +02:00
|
|
|
|
2022-08-13 10:41:13 +02:00
|
|
|
{{< /tabs >}}
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
## Manual (Releases)
|
|
|
|
|
|
|
|
Download the most recent release.
|
|
|
|
|
|
|
|
copy the binary (Hyprland) to `/usr/bin/`.
|
|
|
|
|
|
|
|
copy hyprctl to `/usr/bin/`.
|
|
|
|
|
|
|
|
copy the wlroots .so (`wlroots.so.XX032`) to `/usr/lib/`.
|
|
|
|
|
|
|
|
copy the desktop entry (`examples/Hyprland.desktop`) to
|
|
|
|
`/usr/share/wayland-sessions/`
|
|
|
|
|
|
|
|
the example config is in `examples/Hyprland.conf`.
|
|
|
|
|
|
|
|
For updating later on, you can overwrite the binaries (hyprctl, hyprland and
|
|
|
|
libwlroots), you don't need to update anything else.
|
|
|
|
|
|
|
|
## Manual (Manual Build)
|
|
|
|
|
|
|
|
*Arch dependencies*:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
|
|
|
yay -S gdb ninja gcc cmake libxcb xcb-proto xcb-util xcb-util-keysyms libxfixes libx11 libxcomposite xorg-xinput libxrender pixman wayland-protocols cairo pango
|
|
|
|
```
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
(If any are missing hmu)
|
|
|
|
|
|
|
|
Please note Hyprland builds `wlroots`. Make sure you have the dependencies of
|
|
|
|
wlroots installed, you can make sure you have them by installing wlroots
|
|
|
|
separately (Hyprland doesn't mind)
|
|
|
|
|
|
|
|
Also note that Hyprland uses the C++23 standard, so your compiler has to support
|
|
|
|
that (`gcc>=12.1.0` or `clang>=15`)
|
|
|
|
|
|
|
|
### CMake (recommended)
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```Plain
|
2022-08-12 20:46:36 +02:00
|
|
|
git clone --recursive https://github.com/hyprwm/Hyprland
|
|
|
|
cd Hyprland
|
|
|
|
sudo make install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Meson
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
meson _build
|
|
|
|
ninja -C _build
|
|
|
|
ninja -C _build install
|
|
|
|
```
|
|
|
|
|
2022-08-13 01:47:48 +02:00
|
|
|
Refer to [Debugging](../../Contributing-and-Debugging) to see how to build &
|
|
|
|
debug.
|
2022-08-12 20:46:36 +02:00
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
## Crash on launch
|
2022-08-12 20:46:36 +02:00
|
|
|
|
2022-08-13 19:56:20 +02:00
|
|
|
See [Crashes and Bugs](../../Crashes-and-Bugs).
|
2022-08-12 20:46:36 +02:00
|
|
|
|
|
|
|
## Custom installation (legacy renderer, etc)
|
|
|
|
|
|
|
|
cd into the hyprland repo.
|
|
|
|
|
|
|
|
for legacy renderer:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
sudo make clear && sudo make config && make legacyrenderer && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
|
|
|
```
|
|
|
|
|
|
|
|
_please note the legacy renderer may not support some graphical features._
|
|
|
|
<br/><br/> Any other config: (replace \[PRESET\] with your preset, `release`
|
|
|
|
`debug` `legacyrenderer` `legacyrendererdebug`)
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
sudo make clear && sudo make config && make [PRESET] && sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
|
|
|
```
|
|
|
|
|
|
|
|
## Custom Build flags
|
|
|
|
|
|
|
|
To apply custom build flags, you'll have to ditch make.
|
|
|
|
|
|
|
|
Supported custom build flags:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
NO_XWAYLAND - Removes XWayland support
|
|
|
|
```
|
|
|
|
|
|
|
|
How to?
|
|
|
|
|
|
|
|
Go to the root repo.
|
|
|
|
|
|
|
|
Clean before everything and config the root:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
make clear && sudo make config
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, configure CMake:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
mkdir -p build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -D<YOUR_FLAG>:STRING=true -H./ -B./build -G Ninja
|
|
|
|
```
|
|
|
|
|
|
|
|
Change `<YOUR_FLAG>` to one of the custom build flags. You **are allowed to**
|
|
|
|
use multiple at once, then add another `-D<YOUR_FLAG_2>:STRING=true`
|
|
|
|
|
|
|
|
You can of course also change the `BUILD_TYPE` to `Debug`.
|
|
|
|
|
|
|
|
Now, build:
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
cmake --build ./build --config Release --target all -j 10
|
|
|
|
```
|
|
|
|
|
|
|
|
If you configured in `Debug`, change the `--config` to `Debug` as well.
|
|
|
|
|
|
|
|
Now, of course, install manually.
|
|
|
|
|
2022-08-13 01:45:14 +02:00
|
|
|
```plain
|
2022-08-12 20:46:36 +02:00
|
|
|
sudo cp ./build/Hyprland /usr/bin && sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions
|
|
|
|
```
|
|
|
|
|
|
|
|
# Launching
|
|
|
|
|
|
|
|
You can launch Hyprland by either going into a TTY and executing `Hyprland`, or
|
|
|
|
with a login manager.
|
|
|
|
|
|
|
|
**!IMPORTANT**: Do **not** launch Hyprland with `root` permissions (don't
|
|
|
|
`sudo`)
|
|
|
|
|
|
|
|
Login managers are not officially supported, but here's a short compatibility
|
|
|
|
list:
|
|
|
|
|
|
|
|
- SDDM → Works flawlessly
|
|
|
|
- GDM → Works with the caveat of crashing Hyprland on the first launch
|
|
|
|
- ly → Works with minor to major issues and/or caveats
|