fractional scaling

This commit is contained in:
Daniel Langbein 2024-02-12 17:19:44 +01:00
parent c217bba35c
commit 063cc0e290
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -8,6 +8,15 @@ in
# https://wiki.archlinux.org/title/HiDPI#Xorg # https://wiki.archlinux.org/title/HiDPI#Xorg
# https://devicetests.com/set-different-scaling-multi-monitors-gnome
# "scale-monitor-framebuffer": This allows GNOME to scale each monitors framebuffer independently, which is necessary for per-monitor scaling.
# "x11-randr-fractional-scaling": This allows fractional scaling, which gives you finer control over the scaling factor.
# TODO open issue: Fractional scaling can't be enabled with multiple monitors.
# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2076
# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2365
# -> https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2008355
programs.dconf.enable = true; programs.dconf.enable = true;
# Overlays. # Overlays.
@ -60,15 +69,13 @@ in
home-manager.users.yoda = { osConfig, config, pkgs, ... }: { home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
dconf.settings = { dconf.settings = {
"org/gnome/mutter" = { "org/gnome/mutter" = {
experimental-features = [ experimental-features = (
( if (osConfig.services.xserver.displayManager.gdm.wayland)
if (osConfig.services.xserver.displayManager.gdm.wayland) # Wayland
# Wayland fractional scaling then ["scale-monitor-framebuffer"]
then "scale-monitor-framebuffer" # X11
# X11 fractional scaling else ["scale-monitor-framebuffer" "x11-randr-fractional-scaling"]
else "x11-randr-fractional-scaling" );
)
];
}; };
}; };
}; };