Niri: Difference between revisions
Add more info to infobox |
m Fix File language |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 8: | Line 8: | ||
| programmingLanguage = Rust, GLSL | | programmingLanguage = Rust, GLSL | ||
| github = YaLTeR/niri | | github = YaLTeR/niri | ||
| documentation = [https://github. | | documentation = [https://yalter.github.io/niri/ Official wiki], [https://github.com/sodiboo/niri-flake/blob/main/docs.md niri-flake] | ||
| image = Niri-icon.svg | | image = Niri-icon.svg | ||
| bugTracker = https://github.com/YaLTeR/niri/issues | | bugTracker = https://github.com/YaLTeR/niri/issues | ||
| Line 38: | Line 38: | ||
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://github. | See [https://yalter.github.io/niri/ the wiki] for configuration options for Niri. | ||
== Additional Setup == | == Additional Setup == | ||
| Line 50: | Line 50: | ||
programs.waybar.enable = true; # top bar | programs.waybar.enable = true; # top bar | ||
environment.systemPackages = with pkgs; [ alacritty fuzzel swaylock mako swayidle ] | environment.systemPackages = with pkgs; [ alacritty fuzzel swaylock mako swayidle ]; | ||
|name=/etc/nixos/configuration.nix|lang=nix}}Or using [[Home Manager]]:{{file|~/.config/home-manager/home.nix|nix|3= | |name=/etc/nixos/configuration.nix|lang=nix}}Or using [[Home Manager]]:{{file|~/.config/home-manager/home.nix|nix|3= | ||
programs.alacritty.enable = true; # Super+T in the default setting (terminal) | programs.alacritty.enable = true; # Super+T in the default setting (terminal) | ||
| Line 91: | Line 91: | ||
{{File|3=environment.systemPackages = with pkgs; [ | {{File|3=environment.systemPackages = with pkgs; [ | ||
xwayland-satellite # xwayland support | xwayland-satellite # xwayland support | ||
];|name= | ];|name=/etc/nixos/configuration.nix|lang=nix}} | ||
Or using [[Home Manager]] | Or using [[Home Manager]] | ||
| Line 97: | Line 97: | ||
{{File|3=home.packages = with pkgs; [ | {{File|3=home.packages = with pkgs; [ | ||
xwayland-satellite # xwayland support | xwayland-satellite # xwayland support | ||
];|name= | ];|name=~/.config/home-manager/home.nix|lang=nix}} | ||
After you installed {{ic|xwayland-satellite}} Niri will integrate it out of the box and all of your XWayland apps will function properly. | 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 === | |||
If you are using <code>xdg-desktop-portal-gnome</code>, it will attempt to use Nautilus as the file picker, which will fail if Nautilus is not installed. | |||
To work around this problem, you can force usage of the gtk or kde portals for file picker instead: | |||
{{File|3=xdg.portal.config.niri = { | |||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ]; # or "kde" | |||
};|name=/etc/nixos/configuration.nix|lang=nix}} | |||
== See Also == | == See Also == | ||