cerebro icon indicating copy to clipboard operation
cerebro copied to clipboard

Hotkey doesn't always bring up Cerebro on Gnome wayland

Open haroldadmin opened this issue 7 years ago • 8 comments

  • [x] I am on the latest Cerebro.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: <Fedora 25 with Gnome>
  • Cerebro.app version: <0.2.8>
  • Relevant information from devtools (See above how to open it):

Issue

Pressing the hotkey does not always toggle Cerebro on Fedora 25 with Gnome on Wayland. Whenever I'm on the desktop, or in Nautlius (or any other stock gnome app), Cerebro does not show up when i press the hotkey.

However, it does work when I am in other programs like Chromium or Firefox. Maybe this has something to do with Wayland itself? The hotkey invokes Cerebro as it should whenever I am using a program that uses Xwayland. Also, the issue is not present when I'm using Gnome on Xorg.

I should also mention that i have configured Super+Space as the hotkey. This combination is not used for any other shortcut in the DE.

haroldadmin avatar Apr 21 '17 18:04 haroldadmin

@haroldadmin just a quick first idea – is it possible that super+space is some Gnome shortcut that is used in desktop and default apps? It is easy to check – you can change shortcut and try to reproduce the same issue

KELiON avatar Apr 25 '17 12:04 KELiON

I mentioned this in the description as well: Super+Space is not mapped to any shortcut in GNOME.

haroldadmin avatar Apr 25 '17 18:04 haroldadmin

Well it is a bug indeed as the hotkey is only registered to XWayland via XGrabKey therefore is not accessible from any native Wayland app, however it's implementation belongs to the Chromium project.

Doing some quick research, looks like Electron doesn't have any plans yet to add compatibility, but I guess you could lend them a hand or drop a comment there :+1:

glja021 avatar Apr 26 '17 07:04 glja021

So I guess the only workaround till then is to run GNOME on xorg.

haroldadmin avatar Apr 26 '17 12:04 haroldadmin

So, should we close this or you have another idea how we can fix it?

KELiON avatar Mar 13 '18 15:03 KELiON

@KELiON is it possible to toggle cerebro via CLI? if so, this would be a workaround. Gnome offers to define your own shortcuts... if I map this to a non-blocking script like cerebro toggle, it would be good for now...

mschrupp avatar May 09 '18 18:05 mschrupp

hello! I am experiencing the same issue. Was the CLI solution implemented? It seems that going back to X11 would affect the performances of my laptop.

thanks!

xkevinx avatar Feb 26 '22 10:02 xkevinx

I've noticed this issue on GNOME + X11 (on NixOS) when I have Super+Space as my hotkey. I have to press it twice in order for Cerebro to appear, which is pretty annoying. When I have Ctrl+Space set, Cerebro always appears on the first press.


Related, the Super+Space keyboard shortcut in GNOME is set by default to "Switch to Next Input Source". You must disable that in order to use any additional command with the Super+Space hotkey.

For now, I'm using Rofi on Super+Space as my launcher, I would rather not remap that muscle memory.

heywoodlh avatar Mar 15 '23 00:03 heywoodlh