i3-sway: multiple outputs (#4223)
multiple outputs can be assigned to a workspace
This commit is contained in:
parent
d2e47de536
commit
f63b39a67d
6 changed files with 17 additions and 3 deletions
|
|
@ -150,7 +150,8 @@ rec {
|
|||
windowCommandsStr = { command, criteria, ... }:
|
||||
"for_window ${criteriaStr criteria} ${command}";
|
||||
workspaceOutputStr = item:
|
||||
''workspace "${item.workspace}" output "${item.output}"'';
|
||||
let outputs = concatMapStringsSep " " strings.escapeNixString item.output;
|
||||
in ''workspace "${item.workspace}" output ${outputs}'';
|
||||
|
||||
indent = list:
|
||||
{ includesWrapper ? true, level ? 1 }:
|
||||
|
|
|
|||
|
|
@ -912,11 +912,12 @@ in {
|
|||
};
|
||||
|
||||
output = mkOption {
|
||||
type = str;
|
||||
type = with types; either str (listOf str);
|
||||
default = "";
|
||||
apply = lists.toList;
|
||||
example = "eDP";
|
||||
description = ''
|
||||
Name of the output from <command>
|
||||
Name(s) of the output(s) from <command>
|
||||
${if isSway then "swaymsg" else "i3-msg"} -t get_outputs
|
||||
</command>.
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue