mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 13:31:07 +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 {
|
style = mkOption {
|
||||||
type = nullOr (either path lines);
|
type = nullOr (either path lines);
|
||||||
default = null;
|
default = null;
|
||||||
|
|
@ -324,6 +335,8 @@ in {
|
||||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
KillMode = "mixed";
|
KillMode = "mixed";
|
||||||
|
} // optionalAttrs cfg.systemd.enableInspect {
|
||||||
|
Environment = [ "GTK_DEBUG=interactive" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
Install.WantedBy =
|
Install.WantedBy =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue