Hyprland: Difference between revisions
drop 24.05 compat |
screensharing |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 10: | Line 10: | ||
== Installation == | == Installation == | ||
NixOS 24.11 added support for launching Hyprland with [https://github.com/Vladimir-csp/uwsm Universal Wayland Session Manager] (UWSM) and is the recommended way to launch Hyprland as it neatly integrates with [[Systemd]]. | NixOS 24.11 added support for launching Hyprland with [https://github.com/Vladimir-csp/uwsm Universal Wayland Session Manager] (UWSM) and is the recommended way to launch Hyprland as it neatly integrates with [[Systemd]]. | ||
Line 89: | Line 88: | ||
</nowiki>}} | </nowiki>}} | ||
If you experience performance drops in video games or graphics tools like Blender on stable NixOS, then it's likely a [[Mesa]] version mismatch with Hyprland and the rest of your system. This can be fixed by substituting the system's mesa package with Hyprland's own. | If you experience performance drops in video games or graphics tools like Blender on stable NixOS, then it's likely a [[Mesa]] version mismatch with Hyprland and the rest of your system. This can be fixed by substituting the system's mesa package with Hyprland's own. '''Note that the''' <code>hardware.opengl</code> '''option only exists 24.05 and below'''. | ||
{{file|configuration.nix|nix|<nowiki> | {{file|configuration.nix|nix|<nowiki> | ||
Line 116: | Line 115: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
=== Screensharing === | |||
{{file|configuration.nix|nix|<nowiki> | |||
{ | |||
xdg.portal = { | |||
enable = true; | |||
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ]; | |||
}; | |||
} | |||
</nowiki>}} | |||
=== Display Manager Support === | === Display Manager Support === | ||
Line 235: | Line 245: | ||
iconTheme = { | iconTheme = { | ||
package = pkgs | package = pkgs.adwaita-icon-theme; | ||
name = "Adwaita"; | name = "Adwaita"; | ||
}; | }; | ||
Line 247: | Line 257: | ||
</nowiki>}} | </nowiki>}} | ||
or | or set themes using dconf in your Hyprland configuration file: | ||
{{file|hyprland.conf|conf|<nowiki> | {{file|hyprland.conf|conf|<nowiki> | ||
exec-once = dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" | exec-once = dconf write /org/gnome/desktop/interface/gtk-theme "'Adwaita'" |