Skip to content

Instantly share code, notes, and snippets.

@dikelps
Created November 3, 2025 14:47
Show Gist options
  • Save dikelps/7a487d566c3e97c9abe3957db6776a0b to your computer and use it in GitHub Desktop.
Save dikelps/7a487d566c3e97c9abe3957db6776a0b to your computer and use it in GitHub Desktop.
KDE Plasma 6.5 Clipboard Monitoring through DBus and Klipper

6.5 update seems to break the traditional tool like wl-paste --watch, with error indicating the wlroots data-control protocol support issues.

Here a DBus monitoring solution based on the internal KDE widget Klipper is shown. Make sure this widget is not disabled in the System Tray Settings. To monitor the clipboard change through DBus, the CLI tool to use is dbus-monitor:

dbus-monitor "type='signal',interface='org.kde.klipper.klipper',member='clipboardHistoryUpdated'"

This will print a line to stdout every time the clipboard updates.

You can obtain the cliboard content either with wl-paste or using DBus with:

qdbus-qt6 org.kde.klipper /klipper getClipboardContents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment