revert(niri): restore pyclipsync for QQ's X11 clipboard

Reverts 9152e829: QQ's Wayland window still copies through the X11 CLIPBOARD, which xwayland-satellite cannot bridge, so QQ copies never reached Wayland apps.

Assisted-by: DeepSeek Harness (claude-opus-5-5)
This commit is contained in:
Ryan Yin committed 2026-11-06 18:30:56 +08:00
1 parent 34e984fb92
commit ba149b5edf
4 files changed
+40 -3

No files matched your search

+10
View File
@@ -2,12 +2,18 @@
pkgs,
config,
lib,
pyclipsync,
...
}@args:
let
cfg = config.modules.desktop.niri;
in
{
imports = [
# provides `services.pyclipsync.enable`
pyclipsync.homeModules.default
];
options.modules.desktop.niri = {
enable = lib.mkEnableOption "niri compositor";
};
@@ -51,6 +57,10 @@ in
};
};
# QQ draws a Wayland window but copies through the X11 CLIPBOARD, which
# xwayland-satellite bridges only while an X11 window has focus.
services.pyclipsync.enable = true;
# NOTE: this executable is used by greetd to start a wayland session when system boot up
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module
home.file.".wayland-session" = {