hyprland-wiki/pages/Getting Started/Master-Tutorial.md

125 lines
4 KiB
Markdown
Raw Normal View History

---
weight: 1
title: Master tutorial
---
2023-01-09 20:18:37 +01:00
If you are coming to Hyprland for the first time, this is the main tutorial to
read.
2023-01-09 20:18:37 +01:00
Due to a lot of people doing stupid stuff, this tutorial will cover literally
everything you need to just get things going. It does link to other pages where
necessary.
2023-01-09 20:18:37 +01:00
## Install Hyprland
See [Installation](../installation) and come back here once you have
successfully installed Hyprland.
Install `kitty` (default terminal emulator) terminal. This is available in most
distros' repositories.
2023-01-09 20:18:37 +01:00
## NVIDIA?
2023-01-09 20:18:37 +01:00
_If not using an NVIDIA card, skip this step_
Please take a look at [The Nvidia page](../../nvidia) before launching. It has a
lot of info regarding the needed environment and tweaks.
2023-01-09 20:18:37 +01:00
## VM?
2023-01-09 20:18:37 +01:00
_If not using a VM, skip this step_
In a VM, make sure you have 3D acceleration enabled in your virtio config (or
virt-manager) otherwise Hyprland _**will not work**_.
2023-01-09 20:18:37 +01:00
You can also passthru a GPU to make it work.
Please bear in mind 3D accel in VMs may be pretty slow.
2023-03-05 14:18:13 +01:00
## Launching Hyprland
2023-01-09 20:18:37 +01:00
2023-03-05 14:18:13 +01:00
Now, you can just execute `Hyprland` in your tty.
2023-01-09 20:18:37 +01:00
**!IMPORTANT**: Do **not** launch Hyprland with `root` permissions (don't
`sudo`)
You can see some launch flags by doing `Hyprland -h`, these include setting the
config path, ignoring a check for the above, etc.
2023-04-10 19:28:18 +02:00
2023-01-09 20:18:37 +01:00
Login managers are not officially supported, but here's a short compatibility
list:
- SDDM → Works flawlessly. Install sddm ⩾ 0.20.0 or the
[latest git version](https://github.com/sddm/sddm) (or
[sddm-git](https://aur.archlinux.org/packages/sddm-git) from AUR) to prevent
SDDM bug [1476](https://github.com/sddm/sddm/issues/1476) (90s shutdowns).
2023-01-09 20:18:37 +01:00
- GDM → Works with the caveat of crashing Hyprland on the first launch
- ly → Works poorly
## In Hyprland
You're good to go with your adventure, technically.
2023-01-09 20:18:37 +01:00
Use <key>SUPER</key> + <key>Q</key> to launch kitty. If you wish to choose the
default terminal before you proceed, you can do so in
`~/.config/hypr/hyprland.conf`
([example config](https://github.com/hyprwm/Hyprland/blob/main/example/hyprland.conf)).
2023-01-09 20:18:37 +01:00
If you want the best experience with less hassle googling, keep reading.
## Critical software
See the [Must-have Software page](../../useful-utilities/must-have) for the
crucial things to make Wayland / Hyprland / other apps work correctly.
2023-01-09 20:18:37 +01:00
## Monitors config
See [Configuring Hyprland page](../../configuring/monitors) to learn all about
configuring your displays.
2023-01-09 20:18:37 +01:00
## Apps / X11 replacements
See the [Useful Utilities page](../../useful-utilities) and the
2023-01-09 20:18:37 +01:00
[Sway wiki page](https://github.com/swaywm/sway/wiki/Useful-add-ons-for-sway)
2023-02-03 18:52:37 +01:00
just about that. You can also visit the
[Awesome-Hyprland](https://github.com/hyprland-community/awesome-hyprland)
repository for a more comprehensive list.
2023-01-09 20:18:37 +01:00
## Fully configure
2023-01-09 20:18:37 +01:00
Head onto the
[Configuring Hyprland page](../../configuring/configuring-Hyprland) to learn all
2023-01-09 20:36:34 +01:00
about configuring Hyprland to your likings.
## Cursors
2023-01-09 20:36:34 +01:00
Cursors are a notorious pain to set up when you don't know how. See
[this FAQ entry](../../faq#how-do-i-change-me-mouse-cursor)
2023-01-09 20:36:34 +01:00
If your cursor does not appear, then see
[this FAQ entry](../../faq#me-cursor-no-render)
2023-01-09 20:36:34 +01:00
## Themes
Since this is not a full fledged Desktop Environment, you will need to use tools
such as `lxappearance` and `nwg-look` (recommended) for GTK, and `qt5ct` /
`qt6ct` for their respective Qt versions. Some older applications may also
require `qt4ct`.
2023-01-09 20:39:18 +01:00
## Force apps to use Wayland
2023-01-09 21:18:22 +01:00
A lot of apps will use Wayland by default. Chromium (and other browsers based on
it or electron) don't. You need to pass
`--enable-features=UseOzonePlatform --ozone-platform=wayland` to them or use
`.conf` files where possible. Chromium-based browsers also should have a toggle
in `chrome://flags`. Search for _"ozone"_ and select Wayland.
For most electron apps, you should put the above in
`~/.config/electron-flags.conf`. VSCode is known to not work with that though.
2023-01-09 21:18:22 +01:00
A few more environment variables for forcing Wayland mode are documented
[here](../../configuring/environment-variables).
2023-03-26 20:52:25 +02:00
You can check whether an app is running in xwayland or not with
`hyprctl clients`.