Niri: Difference between revisions
mNo edit summary |
m Update niri casing to lowercase "niri" |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:niri}} | |||
{{infobox application | {{infobox application | ||
| name = | | name = niri | ||
| type = Wayland compositor | | type = Wayland compositor | ||
| initialRelease = 2023-11-26 | | initialRelease = 2023-11-26 | ||
| Line 28: | Line 29: | ||
{{Note|<translate>Niri can be enabled <strong>without installing a custom flake</strong> such as [https://github.com/sodiboo/niri-flake niri-flake]. {{ic|niri-flake}} is only necessary if you would like to use a very recent version of Niri or if you would want to write configurations in the Nix language, although as of 2025 this repository is listed near the top in search engines.</translate>}} | {{Note|<translate>Niri can be enabled <strong>without installing a custom flake</strong> such as [https://github.com/sodiboo/niri-flake niri-flake]. {{ic|niri-flake}} is only necessary if you would like to use a very recent version of Niri or if you would want to write configurations in the Nix language, although as of 2025 this repository is listed near the top in search engines.</translate>}} | ||
{{Warning|<translate>Without [[#Configuration]] or [[#Additional Setup]], or after a fresh installation, you may be unable to launch apps due to missing expected programs such as Alacritty and fuzzel. Press <kbd>Super</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> to exit | {{Warning|<translate>Without [[#Configuration]] or [[#Additional Setup]], or after a fresh installation, you may be unable to launch apps due to missing expected programs such as Alacritty and fuzzel. Press <kbd>Super</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> to exit niri and proceed to one of them.</translate>}} | ||
<translate> | <translate> | ||
== Configuration == | == Configuration == | ||
The configuration path for | The configuration path for niri is {{ic|$XDG_CONFIG_HOME/niri/config.kdl}}. Therefore [[Home Manager]] can be used for configuration: | ||
</translate> | </translate> | ||
| Line 43: | Line 44: | ||
You might want to start from [https://github.com/YaLTeR/niri/blob/main/resources/default-config.kdl the default configuration file] described at [https://github.com/YaLTeR/niri/wiki/Getting-Started#main-default-hotkeys]. | You might want to start from [https://github.com/YaLTeR/niri/blob/main/resources/default-config.kdl the default configuration file] described at [https://github.com/YaLTeR/niri/wiki/Getting-Started#main-default-hotkeys]. | ||
See [https://yalter.github.io/niri/ the wiki] for configuration options for | See [https://yalter.github.io/niri/ the wiki] for configuration options for niri. | ||
== Additional Setup == | == Additional Setup == | ||
As described in [https://github.com/YaLTeR/niri/wiki/Example-systemd-Setup Example systemd Setup ( | As described in [https://github.com/YaLTeR/niri/wiki/Example-systemd-Setup Example systemd Setup (niri wiki)], you might want to set up some additional services including [[Swayidle]], [[Swaylock]], [[Waybar]], [[Polkit]] and [[Secret Service]] as follows to complement the functionality of a regular window manager. Some of the these settings are also required to enable all the features of [https://github.com/YaLTeR/niri/blob/main/resources/default-config.kdl the default configuration file]. | ||
</translate> | </translate> | ||
| Line 83: | Line 84: | ||
<translate> | <translate> | ||
However, since | However, since niri does not support text-input-v1, sometimes enabling text-input-v3 by manually adding {{ic|<nowiki>--wayland-text-input-version=3</nowiki>}} flag is necessary for IME to work: | ||
</translate> | </translate> | ||
| Line 105: | Line 106: | ||
=== XWayland apps not working === | === XWayland apps not working === | ||
There is a optional dependency for | There is a optional dependency for niri which is highly recommended to install (you can read [https://github.com/YaLTeR/niri/wiki/Xwayland this] article to learn more about this) | ||
</translate> | </translate> | ||
| Line 121: | Line 122: | ||
<translate> | <translate> | ||
After you installed {{ic|xwayland-satellite}} | After you installed {{ic|xwayland-satellite}} niri will integrate it out of the box and all of your XWayland apps will function properly. | ||
=== File picker not working === | === File picker not working === | ||