mayushii: Configure new monitor setup

This configures the home profile for kanshi for an Acer B277K monitor.
Since it is both larger than my previous monitor and has a higher
resolution, a few things change with this.

For one, my preferred setup is now to just have one monitor instead of
having my laptop screen as a secondary display device. Therefore, logind
should not suspend if the lid is closed. Since it fails to accurately
detect when a dock is connected, it is configured to never suspend on
lid switch when external power is connected.

Another thing is that the high resolution makes it necessary to use a
scaling factor, which is quite easy to configure with sway and kanshi.
It does, however, not work for Xwayland clients (they render at a lower
resolution and are scaled up with nearest-neighbor interpolation).
That requires me to no longer force the qt backend to xcb for
qutebrowser, because that significantly lowers the browsing experience.

The setup for sayuri is still to be done.
This commit is contained in:
Simon Bruder 2022-01-10 17:41:57 +01:00
parent 07142b8114
commit 80ee98058e
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 10 additions and 11 deletions

View file

@ -54,9 +54,9 @@
}; };
}; };
# Most of the time I want to use both screens at the same time and suspend it # logind fails to detect that the system is still docked when the external
# regularily by closing the lid # monitor is switched off via dpms
services.logind.lidSwitchDocked = config.services.logind.lidSwitch; services.logind.lidSwitchExternalPower = "ignore";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
radeontop radeontop

View file

@ -200,9 +200,6 @@ in
url.default_page = "about:blank"; url.default_page = "about:blank";
url.start_pages = [ "about:blank" ]; url.start_pages = [ "about:blank" ];
# hack to circumvent memory leak (https://github.com/qutebrowser/qutebrowser/issues/1476)
qt.force_platform = "xcb";
# Privacy # Privacy
content.cookies.accept = "no-3rdparty"; content.cookies.accept = "no-3rdparty";
content.headers.user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"; content.headers.user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0";

View file

@ -11,17 +11,19 @@ let
criteria = "eDP-1"; criteria = "eDP-1";
mode = "1920x1080"; mode = "1920x1080";
position = "0,0"; position = "0,0";
status = "enable";
}; };
home.outputs = [ home.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
mode = "1920x1080"; position = "1920,0";
position = "0,60"; status = "disable";
} }
{ {
criteria = "Dell Inc. DELL U2410 F525M0A104NL"; criteria = "Acer Technologies Acer B277K 0x0000F36C";
mode = "1920x1200"; mode = "3840x2160";
position = "1920,0"; position = "0,0";
scale = 2.0;
} }
]; ];
}; };