1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 04:21:08 +01:00

waybar: support enable inspect from service (#5922)

This commit is contained in:
Silence Tai 2025-02-23 21:45:42 +08:00 committed by GitHub
parent ed030a7879
commit b5ab2c7fda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,6 +211,17 @@ in {
'';
};
systemd.enableInspect = mkOption {
type = bool;
default = false;
example = true;
description = ''
Inspect objects and find their CSS classes, experiment with live CSS styles, and lookup the current value of CSS properties.
See <https://developer.gnome.org/documentation/tools/inspector.html>
'';
};
style = mkOption {
type = nullOr (either path lines);
default = null;
@ -324,6 +335,8 @@ in {
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
Restart = "on-failure";
KillMode = "mixed";
} // optionalAttrs cfg.systemd.enableInspect {
Environment = [ "GTK_DEBUG=interactive" ];
};
Install.WantedBy =