cerebroapp / cerebro

🔵 Cerebro is an open-source launcher to improve your productivity and efficiency
https://www.cerebroapp.com/
MIT License
8.35k stars 456 forks source link

Hotkey doesn't always bring up Cerebro on Gnome wayland #291

Open haroldadmin opened 7 years ago

haroldadmin commented 7 years ago

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.

KELiON commented 7 years ago

@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

haroldadmin commented 7 years ago

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

glja021 commented 7 years ago

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:

haroldadmin commented 7 years ago

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

KELiON commented 6 years ago

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

mschrupp commented 6 years ago

@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...

xkevinx commented 2 years ago

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!

heywoodlh commented 1 year ago

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.