dmenu icon indicating copy to clipboard operation
dmenu copied to clipboard

dmenu is not displayed

Open FallingSnow opened this issue 7 years ago • 8 comments

Running dmenu results in the below output but no menu is actually displayed. I have tried alt-tabbing and it is not listed.

$ dmenu
# 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

Just installed for Arch Linux via dmenu-wayland-git and wld-git. I'm on Gnome Wayland.

FallingSnow avatar Dec 05 '17 18:12 FallingSnow

@FallingSnow Do you have a solution for Fedora?

Turgon-Aran-Gondolin avatar Nov 09 '18 18:11 Turgon-Aran-Gondolin

dmenu reads all its stdin before displaying a window. This is how it works on X11 too. Please try

printf '%s\n' foo bar | dmenu

If that doesn't work, a log with WAYLAND_DEBUG=1 would be appreciated.

michaelforney avatar Nov 10 '18 22:11 michaelforney

I have the same problem as well. The output for printf '%s\n' foo bar | dmenu is:

# 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

When running the command with WAYLAND_DEBUG=1 the output remains the same.

KubqoA avatar Nov 17 '18 20:11 KubqoA

WAYLAND_DEBUG=1 should definitely produce some extra output. Are you sure it is exported in your shell?

michaelforney avatar Nov 17 '18 20:11 michaelforney

Sorry, you are right my mistake. Here is the output with WAYLAND_DEBUG=1

