1
0
Fork 0

Khanda: enable XWayland scaling for Obsidian

This commit is contained in:
Aires 2024-12-14 02:11:38 -05:00
parent a2abcdfa26
commit f2f6bd0ff9
2 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,5 @@
# Enables the Gnome desktop environment. # Enables the Gnome desktop environment.
{ {
inputs,
pkgs, pkgs,
config, config,
lib, lib,

View file

@ -1,5 +1,6 @@
{ {
config, config,
lib,
options, options,
namespace, namespace,
... ...
@ -16,6 +17,15 @@ in
system.stateVersion = stateVersion; system.stateVersion = stateVersion;
networking.hostName = hostName; networking.hostName = hostName;
# Enable XWayland native scaling just for Khanda.
# This is a workaround to get the Surface Pen working in Obsidian
services.xserver.desktopManager.gnome.extraGSettingsOverrides = lib.mkForce ''
[org.gnome.mutter]
experimental-features = [ 'scale-monitor-framebuffer', 'xwayland-native-scaling', 'variable-refresh-rate' ]
[org.gnome.shell]
disable-extension-version-validation = true
'';
###*** Configure your system below this line. ***### ###*** Configure your system below this line. ***###
# Configure the system. # Configure the system.
${namespace} = { ${namespace} = {