diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-28 10:56:03 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-28 10:56:03 -0400 |
| commit | 17a9c1b23e6af472907c87ec3f605485729d5937 (patch) | |
| tree | 96e4160df4ac17cc11ccc3e4e0b4a51d6af48d32 | |
| parent | update commits (diff) | |
| download | dotfiles-nix-17a9c1b23e6af472907c87ec3f605485729d5937.tar.gz dotfiles-nix-17a9c1b23e6af472907c87ec3f605485729d5937.tar.bz2 dotfiles-nix-17a9c1b23e6af472907c87ec3f605485729d5937.zip | |
fix hyprland auto start
| -rw-r--r-- | home/desktops/hyprland/default.nix | 7 | ||||
| -rw-r--r-- | home/desktops/hyprland/hyprland.lua | 8 |
2 files changed, 5 insertions, 10 deletions
diff --git a/home/desktops/hyprland/default.nix b/home/desktops/hyprland/default.nix index 35668f3..d13f8e4 100644 --- a/home/desktops/hyprland/default.nix +++ b/home/desktops/hyprland/default.nix @@ -8,7 +8,7 @@ cfg = config.desktops.hyprland; lua = builtins.readFile ./hyprland.lua; - lua_cfg = (lib.generators.toLua {}) {inherit (config) monitors theme default autoRun;}; + lua_cfg = (lib.generators.toLua {}) {inherit (config) monitors theme default;}; in { imports = [ ./idle.nix @@ -26,7 +26,10 @@ in { portalPackage = pkgs.xdg-desktop-portal-hyprland; xwayland.enable = true; - systemd.enable = true; + systemd = { + enable = true; + extraCommands = map (entry: "(setsid -f ${entry})") config.autoRun; + }; plugins = with pkgs; [ hy3 diff --git a/home/desktops/hyprland/hyprland.lua b/home/desktops/hyprland/hyprland.lua index 42a64ee..58e6e9a 100644 --- a/home/desktops/hyprland/hyprland.lua +++ b/home/desktops/hyprland/hyprland.lua @@ -301,11 +301,3 @@ hl.config({ no_donation_nag = true, }, }) - ---[[ AUTOSTART ]]-- - -hl.on("hyprland.start", function() - for _,app in ipairs(config.autoRun) do - hl.exec_cmd(app) - end -end) |