You are not logged in.

#1 2017-06-12 04:14:59

CT075
Member
Registered: 2015-01-03
Posts: 37

[GNOME 3] dmenu cannot grab keyboard from empty desktop

Hello --

I have recently installed dmenu and have been using it with the GNOME 3 defaults. It usually works fine, but has the odd issue that it cannot seem to grab the keyboard if there are no applications open (such as chromium, etc) or if th eonly open applications are terminals (gnome-terminal, terminator and xterm all share this issue). Attempting to run dmenu_run from a terminal (all aforementioned) will cause the focus to remain on said terminal window, even if there are other applications open. This is true whether I use dmenu_run via a keyboard shortcut (I have it bound to alt-p) or invoking dmenu_run manually.

Any ideas?

Offline

#2 2017-06-12 06:05:26

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

Are you running gnome with wayland ??

Offline

#3 2017-06-12 12:22:35

CT075
Member
Registered: 2015-01-03
Posts: 37

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

As far as I know, yes. "echo $XDG_SESSION_TYPE" gives "wayland"

Offline

#4 2017-06-12 18:48:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

Offline

#5 2017-06-13 06:04:38

CT075
Member
Registered: 2015-01-03
Posts: 37

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

I have attempted to install that package, however, it seems to require an AUR package known as "wld" that doesn't appear to exist. I did find "wld-git", but that doesn't seem to satisfy the dependency in PKGBUILD

Offline

#6 2017-06-13 17:53:29

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,679
Website

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

The wld-git package is acceptable, did you not think to at least try it?

You will also need https://aur.archlinux.org/packages/swc-git/ and the good news is that this version of dmenu does actually work under Wayland:

Yay!

Now let's just hope they can port dwm & st as well smile

EDIT: oops, sorry, it actually doesn't work at all; I had the old version earlier in my $PATH, how embarrassing...

empty@Xanadu:~ $ dmenu_run 2> dmenu.log
empty@Xanadu:~ $ cat dmenu.log
# find_driver: Trying DRM driver `intel'
# wld_font_open_name: Opening font with name: monospace:size=10
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/Inconsolata-Regular.ttf
empty@Xanadu:~ $

Nothing appears on the screen hmm

I'm a bit busy right now, I will investigate this more when I have the time.

Last edited by Head_on_a_Stick (2017-06-13 19:08:26)

Offline

#7 2017-10-24 11:09:31

Skitter
Member
Registered: 2013-09-28
Posts: 36

Re: [GNOME 3] dmenu cannot grab keyboard from empty desktop

Have you solved your issue? I don't believe it's necrobumping because the thread is only 4 months old. I'm having the exact same problem - dmenu doesn't appear after running the dmenu_run command.

#pacman -Q | grep dmenu 
dmenu-wayland-git 545.f385d9d-1

I'm using gnome 3.26.1 released in 2017-10-02.
Dmenu stderr:

# find_driver: Trying DRM driver `intel'
# wld_font_open_name: Opening font with name: monospace:size=10
# wld_font_open_pattern: Loading font file: /usr/share/fonts/TTF/DejaVuSansMono.ttf

Offline

Board footer

Powered by FluxBB