Sway : Add extraConfig & swap workspaces for desktop.

This commit is contained in:
Dmitry Voronin 2024-09-29 20:02:20 +03:00
parent 6c69348655
commit f7b93dc97d
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 12 additions and 3 deletions

View file

@ -27,6 +27,6 @@ in {
text = (util.trimTabs '' text = (util.trimTabs ''
# Read `man 5 sway` for a complete reference. # Read `man 5 sway` for a complete reference.
include /etc/sway/config.d/* include /etc/sway/config.d/*
'') + swayRc; '') + swayRc + config.module.desktop.sway.extraConfig or "";
} }

View file

@ -2,7 +2,7 @@
text = '' text = ''
# You can get the names of your outputs by running: swaymsg -t get_outputs # You can get the names of your outputs by running: swaymsg -t get_outputs
output * scale 1 output * scale 1
output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080
output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0 output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165" mode 1920x1080@74.986Hz transform 180 pos 780,0
output "Huawei Technologies Co., Inc. ZQE-CBA 0xC080F622" pos 0,1080
''; '';
} }

View file

@ -12,7 +12,6 @@
module = { module = {
autoupdate.enable = true; autoupdate.enable = true;
builder.client.enable = true; builder.client.enable = true;
desktop.sway.enable = true;
keyd.enable = true; keyd.enable = true;
print.enable = true; print.enable = true;
virtmanager.enable = true; virtmanager.enable = true;
@ -24,6 +23,12 @@
powersave = true; powersave = true;
}; };
}; };
desktop.sway = {
enable = true;
extraConfig = ''
workspace 1 output "ASUSTek COMPUTER INC ASUS VA24E R2LMTF127165"
'';
};
docker = { docker = {
enable = true; enable = true;
autostart = false; autostart = false;

View file

@ -4,6 +4,10 @@ in {
options = { options = {
module.desktop.sway = { module.desktop.sway = {
enable = mkEnableOption "Use Sway WM."; enable = mkEnableOption "Use Sway WM.";
extraConfig = mkOption {
default = "";
type = types.str;
};
}; };
}; };