Ronin: update kanshi config

Disable laptop screen when docked

Set external screen scale in sway config as well as kanshi to remove
scale flickering
This commit is contained in:
Evie Litherland-Smith 2024-09-12 09:09:13 +01:00
parent d1b76f7f2f
commit 8044b416ee

View file

@ -4,7 +4,10 @@
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."eDP-1".scale = "1.25"; output = {
"eDP-1".scale = "1.25";
"Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
};
workspaceOutputAssign = [ workspaceOutputAssign = [
{ {
output = "eDP-1"; output = "eDP-1";
@ -19,27 +22,39 @@
laptopScreen = { laptopScreen = {
criteria = "eDP-1"; criteria = "eDP-1";
scale = 1.25; scale = 1.25;
position = "2560,576"; # position = "2560,576";
}; };
monitor = { monitor = {
criteria = "Dell Inc. DELL P3223QE CCG8YN3"; criteria = "Dell Inc. DELL P3223QE CCG8YN3";
scale = 1.5; scale = 1.5;
position = "0,0";
}; };
in in
[ [
{ {
profile = { profile = {
name = "undocked"; name = "default";
outputs = [ laptopScreen ]; outputs = [
{
inherit (laptopScreen) criteria scale;
status = "enable";
position = "0,0";
}
];
}; };
} }
{ {
profile = { profile = {
name = "docked"; name = "docked";
outputs = [ outputs = [
laptopScreen {
monitor inherit (laptopScreen) criteria scale;
status = "disable";
}
{
inherit (monitor) criteria scale;
status = "enable";
position = "0,0";
}
]; ];
}; };
} }