swaync: rename: print-is-active -> print-systemd-active
This commit is contained in:
@@ -15,8 +15,8 @@ let
|
|||||||
};
|
};
|
||||||
systemctl-toggle = "${systemctl-toggle'}/bin/systemctl-toggle";
|
systemctl-toggle = "${systemctl-toggle'}/bin/systemctl-toggle";
|
||||||
|
|
||||||
print-is-active' = pkgs.writeShellApplication {
|
print-systemd-active' = pkgs.writeShellApplication {
|
||||||
name = "print-is-active";
|
name = "print-systemd-active";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.systemd
|
pkgs.systemd
|
||||||
];
|
];
|
||||||
@@ -28,21 +28,21 @@ let
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
print-is-active = "${print-is-active'}/bin/print-is-active";
|
print-systemd-active = "${print-systemd-active'}/bin/print-systemd-active";
|
||||||
|
|
||||||
systemServiceButton = name: label: {
|
systemServiceButton = name: label: {
|
||||||
# XXX: this is surely broken, due to sandboxing/perms
|
# XXX: this is surely broken, due to sandboxing/perms
|
||||||
inherit label;
|
inherit label;
|
||||||
type = "toggle";
|
type = "toggle";
|
||||||
command = "/run/wrappers/bin/sudo ${systemctl-toggle} ${name}";
|
command = "/run/wrappers/bin/sudo ${systemctl-toggle} ${name}";
|
||||||
update-command = "${print-is-active} ${name}.service";
|
update-command = "${print-systemd-active} ${name}.service";
|
||||||
active = true;
|
active = true;
|
||||||
};
|
};
|
||||||
userServiceButton = name: label: {
|
userServiceButton = name: label: {
|
||||||
inherit label;
|
inherit label;
|
||||||
type = "toggle";
|
type = "toggle";
|
||||||
command = "${systemctl-toggle} --user ${name}";
|
command = "${systemctl-toggle} --user ${name}";
|
||||||
update-command = "${print-is-active} --user ${name}";
|
update-command = "${print-systemd-active} --user ${name}";
|
||||||
active = true;
|
active = true;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
Reference in New Issue
Block a user