From mboxrd@z Thu Jan 1 00:00:00 1970 X-Received: by 10.50.82.100 with SMTP id h4mr14584591igy.9.1438008824666; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) X-BeenThere: voidlinux@googlegroups.com Received: by 10.107.130.211 with SMTP id m80ls1837517ioi.33.gmail; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) X-Received: by 10.107.136.230 with SMTP id s99mr28940559ioi.13.1438008824423; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) Return-Path: Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com. [2607:f8b0:4003:c06::236]) by gmr-mx.google.com with ESMTPS id rs3si759781igb.2.2015.07.27.07.53.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 07:53:44 -0700 (PDT) Received-SPF: pass (google.com: domain of use...@gmail.com designates 2607:f8b0:4003:c06::236 as permitted sender) client-ip=2607:f8b0:4003:c06::236; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of use...@gmail.com designates 2607:f8b0:4003:c06::236 as permitted sender) smtp.mail=use...@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Authentication-Results: mx.google.com; dkim=pass head...@gmail.com Received: by mail-oi0-x236.google.com with SMTP id d21so52557521oig.1 for ; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PewWkOJbbOGk7W4wGlyVfeXuotngyg1vVK1tFyPex5o=; b=gifWaIrmFbYqUHhqSEQSoRjG1LidiE9zFqAD0QCNf6JYLEN45YMDE8Q8lluNv+pPyq 967MqTIB80sVfFzwa5ZqSDhg+XuPDgAd71Aqu7tVaqL2riJaUlTZoVsp60c5uiLpNXFi YgTwIrskcX02kxVnqxR3n/r7YKpp+cQ4F0Rg+8RSdVehjXqnmdusZafpP0vQVpUU9UXy kQcxlBRnha4X/D8oRbxj1QLVxXJ33iqKZcaENzkygNIccFnQ1ZiBzkDwXnSP1c3tuwn0 kb+Iilr/jdOGY3egPzHj2NY3+CiuymUeYOlB2VHWIgXmNQ5agbHP7xbqosQGIGkqhweD uo/w== MIME-Version: 1.0 X-Received: by 10.202.77.144 with SMTP id a138mr27314002oib.32.1438008824274; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) Received: by 10.202.175.211 with HTTP; Mon, 27 Jul 2015 07:53:44 -0700 (PDT) In-Reply-To: <4c1df5bf-d772-406a-8e06-10658a0244ce@googlegroups.com> References: <4c1df5bf-d772-406a-8e06-10658a0244ce@googlegroups.com> Date: Mon, 27 Jul 2015 09:53:44 -0500 Message-ID: Subject: Re: dwm using just the F keys for keyboard shortcuts From: Userx Xbw To: voidlinux Content-Type: multipart/alternative; boundary=001a11c1806e27a330051bdc8535 --001a11c1806e27a330051bdc8535 Content-Type: text/plain; charset=UTF-8 solved add #include and make it XK_F2 in config.h On Mon, Jul 27, 2015 at 8:56 AM, Userx Xbw wrote: > in i3 I can use just an F Key (ie f2) and asign it to a shotcut to start > an application -- when using the same metholid in dwm it's not working, I > have yet to find any documentaion on this. what syntex to use for F keys > > this is what i am doing > > in i3 config it's as easy as this > > bindsym F2 exec --no-startup-id terminology > > in DWM wm this is what I used, but it is not accepting the syntex a simple > F2 > > static const Rule rules[] = { > /* class instance title tags mask isfloating > monitor */ > > { "terminology", NULL, 0, True, -1 > }, > > > > }; > > ... > > static const char *terminologycmd[] = {"terminology", NULL}; > > > ....... > { SUPKEY, F2, spawn, {.v = > terminologycmd }}, > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "voidlinux" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/voidlinux/tAZD1t1Dy2k/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > voidlinux+...@googlegroups.com. > To post to this group, send email to void...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/voidlinux/4c1df5bf-d772-406a-8e06-10658a0244ce%40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > --001a11c1806e27a330051bdc8535 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
solved

add
#include <X11= /XF86keysym.h>

and make it XK_F2

in config.h =

On Mon,= Jul 27, 2015 at 8:56 AM, Userx Xbw <use...@gmail.com> wrote:=
in i3 I can use just an= F Key (ie f2) and asign it to a shotcut to start an application -- when us= ing the same metholid in dwm it's not working, I have yet to find any d= ocumentaion on this. what syntex to use for F keys

=C2=A0this is wh= at i am doing

in i3 config it's as easy as this

bindsym = F2=C2=A0 exec --no-startup-id terminology

in DWM wm this is what I u= sed, but it is not accepting the syntex a simple F2

static const Ru= le rules[] =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* class=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 instance=C2=A0=C2=A0=C2=A0 title=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 tags mask=C2=A0=C2=A0=C2=A0=C2=A0 isfloating=C2=A0=C2= =A0 monitor */
=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 { &q= uot;terminology", NULL,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 True,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= -1 },



};

...

static const char *terminologycm= d[] =3D {"terminology", NULL};


.......
{ SUPKEY,=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 F2,=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 spawn,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 {.v =3D terminologycmd }},


--
You received this message because you are subscribed to a topic in the Goog= le Groups "voidlinux" group.
To unsubscribe from this topic, visit https://groups= .google.com/d/topic/voidlinux/tAZD1t1Dy2k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to voidlinux+...@= googlegroups.com.
To post to this group, send email to void...@googlegroups.com.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/voidlinux/4c1df5bf-d772-406a-8e06-10658a0244ce%40goo= glegroups.com.
For more options, visit https://groups.google.com/d/optout.

--001a11c1806e27a330051bdc8535--