hypr: enable systemd session with UWSM

This commit is contained in:
Nico 2025-05-03 16:16:00 +10:00
parent d617820931
commit 2be1e742f7
3 changed files with 4 additions and 2 deletions

View file

@ -16,7 +16,7 @@
enable = true;
settings = {
initial_session = {
command = "${pkgs.hyprland}/bin/Hyprland";
command = "${pkgs.uwsm}/bin/uwsm start default";
user = "nico";
};
default_session = {

View file

@ -2,6 +2,7 @@
{
programs.hyprland.enable = true;
programs.hyprland.withUWSM = true;
# Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";

View file

@ -19,6 +19,7 @@ exec-once = swaync &
exec-once = ulauncher --hide-window &
exec-once = systemctl status --user polkit-gnome-authentication-agent-1.service
exec-once = uwsm finalize
exec-once = steam -silent &
@ -167,7 +168,7 @@ bind = $mainMod, V, exec, hyprlock
bind = $mainMod, SPACE, togglefloating,
bind = $mainMod, W, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, M, exec, uwsm stop
#bind = $mainMod, P, pseudo, # dwindle # have no clue what this does
bind = $mainMod, F, fullscreen