You are not logged in.
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
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
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
… I had basicly the same problem over here https://bbs.archlinux.org/viewtopic.php?id=179618, tl;dr: Follow Rasi's advice. ![]()
Offline