diff --git a/hosts/common/programs/swaynotificationcenter/buttons.nix b/hosts/common/programs/swaynotificationcenter/buttons.nix index 24f8048d5..e63b46766 100644 --- a/hosts/common/programs/swaynotificationcenter/buttons.nix +++ b/hosts/common/programs/swaynotificationcenter/buttons.nix @@ -15,8 +15,8 @@ let }; systemctl-toggle = "${systemctl-toggle'}/bin/systemctl-toggle"; - print-is-active' = pkgs.writeShellApplication { - name = "print-is-active"; + print-systemd-active' = pkgs.writeShellApplication { + name = "print-systemd-active"; runtimeInputs = [ pkgs.systemd ]; @@ -28,21 +28,21 @@ let fi ''; }; - print-is-active = "${print-is-active'}/bin/print-is-active"; + print-systemd-active = "${print-systemd-active'}/bin/print-systemd-active"; systemServiceButton = name: label: { # XXX: this is surely broken, due to sandboxing/perms inherit label; type = "toggle"; command = "/run/wrappers/bin/sudo ${systemctl-toggle} ${name}"; - update-command = "${print-is-active} ${name}.service"; + update-command = "${print-systemd-active} ${name}.service"; active = true; }; userServiceButton = name: label: { inherit label; type = "toggle"; command = "${systemctl-toggle} --user ${name}"; - update-command = "${print-is-active} --user ${name}"; + update-command = "${print-systemd-active} --user ${name}"; active = true; }; in