feat(wayland): xwayland variables

This commit is contained in:
winston 2023-03-10 02:50:27 +01:00
parent 1588876ac8
commit cba6d93ccd
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -35,7 +35,7 @@ in {
playerctl = lib.getExe pkgs.playerctl; playerctl = lib.getExe pkgs.playerctl;
wpctl = pkgs.wireplumber + "/bin/wpctl"; wpctl = pkgs.wireplumber + "/bin/wpctl";
in '' in ''
monitor = ,5120x2160@72,0x0,1.5 monitor = ,5120x2160@72,0x0,2.0
input:follow_mouse = 1 input:follow_mouse = 1
@ -110,6 +110,13 @@ in {
bind = ,XF86AudioPrev,exec,${playerctl} previous bind = ,XF86AudioPrev,exec,${playerctl} previous
bind = ,XF86AudioPause,exec,${playerctl} play-pause bind = ,XF86AudioPause,exec,${playerctl} play-pause
exec-once = ${waybarLauncher}/bin/waybar-launcher 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
''; '';
}; };
} }