mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
i3: support for bar tray_output option
This commit is contained in:
parent
6d2f16a7ae
commit
71f6bc41eb
1 changed files with 8 additions and 1 deletions
|
@ -230,6 +230,12 @@ let
|
||||||
See <link xlink:href="https://i3wm.org/docs/userguide.html#_colors"/>.
|
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 = {
|
barStr = {
|
||||||
id, fonts, mode, hiddenState, position, workspaceButtons,
|
id, fonts, mode, hiddenState, position, workspaceButtons,
|
||||||
workspaceNumbers, command, statusCommand, colors, ...
|
workspaceNumbers, command, statusCommand, colors, trayOutput, ...
|
||||||
}: ''
|
}: ''
|
||||||
bar {
|
bar {
|
||||||
${optionalString (id != null) "id ${id}"}
|
${optionalString (id != null) "id ${id}"}
|
||||||
|
@ -683,6 +689,7 @@ let
|
||||||
i3bar_command ${command}
|
i3bar_command ${command}
|
||||||
workspace_buttons ${if workspaceButtons then "yes" else "no"}
|
workspace_buttons ${if workspaceButtons then "yes" else "no"}
|
||||||
strip_workspace_numbers ${if !workspaceNumbers then "yes" else "no"}
|
strip_workspace_numbers ${if !workspaceNumbers then "yes" else "no"}
|
||||||
|
tray_output ${trayOutput}
|
||||||
colors {
|
colors {
|
||||||
background ${colors.background}
|
background ${colors.background}
|
||||||
statusline ${colors.statusline}
|
statusline ${colors.statusline}
|
||||||
|
|
Loading…
Reference in a new issue