Add home monitors to Ronin config

Add monitor mode and scale to sway config, add extra profile for
kanshi for home configuration.
This commit is contained in:
Evie Litherland-Smith 2024-09-18 11:34:19 +01:00
parent fe2a105c4e
commit 52130c59cc
2 changed files with 41 additions and 9 deletions

View file

@ -4,7 +4,16 @@
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ ./home/work.nix ]; imports = [ ./home/work.nix ];
wayland.windowManager.sway.config = { wayland.windowManager.sway.config = {
output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5"; output = {
# Work
"Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
# Home
"Acer Technologies ED270R TJMEE0043W01".mode = "1920x1080@120Hz";
"Microstep MSI G27CQ4 E2 Unknown" = {
mode = "2560x1440@120Hz";
scale = "1.25";
};
};
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = "eDP-1"; output = "eDP-1";
@ -17,7 +26,9 @@
settings = settings =
let let
laptopScreen.criteria = "eDP-1"; laptopScreen.criteria = "eDP-1";
monitor.criteria = "Dell Inc. DELL P3223QE CCG8YN3"; workMonitor.criteria = "Dell Inc. DELL P3223QE CCG8YN3";
homeMonitor1.criteria = "Acer Technologies ED270R TJMEE0043W01";
homeMonitor2.criteria = "Microstep MSI G27CQ4 E2 Unknown";
in in
[ [
{ {
@ -34,20 +45,41 @@
} }
{ {
profile = { profile = {
name = "docked"; name = "work";
outputs = [ outputs = [
{ {
inherit (laptopScreen) criteria; inherit (laptopScreen) criteria;
status = "disable"; status = "disable";
} }
{ {
inherit (monitor) criteria; inherit (workMonitor) criteria;
status = "enable"; status = "enable";
position = "0,0"; position = "0,0";
} }
]; ];
}; };
} }
{
profile = {
name = "home";
outputs = [
{
inherit (laptopScreen) criteria;
status = "disable";
}
{
inherit (homeMonitor1) criteria;
status = "enable";
position = "0,140";
}
{
inherit (homeMonitor2) criteria;
status = "enable";
position = "1920,0";
}
];
};
}
]; ];
}; };
}; };

View file

@ -37,17 +37,17 @@
}; };
wayland.windowManager.sway.config = { wayland.windowManager.sway.config = {
output = { output = {
"Acer Technologies ED270R TJMEE0043W01" = {
mode = "1920x1080@120Hz";
position = "0 140";
adaptive_sync = "off";
};
"Microstep MSI G27CQ4 E2 Unknown" = { "Microstep MSI G27CQ4 E2 Unknown" = {
mode = "2560x1440@120Hz"; mode = "2560x1440@120Hz";
scale = "1.25"; scale = "1.25";
position = "1920 0"; position = "1920 0";
adaptive_sync = "on"; adaptive_sync = "on";
}; };
"Acer Technologies ED270R TJMEE0043W01" = {
mode = "1920x1080@120Hz";
position = "0 140";
adaptive_sync = "off";
};
}; };
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {