Niri: Difference between revisions
mNo edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
}} | }} | ||
{{Note|Niri can be enabled without installing custom flake such as [https://github.com/sodiboo/niri-flake niri-flake]. It is only necessary if you want to use a very recent version of Niri or if you want to write configurations in the Nix language, although as of 2025 this repository is listed near the top in search engines.}} | {{Note|Niri can be enabled <strong>without installing custom flake</strong> such as [https://github.com/sodiboo/niri-flake niri-flake]. It is only necessary if you want to use a very recent version of Niri or if you want to write configurations in the Nix language, although as of 2025 this repository is listed near the top in search engines.}} | ||
{{Warning|Without [[#Configuration]] or [[#Additional Setup]], or in other words after fresh installation, you may unable to launch apps because of missing Alacricity and fuzzel. Press {{ic|Super + Shift + E}} to exit Niri and proceed to one of them.}} | |||
== Configuration == | == Configuration == | ||
Line 25: | Line 27: | ||
== Additional Setup == | == Additional 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 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]. | 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]] abd [[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]. | ||
{{file|~/.config/home-manager/home.nix|nix|3= | {{file|~/.config/home-manager/home.nix|nix|3= | ||
programs.alacritty.enable = true; # Super+T in the default setting | programs.alacritty.enable = true; # Super+T in the default setting (terminal) | ||
programs.fuzzel.enable = true; # Super+D in the default setting | programs.fuzzel.enable = true; # Super+D in the default setting (app launcher) | ||
programs.swaylock.enable = true; # Super+Alt+L in the default setting | programs.swaylock.enable = true; # Super+Alt+L in the default setting (screen locker) | ||
programs. | programs.waybar.enable = true; # launch on startup in the default setting (bar) | ||
services.mako.enable = true; # notification daemon | |||
services.swayidle.enable = true; | services.swayidle.enable = true; # idle management daemon | ||
home.packages = with pkgs; [ | home.packages = with pkgs; [ | ||
xdg-desktop-portal-gnome | |||
swaybg # wallpaper | |||
]; | ]; | ||
}} | }} | ||
{{file|/etc/nixos/configuration.nix|nix|3= | {{file|/etc/nixos/configuration.nix|nix|3= | ||
services.gnome.gnome-keyring.enable = true; # secret service | |||
security.pam.services.swaylock = {}; | security.pam.services.swaylock = {}; | ||
}} | }} | ||
== See Also == | |||
* [[Sway]] | |||
* [[Wallpapers for Wayland]] | |||
* https://github.com/sodiboo/niri-flake#additional-notes | |||
[[Category:Window managers]] | [[Category:Window managers]] | ||
[[Category:Applications]] | [[Category:Applications]] |