regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.49k stars 31 forks source link

Rofi dmenu keybinding intermittently not working #407

Open mxraw opened 4 years ago

mxraw commented 4 years ago

Describe the bug The keybinding for rofi -show dmenu is intermittently not working. It is supposed to be Mod4 + Space but in 95% of the cases when pressing Mod4 + Space nothing happens. Sometimes it starts working after a while just to cease functioning later on. I suspect another program wrestling the control for that shortcut from rofi. It should be noted however, that I can observe this behavior on a freshly started regolith session with zero applications started by me. I can also launch rofi -show dmenu from a terminal flawlessly, so it is not a configuration issue.

To Reproduce Press Mod4 + Space and notice that nothing happens.

Expected behavior Press Mod4 + Space and something awesome happens (notably, rofi dmenu pops up)

Screenshots A screenshot of something not appearing is hard to do.

Installation Details

Additional context No additional context

kgilmer commented 4 years ago

Hi @cmF3 . Interesting, I have not heard of this issue before. When people report issues with keybindings not working, it's all or nothing. The intermittent nature of your issue is puzzling. Perhaps check /var/log/syslog during the time of this intermittent behavior, to see if a program is generating an error.

Also, have a look at this Arch wiki which describes how to find which program responds to key events via xev: https://wiki.archlinux.org/index.php/Keyboard_input

0xricksanchez commented 4 years ago

I can confirm this is a problem on a fresh Ubuntu 20.04 instance after directly installing regolith on a fresh box. Regolith install was based on this:

$ sudo add-apt-repository ppa:regolith-linux/release
$ sudo apt install regolith-desktop i3xrocks-net-traffic i3xrocks-cpu-usage i3xrocks-time

I didnt have the time to investigate further but this only happened on Ubuntu 20.04 so far for me.

0xricksanchez commented 4 years ago

Interestingly enough: swapping Mod1 and Mod4 and rofi work just fine for me again

0xricksanchez commented 4 years ago

Under gnome-tweaksKeyboard & MouseAdditional Layout OptionsAlt/Win key behavior you can choose Left Alt is swapped with Left Win. This way you only have to swap Mod1 and Mod4 in your ~/.config/regolith/i3/config (line 42/43) to get close to the expected behavior with a working rofi..

Still, not sure what the main problem is though. This fix should at best be a temporary solution until the root cause is found.

ErlantzCalvo commented 4 years ago

I've got the same issue and I have "fixed" it as @0xricksanchez does.

psifertex commented 3 years ago

Same issue, except if I press the keybind twice it will trigger the second time. On 20.10 though instead of 20.04

kgilmer commented 3 years ago

I believe that Regolith 1.5.x may have resolved this issue w/ session gsettings overrides. Please reopen if issue still occurs in version 1.5.3.

marauder316 commented 3 years ago

I can confirm this issue still happens with a 1.5.3 install on 20.10.

The fix allows me to switch back and forth between desktops, but I still can't launch most of the Mod+Shift+[key] commands.

kgilmer commented 3 years ago

Reopening due to user feedback

psifertex commented 3 years ago

FWIW, The 1.5.x release /did/ fix it for me on my 20.10 setup. ¯_(ツ)_/¯