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:
parent
ed030a7879
commit
b5ab2c7fda
1 changed files with 13 additions and 0 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue