i3: support for bar tray_output option

(cherry picked from commit 71f6bc41eb)
This commit is contained in:
dsx 2018-11-29 19:52:32 -05:00 committed by Robert Helgesson
parent f4af8151de
commit 4a574ca544
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -230,6 +230,12 @@ let
See <link xlink:href="https://i3wm.org/docs/userguide.html#_colors"/>.
'';
};
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}