Hyprland: Difference between revisions
m →Nix on Non-NixOS Systems: use syntaxHighlight lang=console and the "$" prefix for shell commands |
Started updating the wiki for Hyprland 0.55 and the replacement of hyprlang. |
||
| Line 134: | Line 134: | ||
=== Display Manager Support === | === Display Manager Support === | ||
By default, Hyprland does not come with a [https://wiki.nixos.org/wiki/Wayland#Display_Managers display manager] and does not advertise support for one. Though one can start hyprland directly from tty with <code> | By default, Hyprland does not come with a [https://wiki.nixos.org/wiki/Wayland#Display_Managers display manager] and does not advertise support for one. Though one can start hyprland directly from tty with <code>start-hyprland</code> or with <code>uwsm start select</code>, some display managers packaged in NixOS are compatible including but may not be limited to: | ||
* [[SDDM]] | * [[SDDM]] | ||
* [[GDM]] | * [[GDM]] | ||
| Line 141: | Line 141: | ||
== Configuration == | == Configuration == | ||
On first run, Hyprland will create a configuration file with autogenerated defauts in <code>$XDG_CONFIG_HOME/hypr/hyprland. | On first run, Hyprland will create a configuration file with autogenerated defauts in <code>$XDG_CONFIG_HOME/hypr/hyprland.lua</code> if it does not exist. An example configuration can be found in the [https://github.com/hyprwm/Hyprland/blob/v0.55.2-b/example/hyprland.lua project's git repository]. | ||
=== Using [[Home Manager]] === | === Using [[Home Manager]] === | ||
| Line 180: | Line 180: | ||
}; | }; | ||
};|name=/etc/nixos/home.nix|lang=nix}} | };|name=/etc/nixos/home.nix|lang=nix}} | ||
=== Using symlinks and Home Manager === | |||
{{File|3=xdg.configFile."hypr" = { | |||
source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/hypr"; | |||
force = true; | |||
recursive = true; | |||
};|name=home.nix|lang=nix}} | |||
This will create a symlink between ~/.config/hypr and your nixos config location. | |||
== Plugin Support == | == Plugin Support == | ||