From 724dde1b670ff595ed53807607c80de1d2c48c50 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Thu, 25 Apr 2024 21:09:14 +0200 Subject: [PATCH] fix(user/malte): hyprland startup and systemd integration --- users/malte/modules/hypr.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/users/malte/modules/hypr.nix b/users/malte/modules/hypr.nix index dc9dcbd..b79d6dd 100644 --- a/users/malte/modules/hypr.nix +++ b/users/malte/modules/hypr.nix @@ -129,9 +129,9 @@ "$blue" = "458588"; "$green" = "98971a"; exec-once = [ - "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" "${lib.getExe pkgs.hyprpaper}" "${lib.getExe runWob}" + "hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}" ]; input = { kb_variant = @@ -388,7 +388,11 @@ in { enable = true; settings = hyprlandSettings; xwayland.enable = true; - systemd.variables = ["-all"]; + systemd.variables = ["--all"]; + systemd.extraCommands = lib.mkForce [ + "systemctl --user stop graphical-session.target" + "systemctl --user start hyprland-session.target" + ]; }; home.packages = [