1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

waybar: support enable inspect from service

This commit is contained in:
Stzx 2024-10-01 12:04:28 +08:00
parent ffe2d07e77
commit 3d150f601d
No known key found for this signature in database
GPG key ID: 13FA5F5B5C94D823

View file

@ -209,6 +209,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://wiki.gnome.org/action/show/Projects/GTK/Inspector for more information.>
'';
};
style = mkOption { style = mkOption {
type = nullOr (either path lines); type = nullOr (either path lines);
default = null; default = null;
@ -317,6 +328,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 = [ cfg.systemd.target ]; }; Install = { WantedBy = [ cfg.systemd.target ]; };