You are not logged in.

#1 2012-11-18 21:00:19

burninate
Member
Registered: 2012-07-28
Posts: 22

Launch menu-app with right-clicking in DWM

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

#2 2012-11-22 22:47:54

netfun81
Member
Registered: 2008-07-20
Posts: 32

Re: Launch menu-app with right-clicking in DWM

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

#3 2012-11-22 23:04:07

illusionist
Member
From: localhost
Registered: 2012-04-03
Posts: 498

Re: Launch menu-app with right-clicking in DWM

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

Board footer

Powered by FluxBB