From df8a14e12a4fbaf547303e053a03e13416ff9f7b Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Mon, 14 Jan 2019 21:22:02 +0100 Subject: [PATCH] i3: add bar.extraConfig option --- modules/services/window-managers/i3.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index e7cc49a9..1a21d12a 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -104,6 +104,12 @@ let options = { inherit (commonOptions) fonts; + extraConfig = mkOption { + type = types.lines; + default = ""; + description = "Extra configuration lines for this bar."; + }; + id = mkOption { type = types.nullOr types.string; default = null; @@ -687,7 +693,7 @@ let barStr = { id, fonts, mode, hiddenState, position, workspaceButtons, - workspaceNumbers, command, statusCommand, colors, trayOutput, ... + workspaceNumbers, command, statusCommand, colors, trayOutput, extraConfig, ... }: '' bar { ${optionalString (id != null) "id ${id}"} @@ -710,6 +716,7 @@ let urgent_workspace ${barColorSetStr colors.urgentWorkspace} binding_mode ${barColorSetStr colors.bindingMode} } + ${extraConfig} } '';