From 4a574ca544dc7966f7e88cdf5f45898e57632f50 Mon Sep 17 00:00:00 2001 From: dsx Date: Thu, 29 Nov 2018 19:52:32 -0500 Subject: [PATCH] i3: support for bar tray_output option (cherry picked from commit 71f6bc41eb408f1ee53a128d24feffb18248f6fc) --- 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 60ab13a3..fcc0c4f1 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -230,6 +230,12 @@ let See . ''; }; + + trayOutput = mkOption { + type = types.string; + default = "primary"; + description = "Where to output tray."; + }; }; }; @@ -671,7 +677,7 @@ let barStr = { id, fonts, mode, hiddenState, position, workspaceButtons, - workspaceNumbers, command, statusCommand, colors, ... + workspaceNumbers, command, statusCommand, colors, trayOutput, ... }: '' bar { ${optionalString (id != null) "id ${id}"} @@ -683,6 +689,7 @@ let i3bar_command ${command} workspace_buttons ${if workspaceButtons then "yes" else "no"} strip_workspace_numbers ${if !workspaceNumbers then "yes" else "no"} + tray_output ${trayOutput} colors { background ${colors.background} statusline ${colors.statusline}