diff --git a/modules/programs/waybar.nix b/modules/programs/waybar.nix index 72d247323..9e485d621 100644 --- a/modules/programs/waybar.nix +++ b/modules/programs/waybar.nix @@ -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 + ''; + }; + style = mkOption { type = nullOr (either path lines); default = null; @@ -317,6 +328,8 @@ in { ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID"; Restart = "on-failure"; KillMode = "mixed"; + } // optionalAttrs cfg.systemd.enableInspect { + Environment = [ "GTK_DEBUG=interactive" ]; }; Install = { WantedBy = [ cfg.systemd.target ]; };