You are not logged in.

#1 2014-05-25 21:34:21

marko2010
Member
Registered: 2010-04-17
Posts: 70

finding Dmenu's window class?

Normally I would simply run xprop in a terminal and click on the window in question with the cross hairs. However, for the dmenu  "window" this procedure yields no result. Any idea how I could find dmenu window class so I can style and position it using devilspie2?

I already tried a few obvious guesses for dmenu's window class. "Dmenu_run," "dmenu" and "Dmenu" don't work.

Last edited by marko2010 (2014-05-25 21:35:00)

Offline

#2 2014-05-25 21:48:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: finding Dmenu's window class?

dmenu does not set these properties.

What are you trying to change with devilspie?  You know dmenu can be configured for most things you'd want to change?

If you need to use devilspie, you could just add a resource class declaration to the dmenu code and recompile.

Just add the following 5 lines at line 609 in dmenu.c (changing a_name and a_class to be whatever you want them to be):

    XClassHint *hint = XAllocClassHint();
    hint->res_name = "a_name";                                              
    hint->res_class = "a_class";                                       
    XSetClassHint(dc->dpy, win, hint);
    XFree(hint);

Last edited by Trilby (2014-05-25 21:53:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-05-26 15:12:40

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: finding Dmenu's window class?

use dmenu2 from aur. it comes with an option to set class


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2014-05-26 18:46:50

cju
Member
Registered: 2013-06-23
Posts: 194

Re: finding Dmenu's window class?

… I had basicly the same problem over here https://bbs.archlinux.org/viewtopic.php?id=179618, tl;dr: Follow Rasi's advice. smile

Offline

Board footer

Powered by FluxBB