1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-03 07:31:03 +01:00

i3-sway: multiple outputs (#4223)

multiple outputs can be assigned to a workspace
This commit is contained in:
Sven Friedrich 2023-07-14 21:25:55 +02:00 committed by GitHub
parent d2e47de536
commit f63b39a67d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 3 deletions

View file

@ -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 }: