Skip to content

Global shortcut doesn't work on Wayland #10538

Closed as not planned
Closed as not planned

Description

@mdsmendes94

Operating System Info

Other

Other OS

Arch Linux 6.8.6-2

OBS Studio Version

Other

OBS Studio Version (Other)

30.1.1-1.1

OBS Studio Log URL

https://obsproject.com/logs/BA0sxugLZ2o19vlL

OBS Studio Crash Log URL

No response

Expected Behavior

Global shortcut working when OBS is not in focus

Current Behavior

Global shortcut only works when OBS is in focus

Steps to Reproduce

1.Wayland Session
2.Open OBS
3.Set a global shortcut for recoding, save and apply
4. Unfocus OBS and press the global shortcut you set
...

Anything else we should know?

No response

Activity

  1. kkartaltepe commented on Apr 14, 2024

    @kkartaltepe
    Collaborator

    And we do not support global shortcuts on wayland, since wayland does not support global shortcuts. See earlier reports for more information #10348 (comment)

  2. mdsmendes94 commented on Apr 14, 2024

    @mdsmendes94
    Author

    since wayland does not support global shortcuts. See earlier reports for more information #10348 (comment)

    How come Spectacle have functioning global shortcuts then?

  3. tiberium-v commented on Apr 15, 2024

    @tiberium-v

    since wayland does not support global shortcuts. See earlier reports for more information #10348 (comment)

    How come Spectacle have functioning global shortcuts then?

    KDE as a Desktop Environment (or any other DE for that matter) monitored the screenshot hotkey and run the command to Spectacle/Screenshot Program of your choice.

    You can archive similar with the websocket protocol of obs. https://github.com/pschmitt/obs-cli with this tool, you can set up a hotkey in KDE and let run the obs-cli scene switch "Scene2" (as a example) command.

    A new "Hotkey" Portal is on way for Wayland, but it is not wide adapted and obs hotkey logic has to be re-written for that.

  4. neurekadev commented on Jul 11, 2025

    @neurekadev

    If OBS isn't interested in making hotkeys work in Wayland, then people will simply find an alternative.

    Most users just want software to work and don't want to have to deal with websockets, cli, and scripts. The added complexity is not worth it when there are alternatives that work just fine in Wayland.

  5. Fenrirthviti commented on Jul 11, 2025

    @Fenrirthviti
    Member

    We are interested in supporting this, but it's a complicated feature to implement and nobody who has the requisite knowledge or skill to do so has had the time or motivation to work on it. If you're looking to get involved and see how you can assist, making vaguely threatening comments on a closed issue isn't a great way to do that. I'd suggest joining our Discord or Forums and getting involved with the community instead.

    PRs, as always, are welcome.

  6. neurekadev commented on Jul 11, 2025

    @neurekadev

    making vaguely threatening comments on a closed issue isn't a great way to do that.

    Nobody is making vaguely threatening comments. OBS is free to do as they please and so are end users. I was simply pointing out a pain point.

  7. leia-uwu commented on Jul 29, 2025

    @leia-uwu

    I made a plugin to integrate with the global shortcuts portal

    https://github.com/leia-uwu/obs-wayland-hotkeys

    if anyone wants to use it as a reference to implement the portal upstream on OBS feel free, i just couldn't find my way around the codebase so decided to make a plugin

  8. Suor commented on Sep 23, 2025

    @Suor

    @leia-uwu why not contribute it to the OBS itself?

  9. prsm3 commented on Nov 28, 2025

    @prsm3

    I made a plugin to integrate with the global shortcuts portal

    https://github.com/leia-uwu/obs-wayland-hotkeys

    if anyone wants to use it as a reference to implement the portal upstream on OBS feel free, i just couldn't find my way around the codebase so decided to make a plugin

    Thank you so much for this! I just installed the plugin on CachyOS and it works flawlessly! <3

  10. Hi-Angel commented on Mar 2, 2026

    @Hi-Angel

    @leia-uwu thanks, I just tried it and I'm a bit confused how it's supposed to work.

    On the first start of obs I got a new window that enlists shortcuts, and each of them was empty. I just assumed it's a bug that they empty and the window just asks for permissions, so I pressed Ok to agree.

    However, when I press F1 afterwards (a shortcut for "start/stop recording"), it only starts if obs is focused, i.e. it's still not considered global.

    Maybe I should've explicitly re-assigned shortcuts in that initial pop-up…? Either way, the window no longer appears on start, and ultimately the portal just doesn't work.

  11. prsm3 commented on Mar 2, 2026

    @prsm3

    @Hi-Angel Yes you have to specifically reassign the key bind in that initial pop up window.

  12. Hi-Angel commented on Mar 2, 2026

    @Hi-Angel

    I see. Weird, the README says on KDE I should be now able to find shortcuts in Keyboard → Shortcuts under "OBS Studio", but there's no such item.

    Image

    Oh, well…

  13. Hi-Angel commented on Mar 8, 2026

    @Hi-Angel

    We are interested in supporting this, but it's a complicated feature to implement and nobody who has the requisite knowledge or skill to do so has had the time or motivation to work on it. If you're looking to get involved and see how you can assist, making vaguely threatening comments on a closed issue isn't a great way to do that. I'd suggest joining our Discord or Forums and getting involved with the community instead.

    PRs, as always, are welcome.

    @Fenrirthviti thank you for reply! I think this issue was closed by mistake, can you please reopen it to make it visible to contributors that the feature is wanted and contributions are welcome 😊

  14. Slavomir9 commented on Mar 8, 2026

    @Slavomir9
  15. leia-uwu commented on Mar 8, 2026

    @leia-uwu
  16. Slavomir9 commented on Mar 8, 2026

    @Slavomir9
  17. leia-uwu commented on Mar 8, 2026

    @leia-uwu
  18. Fenrirthviti commented on Mar 8, 2026

    @Fenrirthviti
    Member

    @Slavomir9 Please do not post AI output on our repo. Consider this your only warning.

  19. C0rn3j commented on Apr 27, 2026

    @C0rn3j

    Could this issue be reopened, since Wayland protocols now supports global hotkeys (which is the original reason why this issue was closed)?

    Or is there another issue that tracks this that I missed?

  20. Fenrirthviti commented on Apr 27, 2026

    @Fenrirthviti
    Member

    This is a feature request, not a bug, which we don't track on Github.

  21. Hi-Angel commented on Apr 27, 2026

    @Hi-Angel

    This is a feature request, not a bug, which we don't track on Github.

    Are they tracked elsewhere?

    Also, I don't really understand how non-working functional isn't a bug. And neither global shortcuts are a rarely used corner-case — you don't typically want recording to show you clicking start/stop/pause…

  22. Fenrirthviti commented on Apr 27, 2026

    @Fenrirthviti
    Member

    We track feature requests on our Ideas Page.

    A bug would be if we had support for Wayland global shortcuts, and something wasn't working properly. There just simply isn't any implementation, so this isn't a bug. You can't have a bug in nonexistent code :)

    Thank you!

  23. Hi-Angel commented on Apr 27, 2026

    @Hi-Angel

    There just simply isn't any implementation, so this isn't a bug.

    Well, fair enough… I just opened the "Hotkeys" settings, and it indeed nowhere says the the hotkeys are "global", so… The fact that it works globally in different settings can be considered an undocumented quirk, I see where you're getting… Fair.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions