Hyprland: Difference between revisions
m →Plugin Support: Fix spacing after section. |
screensharing |
||
(7 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] and is the recommended way to launch Hyprland as it neatly integrates with [[Systemd]]. | |||
{{file|configuration.nix|nix|<nowiki> | {{file|configuration.nix|nix|<nowiki> | ||
Line 18: | Line 17: | ||
enable = true; | enable = true; | ||
withUWSM = true; # recommended for most users | withUWSM = true; # recommended for most users | ||
xwayland.enable = true; # Xwayland can be disabled. | xwayland.enable = true; # Xwayland can be disabled. | ||
}; | }; | ||
Line 100: | 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 127: | 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 246: | Line 245: | ||
iconTheme = { | iconTheme = { | ||
package = pkgs | package = pkgs.adwaita-icon-theme; | ||
name = "Adwaita"; | name = "Adwaita"; | ||
}; | }; | ||
Line 258: | 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'" | ||
Line 265: | Line 264: | ||
exec-once = dconf write /org/gnome/desktop/interface/font-name "'Noto Sans Medium 11'" | exec-once = dconf write /org/gnome/desktop/interface/font-name "'Noto Sans Medium 11'" | ||
exec-once = dconf write /org/gnome/desktop/interface/monospace-font-name "'Noto Sans Mono Medium 11'" | exec-once = dconf write /org/gnome/desktop/interface/monospace-font-name "'Noto Sans Mono Medium 11'" | ||
</nowiki>}} | </nowiki>}}You may also install graphical tools such as gnome tweaks or nwg-look to set the themes manually. | ||
== See also == | == See also == |