You are not logged in.

#1 2008-10-31 12:07:10

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

[dwm] configure XF86LaunchA to spawn something

hi, i've set up my thinkpad t42's ACCESS IBM button to produce "XF86LaunchA"

how can assign it to spawn urxvt with netcfg-menu in dwm?



thx 4 ur help


☃ Snowman ☃

Offline

#2 2008-10-31 14:33:11

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: [dwm] configure XF86LaunchA to spawn something

If you have other hotkeys you'd like to bind then you might be better off using xbindkeys--it's dead simple to configure and doesn't even require that the keys are assigned.  Otherwise, have a look at this thread:

http://lists.suckless.org/dwm/0701/1781.html

Basically you'll have to do something like this with your config.h:

#include <X11/XF86keysym.h> /* makes XF86* keys work */

/* commands */
static const char *netcfgcmd[]  = { "urxvt", "-e", "netcfg-menu", NULL };

static Key keys[] = {
    /* modifier                     key        function        argument */
    { 0,                       XF86XK_LaunchA,      spawn,          {.v = netcfgcmd } },

Haven't done this myself, so I can't confirm it'll work in the current version, but several older threads report success.

Last edited by thayer (2008-10-31 14:43:36)


thayer williams ~ cinderwick.ca

Offline

#3 2008-10-31 15:27:02

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [dwm] configure XF86LaunchA to spawn something

I use XF86 keysyms in my config.h.  The include above works.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#4 2008-11-01 17:50:37

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: [dwm] configure XF86LaunchA to spawn something

XF86XK_LaunchA


thats what i was looking for big_smile
thx


☃ Snowman ☃

Offline

Board footer

Powered by FluxBB