From cba6d93ccd75ddfbca89f6943959d163810eeeb2 Mon Sep 17 00:00:00 2001 From: winston Date: Fri, 10 Mar 2023 02:50:27 +0100 Subject: [PATCH] feat(wayland): xwayland variables --- home/apps/wayland.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home/apps/wayland.nix b/home/apps/wayland.nix index 17db4a7..7c57632 100644 --- a/home/apps/wayland.nix +++ b/home/apps/wayland.nix @@ -35,7 +35,7 @@ in { playerctl = lib.getExe pkgs.playerctl; wpctl = pkgs.wireplumber + "/bin/wpctl"; in '' - monitor = ,5120x2160@72,0x0,1.5 + monitor = ,5120x2160@72,0x0,2.0 input:follow_mouse = 1 @@ -110,6 +110,13 @@ in { bind = ,XF86AudioPrev,exec,${playerctl} previous bind = ,XF86AudioPause,exec,${playerctl} play-pause exec-once = ${waybarLauncher}/bin/waybar-launcher + + # sets xwayland scale + exec-once=xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2 + + # toolkit-specific scale + env = GDK_SCALE,2 + env = XCURSOR_SIZE,32 ''; }; }