You are not logged in.
I'd like to be able to right-click inside dwm, as in a regular desktop environment setup, and launch the menu-app mygtkmenu. I know it's possible to bind a keyboard shortcut to run it, but i'd rather use the mouse for that. Are there any patches for dwm or perhaps applications to emulate this feature?
Any tips are appreciated.
Last edited by burninate (2012-11-18 23:49:53)
Offline
The easiest thing to do is to make a right click on the clock or status text launch your program, such as:
static const char *mymenucmd[] = { "mygtkmenu", NULL };
{ ClkStatusText, 0, Button3, spawn, {.v = mymenucmd } },
Or you can have a middle click on the client window launch your program:
static const char *mymenucmd[] = { "mygtkmenu", NULL };
{ ClkClientWin, 0, Button2, spawn, {.v = mymenucmd } },
DWM has pretty good mouse support built in.
Last edited by netfun81 (2012-11-22 22:55:41)
Offline
If you want to spawn on so called "desktop" use ClkRootWin.
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline