Sway : Add extraConfig & swap workspaces for desktop.
This commit is contained in:
parent
6c69348655
commit
f7b93dc97d
|
@ -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 "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue