OBS Hotkeys not working in KDE Plasma/Wayland

Has anyone managed to get OBS Hotkeys working with KDE Plasma/Wayland when you are not focused on the OBS window?

If you did, how did you do it?

Operating System: EndeavourOS 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6500 CPU @ 3.20GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor 1: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: OptiPlex 3050

I believe most people who need global shortcuts support are running it via xwayland.

So how do I use Xwayland? I thought that was included with Wayland.

Most wayland compositors do include xwayland, but that doesn’t mean that applications will automatically use it. Applications that can run om Wayland will default to doing so. You need to explicitly tell them to do otherwise.

As for how, I’m pretty sure you just need to set an environment variable, but you will need to look up which one.

Two possible ways to go:

  1. OBS websocket, maybe a command line helper ala obs-cmd, and manually assigned shortcuts
  2. xdg-desktop-portal with the hotkey plugin: https://github.com/leia-uwu/obs-wayland-hotkeys

PS: Personally, I use 1, working fine.

The link you posted https://github.com/leia-uwu/obs-wayland-hotkeys was most helpful because it showed a screen shot that shows system settings. I was not aware that was where I needed to go to set the hotkeys. TY :grinning_face:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.