Initial transfer to sway on work PC #2

Merged
erwin merged 23 commits from feature/sway-at-work into main 2023-09-29 11:52:47 +02:00
Showing only changes of commit 9ccfe2be56 - Show all commits

View file

@ -45,6 +45,25 @@ in
};
});
};
workspaceOutputs = mkOption {
description = "Assign workspaces to outputs";
type = types.listOf (types.submodule {
options = {
output = mkOption {
description = "Name(s) of the output to assign";
type = with types; either str (listOf str);
apply = lists.toList;
default = "";
};
workspace = mkOption {
description = "Name of the workspace to assign";
type = types.str;
default = "";
};
};
});
default = [ ];
};
};
config = mkIf cfg.enable {
@ -102,6 +121,8 @@ in
defaultWorkspace = "workspace number 1";
workspaceOutputAssign = cfg.workspaceOutputs;
left = "n";
down = "e";
up = "i";