[2692914.752]  -> [email protected]_registry(new id wl_registry@2)
[2692914.780]  -> [email protected](new id wl_callback@3)
[2692914.859] [email protected]_id(3)
[2692914.879] [email protected](1, "wl_shm", 1)
[2692914.892] [email protected](2, "zwp_linux_dmabuf_v1", 3)
[2692914.904] [email protected](3, "wl_drm", 2)
[2692914.920] [email protected](4, "wl_compositor", 4)
[2692914.940]  -> [email protected](4, "wl_compositor", 1, new id [unknown]@4)
[2692914.960] [email protected](5, "wl_subcompositor", 1)
[2692914.973] [email protected](6, "wl_data_device_manager", 3)
[2692914.990]  -> [email protected](6, "wl_data_device_manager", 1, new id [unknown]@5)
[2692915.008] [email protected](7, "gamma_control_manager", 1)
[2692915.024] [email protected](8, "zwlr_gamma_control_manager_v1", 1)
[2692915.039] [email protected](9, "gtk_primary_selection_device_manager", 1)
[2692915.053] [email protected](10, "zxdg_output_manager_v1", 2)
[2692915.066] [email protected](11, "org_kde_kwin_idle", 1)
[2692915.080] [email protected](12, "zwp_idle_inhibit_manager_v1", 1)
[2692915.093] [email protected](13, "zwlr_layer_shell_v1", 1)
[2692915.111] [email protected](14, "zxdg_shell_v6", 1)
[2692915.128] [email protected](15, "xdg_wm_base", 2)
[2692915.150] [email protected](16, "org_kde_kwin_server_decoration_manager", 1)
[2692915.169] [email protected](17, "zxdg_decoration_manager_v1", 1)
[2692915.188] [email protected](18, "zwlr_export_dmabuf_manager_v1", 1)
[2692915.205] [email protected](19, "zwlr_screencopy_manager_v1", 1)
[2692915.220] [email protected](20, "zwp_virtual_keyboard_manager_v1", 1)
[2692915.235] [email protected](21, "zwlr_input_inhibit_manager_v1", 1)
[2692915.248] [email protected](22, "wl_seat", 6)
[2692915.263]  -> [email protected](22, "wl_seat", 1, new id [unknown]@6)
[2692915.284] [email protected](23, "wl_output", 3)
[2692915.298] [email protected](24, "wl_output", 3)
[2692915.310] [email protected](19137)
[2692915.324]  -> [email protected]_registry(new id wl_registry@3)
[2692915.338]  -> [email protected](new id wl_callback@7)
[2692915.389] [email protected]_id(7)
[2692915.400] [email protected](1, "wl_shm", 1)
[2692915.417] [email protected](2, "zwp_linux_dmabuf_v1", 3)
[2692915.431] [email protected](3, "wl_drm", 2)
[2692915.448]  -> [email protected](3, "wl_drm", 2, new id [unknown]@8)
[2692915.475] [email protected](4, "wl_compositor", 4)
[2692915.494] [email protected](5, "wl_subcompositor", 1)
[2692915.513] [email protected](6, "wl_data_device_manager", 3)
[2692915.533] [email protected](7, "gamma_control_manager", 1)
[2692915.553] [email protected](8, "zwlr_gamma_control_manager_v1", 1)
[2692915.573] [email protected](9, "gtk_primary_selection_device_manager", 1)
[2692915.592] [email protected](10, "zxdg_output_manager_v1", 2)
[2692915.612] [email protected](11, "org_kde_kwin_idle", 1)
[2692915.631] [email protected](12, "zwp_idle_inhibit_manager_v1", 1)
[2692915.651] [email protected](13, "zwlr_layer_shell_v1", 1)
[2692915.672] [email protected](14, "zxdg_shell_v6", 1)
[2692915.693] [email protected](15, "xdg_wm_base", 2)
[2692915.712] [email protected](16, "org_kde_kwin_server_decoration_manager", 1)
[2692915.732] [email protected](17, "zxdg_decoration_manager_v1", 1)
[2692915.751] [email protected](18, "zwlr_export_dmabuf_manager_v1", 1)
[2692915.770] [email protected](19, "zwlr_screencopy_manager_v1", 1)
[2692915.790] [email protected](20, "zwp_virtual_keyboard_manager_v1", 1)
[2692915.811] [email protected](21, "zwlr_input_inhibit_manager_v1", 1)
[2692915.831] [email protected](22, "wl_seat", 6)
[2692915.853] [email protected](23, "wl_output", 3)
[2692915.873] [email protected](24, "wl_output", 3)
[2692915.892] [email protected](19137)
[2692915.903]  -> [email protected](new id wl_callback@7)
[2692915.941] [email protected]_id(7)
[2692915.950] [email protected]("/dev/dri/card0")
[2692915.980]  -> [email protected](4)
[2692915.990] [email protected](808669761)
[2692916.000] [email protected](808669784)
[2692916.010] [email protected](875713089)
[2692916.020] [email protected](875713112)
[2692916.029] [email protected](909199186)
[2692916.039] [email protected](961959257)
[2692916.049] [email protected](825316697)
[2692916.059] [email protected](842093913)
[2692916.068] [email protected](909202777)
[2692916.078] [email protected](875713881)
[2692916.088] [email protected](842094158)
[2692916.097] [email protected](909203022)
[2692916.106] [email protected](1448695129)
[2692916.116] [email protected](1)
[2692916.125] [email protected](19137)
[2692916.136]  -> [email protected](new id wl_callback@7)
[2692916.168] [email protected]_id(7)
[2692916.177] [email protected]()
[2692916.184] [email protected](19137)
# 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

I am using sway as my wayland compositor if that helps.

KubqoA avatar Nov 17 '18 21:11 KubqoA

Oh, I see. As far as I know, there is no standard wayland protocol for displaying surfaces that need to be docked on the edge of the screen. This version of dmenu uses the swc_panel_manager protocol I wrote for swc (https://github.com/michaelforney/swc/blob/master/protocol/swc.xml). If the compositor doesn't support that protocol, it just exits with status 1 (it should probably print an error message though, to avoid confusion).

To make this work with sway/wlroots, you will need to change it to use the wlr_layer_shell protocol: https://github.com/swaywm/wlroots/blob/master/protocol/wlr-layer-shell-unstable-v1.xml

michaelforney avatar Nov 17 '18 21:11 michaelforney

I assume that means I would have to modify the source of this project?

KubqoA avatar Nov 17 '18 21:11 KubqoA

Yes.

michaelforney avatar Nov 17 '18 21:11 michaelforney