sway: Make desktop-monitor assignment configurable

This commit is contained in:
Erwin Boskma 2023-09-29 09:38:43 +02:00
parent a55b5ed3b8
commit 9ccfe2be56
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

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";