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:
parent
d1b76f7f2f
commit
8044b416ee
|
@ -4,7 +4,10 @@
|
|||
home-manager.users.${username} = {
|
||||
imports = [ ./home/work.nix ];
|
||||
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 = [
|
||||
{
|
||||
output = "eDP-1";
|
||||
|
@ -19,27 +22,39 @@
|
|||
laptopScreen = {
|
||||
criteria = "eDP-1";
|
||||
scale = 1.25;
|
||||
position = "2560,576";
|
||||
# position = "2560,576";
|
||||
};
|
||||
monitor = {
|
||||
criteria = "Dell Inc. DELL P3223QE CCG8YN3";
|
||||
scale = 1.5;
|
||||
position = "0,0";
|
||||
};
|
||||
in
|
||||
[
|
||||
{
|
||||
profile = {
|
||||
name = "undocked";
|
||||
outputs = [ laptopScreen ];
|
||||
name = "default";
|
||||
outputs = [
|
||||
{
|
||||
inherit (laptopScreen) criteria scale;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
profile = {
|
||||
name = "docked";
|
||||
outputs = [
|
||||
laptopScreen
|
||||
monitor
|
||||
{
|
||||
inherit (laptopScreen) criteria scale;
|
||||
status = "disable";
|
||||
}
|
||||
{
|
||||
inherit (monitor) criteria scale;
|
||||
status = "enable";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue