[SOLVED]dwm warning: 'XKeycodeToKeysym' is deprecated

While compiling dwm using PKGBUILD i am getting this warning any work around please.
==> Starting build()...
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA -I/usr/include/freetype2
LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama -lXft -lfreetype
CC = cc
CC dwm.c
dwm.c: In function 'keypress':
dwm.c:1087:2: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1699) [-Wdeprecated-declarations]
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
^
CC -o dwm
==> Entering fakeroot environment...
==> Starting package()...
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA -I/usr/include/freetype2
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -lXft -lfreetype
Last edited by arcon (2013-06-09 14:25:15)

Vain wrote:
It's harmless. In fact, upstream simply muted the warning:
http://git.suckless.org/dwm/commit/?id= … 0b433ce552
Thanks Vain
Trilby wrote:If you want to be proactive, you can patch to replace it with XKbKeycodeToKeysym which is what is has been deprecated in favor of.  Be sure then that X11/XKBlib.h is included.
Thanks a lot Trilby, patch did work.
And it was awesome because it was my first patch, but the thing is i didn't quite understand what this is saying https://wiki.archlinux.org/index.php/Patching_in_ABSin creating patches section.
i just placed
patch -Np1 -i dwm.diff
in PKGBUID and it did work  but what i didn't understand, is that
i created two dir one with dwm.old and dwm.new and i through commandline patched
patch -i dwm.diff
dwm.c
Now, when i did
diff -aur dwm.old dwm.new
it is giving me weird stuff like:
WSì@h}¼ó«}¼ÇE¼ÇEäÇEìÛtn°kPWh
+ÝØÝØëÝØÝØÒt +uÔ+,0ÀEÌð÷}Ì)Ö4ÀEÌÈ÷}Ì)ÑEÐuÔ9ÆLðD,9ÁLÈ8Àt9ÆOð<Àt9ÁOÈ;u-EØ;
u";³u▒;uë)+uÔ1Ò+,é´þÿÿM
MØúÄ(Ø[^_]éÈüÿÿÄ([^_]ÃU1ÒåWVSì
CXÀt!tq@L±H#PlùÚÿëÛÒtPPRhjjjSèüÿÿÿÄ CXèêøÿÿÆöt3kHþWK4S0j{<ÇWC8Pðèæüÿÿlè¸øÿÿÄÆëÉeô[^_]ÃUåWVSì<GXèøÿÿÇEÌÃÀtlè}øÿÿÿEÌëìMÌÉ#G9Áv3ÀÇEÔt.ÛG8Ù]äÙEäØOÙ}âfEâÌ
fEàÙmàß}ØÙmâEØëG8EÔÇEÄÇEÈÇEÐÛÆWG09UгHO4EÀsKkÆþuÈE¼ñPjG<)ðuÌ9ÖFÖÖ1Ò+uÐ÷öu¼UÀðuÔPØVèäûÿÿHÀEÈëLPEÀEÔjUÄköþEÀG<Ñ)ÐUÌ+UÐU¼1Ò÷u¼UÀðPØw8+uÔVèûÿÿHÀEÄlÄèT÷ÿÿÿEÐÃé2ÿÿÿeô[^_]ÃUåì$MðQMìQQRPEôPPÿ5`ÿ5°èüÿÿÿÉÃUåPPShèøÿÿEì]üÉÃU¹å1ÀWSì@h}¼ó«}¼ÇE¼ÇEäÇEìÛtn°kPWh
ÿp(jÿp$jÿ5øÿs8ÿsÿs0ÿ5`RèüÿÿÿÄ,Chÿ5´Pÿ5°èüÿÿÿXZÿshÿ5°èüÿÿÿ[dÄëeø[_]ÃUùåVÆSÓRÀàüÿÿ5ÿ5°èüÿÿÿ¡¹ ÄÀ÷ùöt+@SPP¡p@P¡l@Pÿ5ÿ5ÿ5°èüÿÿÿë,Ût+QPP¡p@P¡l@Pÿ5ÿ5ÿ5°èüÿÿÿÄ eø[^]ÃUåVÆSSSÿ°xÿ5°èüÿÿÿÄÀÃtf¡d;p\u"öÄtäþQSÿ¶xÿ5°èüÿÿÿÄë
Áà\öt1À{À`ë
-Ç`ì
I don't know what it is, Please if you tell me what i am doing wrong.

Similar Messages

  • [SOLVED] dwm Compiling Error

    Hello,
    I am running dwm, and I love how simple and light it is. I edited my config.h few times and compiled it and it was fine. The last time I tried, it gave me an error. I could not figure that out. I tried to use a valid config.h from the internet in case I missed my config.h up, and I tried to re-install it. Nothing worked. This is the error that I get when I run the command makepkg -efi --noconfirm:
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -D_FORTIFY_SOURCE=2 -DVERSION="6.0" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    In file included from dwm.c:288:0:
    config.h:18:19: error: ‘MAXTAGLEN’ undeclared here (not in a function)
    const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "w" };
    ^
    In file included from dwm.c:288:0:
    config.h: In function ‘focusstackf’:
    config.h:132:9: error: ‘sel’ undeclared (first use in this function)
    if(!sel)
    ^
    config.h:132:9: note: each undeclared identifier is reported only once for each function it appears in
    config.h:134:8: error: ‘lt’ undeclared (first use in this function)
    if(lt[sellt]->arrange) {
    ^
    config.h:134:11: error: ‘sellt’ undeclared (first use in this function)
    if(lt[sellt]->arrange) {
    ^
    config.h:138:25: error: ‘clients’ undeclared (first use in this function)
    for(c = clients; c && (!ISVISIBLE(c) || c->isfloating == sel->isfloating); c = c->next);
    ^
    config.h:152:9: error: too few arguments to function ‘restack’
    restack();
    ^
    dwm.c:213:13: note: declared here
    static void restack(Monitor *m);
    ^
    In file included from dwm.c:288:0:
    config.h: In function ‘setltor1’:
    config.h:162:16: error: ‘lt’ undeclared (first use in this function)
    setlayout((lt[sellt] == arg->v) ? &a : arg);
    ^
    config.h:162:19: error: ‘sellt’ undeclared (first use in this function)
    setlayout((lt[sellt] == arg->v) ? &a : arg);
    ^
    config.h: In function ‘toggletorall’:
    config.h:169:8: error: ‘sel’ undeclared (first use in this function)
    if(sel && ((arg->ui & TAGMASK) == sel->tags)) {
    ^
    config.h: In function ‘togglevorall’:
    config.h:181:8: error: ‘sel’ undeclared (first use in this function)
    if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
    ^
    config.h:181:39: error: ‘tagset’ undeclared (first use in this function)
    if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
    ^
    config.h:181:46: error: ‘seltags’ undeclared (first use in this function)
    if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
    ^
    config.h: In function ‘vieworprev’:
    config.h:193:34: error: ‘tagset’ undeclared (first use in this function)
    view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
    ^
    config.h:193:41: error: ‘seltags’ undeclared (first use in this function)
    view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
    ^
    config.h: In function ‘warptosel’:
    config.h:200:8: error: ‘sel’ undeclared (first use in this function)
    if(sel)
    ^
    config.h: In function ‘zoomf’:
    config.h:208:8: error: ‘sel’ undeclared (first use in this function)
    if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
    ^
    config.h:208:16: error: ‘lt’ undeclared (first use in this function)
    if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
    ^
    config.h:208:19: error: ‘sellt’ undeclared (first use in this function)
    if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
    ^
    config.h: At top level:
    config.h:213:2: error: expected identifier or ‘(’ before ‘{’ token
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    ^
    config.h:213:78: error: expected identifier or ‘(’ before ‘,’ token
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    ^
    config.h:214:78: error: expected identifier or ‘(’ before ‘,’ token
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    ^
    config.h:215:78: error: expected identifier or ‘(’ before ‘,’ token
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    ^
    config.h:216:78: error: expected identifier or ‘(’ before ‘,’ token
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    ^
    config.h:222:145: warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic]
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    ^
    config.h:223:20: error: redefinition of ‘termcmd’
    static const char *termcmd[] = { "uxterm", NULL };
    ^
    config.h:63:20: note: previous definition of ‘termcmd’ was here
    static const char *termcmd[] = { "uxterm", NULL };
    ^
    config.h:225:12: error: redefinition of ‘keys’
    static Key keys[] = {
    ^
    config.h:65:12: note: previous definition of ‘keys’ was here
    static Key keys[] = {
    ^
    config.h:264:15: error: redefinition of ‘buttons’
    static Button buttons[] = {
    ^
    config.h:96:15: note: previous definition of ‘buttons’ was here
    static Button buttons[] = {
    ^
    dwm.c: In function ‘createmon’:
    dwm.c:654:15: error: ‘nmaster’ undeclared (first use in this function)
    m->nmaster = nmaster;
    ^
    dwm.c: In function ‘keypress’:
    dwm.c:1087:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
    keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
    ^
    In file included from dwm.c:288:0:
    dwm.c: At top level:
    config.h:15:13: warning: ‘readin’ defined but not used [-Wunused-variable]
    static Bool readin = True; /* False means do not read stdin */
    ^
    In file included from dwm.c:288:0:
    config.h:65:12: warning: ‘keys’ defined but not used [-Wunused-variable]
    static Key keys[] = {
    ^
    config.h:96:15: warning: ‘buttons’ defined but not used [-Wunused-variable]
    static Button buttons[] = {
    ^
    make: *** [dwm.o] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    And this is my config.h
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-terminus-bold-r-normal-*-14-*-*-*-*-*-*-*";
    static const char normbordercolor[] = "#cccccc";
    static const char normbgcolor[] = "#eeeeee";
    static const char normfgcolor[] = "#000000";
    static const char selbordercolor[] = "#0066ff";
    static const char selbgcolor[] = "#eeeeee";
    static const char selfgcolor[] = "#0066ff";
    static unsigned int borderpx = 3; /* border pixel of windows */
    static unsigned int snap = 32; /* snap pixel */
    static Bool showbar = True; /* False means no bar */
    static Bool topbar = True; /* False means bottom bar */
    static Bool readin = True; /* False means do not read stdin */
    /* tagging */
    const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "w" };
    static Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "acme", NULL, NULL, 1 << 2, False, -1 },
    { "Acroread", NULL, NULL, 0, True, -1 },
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "GQview", NULL, NULL, 0, True, -1 },
    { "MPlayer", NULL, NULL, 0, True, -1 },
    { "Navigator", NULL, NULL, 1 << 5, False, -1 },
    /* layout(s) */
    static float mfact = 0.65;
    static Bool resizehints = False; /* False means respect size hints in tiled resizals */
    static Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "< >", NULL }, /* no layout function means floating behavior */
    { "[ ]", monocle },
    /* custom functions declarations */
    static void focusstackf(const Arg *arg);
    static void setltor1(const Arg *arg);
    static void toggletorall(const Arg *arg);
    static void togglevorall(const Arg *arg);
    static void vieworprev(const Arg *arg);
    static void warptosel(const Arg *arg);
    static void zoomf(const Arg *arg);
    /* key definitions */
    #define MODKEY Mod1Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, vieworprev, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, togglevorall, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletorall, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "uxterm", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstackf, {.i = +1 } },
    { MODKEY, XK_j, warptosel, {0} },
    { MODKEY, XK_k, focusstackf, {.i = -1 } },
    { MODKEY, XK_k, warptosel, {0} },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoomf, {0} },
    { MODKEY, XK_Return, warptosel, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_space, setltor1, {.v = &layouts[0]} },
    { MODKEY|ShiftMask, XK_space, setltor1, {.v = &layouts[2]} },
    { MODKEY, XK_0, vieworprev, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_w, 5)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can ClkTagBar, ClkTagButton,
    * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setltor1, {.v = &layouts[0]} },
    { ClkLtSymbol, 0, Button2, setmfact, {.f = 1.65} },
    { ClkLtSymbol, 0, Button3, setltor1, {.v = &layouts[2]} },
    { ClkLtSymbol, 0, Button4, setmfact, {.f = +0.05} },
    { ClkLtSymbol, 0, Button5, setmfact, {.f = -0.05} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkStatusText, Button3Mask, Button1, killclient, {0} },
    { ClkWinTitle, 0, Button1, warptosel, {0} },
    { ClkWinTitle, 0, Button1, movemouse, {0} },
    { ClkWinTitle, 0, Button2, zoomf, {0} },
    { ClkWinTitle, 0, Button3, resizemouse, {0} },
    { ClkWinTitle, 0, Button4, focusstackf, {.i = -1 } },
    { ClkWinTitle, 0, Button5, focusstackf, {.i = +1 } },
    { ClkRootWin, 0, Button1, warptosel, {0} },
    { ClkRootWin, 0, Button1, movemouse, {0} },
    { ClkRootWin, 0, Button3, resizemouse, {0} },
    { ClkRootWin, 0, Button4, focusstackf, {.i = -1 } },
    { ClkRootWin, 0, Button5, focusstackf, {.i = +1 } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, zoomf, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, vieworprev, {0} },
    { ClkTagBar, 0, Button3, togglevorall, {0} },
    { ClkTagBar, 0, Button4, focusstackf, {.i = -1 } },
    { ClkTagBar, 0, Button5, focusstackf, {.i = +1 } },
    { ClkTagBar, Button2Mask, Button1, tag, {0} },
    { ClkTagBar, Button2Mask, Button3, toggletorall, {0} },
    /* custom functions */
    void
    focusstackf(const Arg *arg) {
    Client *c = NULL, *i;
    if(!sel)
    return;
    if(lt[sellt]->arrange) {
    if (arg->i > 0) {
    for(c = sel->next; c && (!ISVISIBLE(c) || c->isfloating != sel->isfloating); c = c->next);
    if(!c)
    for(c = clients; c && (!ISVISIBLE(c) || c->isfloating == sel->isfloating); c = c->next);
    else {
    for(i = clients; i != sel; i = i->next)
    if(ISVISIBLE(i) && i->isfloating == sel->isfloating)
    c = i;
    if(!c)
    for(i = sel; i; i = i->next)
    if(ISVISIBLE(i) && i->isfloating != sel->isfloating)
    c = i;
    if(c) {
    focus(c);
    restack();
    else
    focusstack(arg);
    void
    setltor1(const Arg *arg) {
    Arg a = {.v = &layouts[1]};
    setlayout((lt[sellt] == arg->v) ? &a : arg);
    void
    toggletorall(const Arg *arg) {
    Arg a;
    if(sel && ((arg->ui & TAGMASK) == sel->tags)) {
    a.ui = ~0;
    tag(&a);
    else
    toggletag(arg);
    void
    togglevorall(const Arg *arg) {
    Arg a;
    if(sel && ((arg->ui & TAGMASK) == tagset[seltags])) {
    a.ui = ~0;
    view(&a);
    else
    toggleview(arg);
    void
    vieworprev(const Arg *arg) {
    Arg a = {0};
    view(((arg->ui & TAGMASK) == tagset[seltags]) ? &a : arg);
    void
    warptosel(const Arg *arg) {
    XEvent ev;
    if(sel)
    XWarpPointer(dpy, None, sel->win, 0, 0, 0, 0, 0, 0);
    XSync(dpy, False);
    while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    void
    zoomf(const Arg *arg) {
    if(sel && (lt[sellt]->arrange != tile || sel->isfloating))
    togglefloating(NULL);
    else
    zoom(NULL);
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "uxterm", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_i, incnmaster, {.i = +1 } },
    { MODKEY, XK_d, incnmaster, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    Any suggestions?
    Last edited by husainaloos (2013-05-07 16:31:16)

    No, you were not missing "some graphical libraries that you didn't incluce in the config.h file". It looks like, as jasonwryan said, you copied functions into your config.h without checking how they work. Thus, you ended up having functions that use variables you never define in config.h (and there's alot of those!)
    Next time, either stick to already working patches found at suckless.org, or give some effort and at least try to figure out what is wrong with the code you randomly copied.

  • [solved]DWM apply systray patch

    [solved]I am trying to appply the systray6.1 patch to dwm. The "patch" goes fine but when I make I get the below errors:
        dwm build options:
        CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2     -DVERSION="6.1" -DXINERAMA
        LDFLAGS  = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
        CC       = cc
        CC drw.c
        CC dwm.c
        dwm.c: In function ‘clientmessage’:
        dwm.c:589:26: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’
        swa.background_pixel  = scheme[SchemeNorm].bg->rgb;
                              ^
        dwm.c: In function ‘updatesystray’:
        dwm.c:2221:18: error: incompatible type for argument 9 of ‘XCreateSimpleWindow’
       systray->win = XCreateSimpleWindow(dpy, root, x, m->by, w, bh, 0, 0, scheme[SchemeSel].bg->rgb);
                      ^
        In file included from dwm.c:36:0:
        /usr/include/X11/Xlib.h:1621:15: note: expected ‘long unsigned int’ but argument is of type ‘XftColor’
        extern Window XCreateSimpleWindow(
                   ^
        dwm.c:2224:24: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’
        wa.background_pixel  = scheme[SchemeNorm].bg->rgb;
                            ^
        dwm.c:2244:24: error: incompatible types when assigning to type ‘long unsigned int’ from type ‘XftColor’
        wa.background_pixel  = scheme[SchemeNorm].bg->rgb;
                            ^
        dwm.c:2263:2: error: incompatible type for argument 3 of ‘XSetForeground’
        XSetForeground(dpy, drw->gc, scheme[SchemeNorm].bg->rgb);
        ^
        In file included from dwm.c:36:0:
        /usr/include/X11/Xlib.h:3227:12: note: expected ‘long unsigned int’ but argument is of type ‘XftColor’
         extern int XSetForeground(
                ^
        Makefile:18: recipe for target 'dwm.o' failed
        make: *** [dwm.o] Error 1
    I haven't applied any other patches. Any idea what I am doing wrong? I can go into dwm.c and see the lines the error is refering to but I am not sure what the problem is.
    Thanks
    Last edited by derrickcope (2015-05-01 02:30:45)

    I just got the latest one off of the repo at git.suckless.org/dwm. the page says 6.0 but my config.mk says version 6.1. I did try the 6.0 version but the patch had errors. I am a little confused. The other patches come back with errors too. I am using an unpatched version at the moment so I would think most patches should work.
    What should I do?

  • [SOLVED] dwm Recompile Difficulty

    I am currently running dwm. I followed the abs intall method from the ArchWiki, but have run into trouble when I attempt to make changes to the config.h and recompile. If I make a single simple change to config.h (ex. change the value of "static const char ...color" or "static unsigned int borderpx") I do not notice any change in dwm upon restarting it.
    [filam@lotte dwm]$ makepkg -efi
    ==> Making package: dwm 5.3-1 i686 (Tue Dec 30 11:47:02 EST 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> WARNING: Skipping source retrieval -- using existing src/ tree
    ==> WARNING: Skipping source integrity checks -- using existing src/ tree
    ==> WARNING: Skipping source extraction -- using existing src/ tree
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.3"
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11
    CC = cc
    CC dwm.c
    CC -o dwm
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -DVERSION="5.3"
    LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11
    CC = cc
    installing executable file to /home/filam/dwm/pkg/usr/bin
    installing manual page to /home/filam/dwm/pkg/usr/share/man/man1
    ==> Tidying install...
    -> Compressing man pages...
    -> Stripping debugging symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Adding install script...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: dwm 5.3-1 i686 (Tue Dec 30 11:47:04 EST 2008)
    ==> Installing package dwm with pacman -U...
    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
    Password:
    filam is not in the sudoers file. This incident will be reported.
    As a reletively new end-user I can imagine I have made some simple mistake, but just can't imagine what that might be.
    Last edited by filam (2008-12-30 16:57:29)

    Thanks for the help lake.
    string wrote:You need root privs to install packages but you don't need them in order to create packages. You are running `makepkg -efi` which will try to install the package after its creation. The solution is simple, first create the package as a regular user via `makepkg -ef` (the `i` flag has been stripped), then, log in as root and run `pacman -U /full/path/to/your/newly/created/package`.
    Thanks string. Perfect explanation. This solution was exactly what I was looking for. Worked like a charm.

  • [Solved] makepkg warning about unknown key

    Hello,
    when compiling cower 7-1 a strange warning was given by makepkg.
    ==> Verifying source file signatures with gpg...
    cower-7.tar.gz ... FAILED (unknown public key 1EB2638FF56C0C53)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    EDIT: The warning is shown due to signature files attached to the package. It can be solved for packages made by archlinux devs:
    - run as user
    "# gpg --list-keys"
      in order to create a gpg database for your current user, if it is not present already.
    - add
    "keyring /etc/pacman.d/gnupg/pubring.gpg"
      to the end of
    ~/.gnupg/gpg.conf.
    WorMzy wrote:Alternatively, run makepkg with --skippgpcheck to stop makepkg trying to validate the file with it's .sig file.
    Last edited by teateawhy (2012-11-06 16:22:30)

    teateawhy wrote:The error will occur only for aur Packagebuilds created by arch linux developers, because of present keys.
    Mmm, not quite. You'll have the same problem with any PKGBUILD that has an unknown signature, not just AUR packages by the Arch devs.
    The warning (it's not really an error) is coming up because the source tarball's signature is included in the source array:
    source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
    That's a lazyman's way of writing:
    source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.gz"
    "https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.gz.sig")
    makepkg is smart enough to know that .sig files are used to check the authenticy and integrity of it's namesake file, and so automagically runs a gpg check for you. At this point, since you're running makepkg as yourself, gpg is run as you, and uses your ~/.gnupg/pubring.gpg, which I assume doesn't have Dave's key in it. ('gpg --list-keys' would no doubt confirm that).
    A quick fix for Arch dev packages would be to add "keyring /etc/pacman.d/gnupg/pubring.gpg" to the end of ~/.gnupg/gpg.conf.
    Alternatively, run makepkg with --skippgpcheck to stop makepkg trying to validate the file with it's .sig file.

  • [SOLVED] DWM+pertag+bstack error

    hi
    i'm trying to compile dwm with pertag diff patch and bstack.c
    i get an error while compiling it:
    CC dwm.c
    In file included from config.h:42,
    from dwm.c:254:
    bstack.c: En la función 'bstack':
    bstack.c:7: error: puntero deferenciado a tipo de dato incompletoº
    bstack.c:11:error:puntero..
    make: *** [dwm.o] Error 1
    ==> ERROR: Falló la compilación.ª
    Abortando...
    º means: dereference pointer to incomplete data type
    ª means: Compilation failed.
    it sucks 'cos i want to read pdf on top of my 10" screen and write documents at bottom, without the problem of change to another desktop and have to move to another layout, i.e., floating for gimp
    another thing: for write this post i must to write the code manually, 'cos a don't know how to copy from urxvt and paste it to firefox.. yep, that's a newbie question
    Edit: solved here
    Last edited by kismet010 (2010-02-08 05:51:09)

    Looks like this workaround isn't enough to get it to compile on the latest hg clone.
    dwm build options:
    CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8" -DXINERAMA
    LDFLAGS = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
    CC = cc
    CC dwm.c
    dwm.c: In function 'gaplessgrid':
    dwm.c:262: error: dereferencing pointer to incomplete type
    dwm.c:276: error: dereferencing pointer to incomplete type
    dwm.c:276: error: dereferencing pointer to incomplete type
    dwm.c:279: error: dereferencing pointer to incomplete type
    dwm.c:282: error: dereferencing pointer to incomplete type
    dwm.c:282: error: dereferencing pointer to incomplete type
    dwm.c:283: error: dereferencing pointer to incomplete type
    dwm.c:284: error: dereferencing pointer to incomplete type
    make: *** [dwm.o] Error 1
    Line 262 for me is:
    for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next))
    I've tried many things and maybe i'm missing something very simple here.

  • [SOLVED] dwm: cannot open mixer

    I've been setting up dwm through the last hours and I had an issue with sound playback. Firstly, I can play any sound from the console or any other wm. The problem appears when I start dwm by using xinit but loading it through gdm seems to solve the problem but still I'm not satisfied with that solution. I think that gdm do something in order to grant access to the sound card but on the other hand I still have another problem with multiple running applications that playback sound, only the first opened application can.
    After starting dwm with xinit I get "amixer: Mixer attach default error: No such file or directory" and by running alsamixer I get "cannot open mixer: No such file or directory".
    Thanks in advance
    Last edited by russo (2011-06-20 04:01:15)

    Well, I checked those posts.
    /dev/mixer exists
    I tried to load the snd-pcm-oss but nothing changed.
    However I noticed that I can run alsamixer as root. I'm not sure but maybe having to run gdm as root while running xinit as user made the difference but still it doesn't make sense since I can run openbox with xinit and everything works fine. I'll keep trying
    EDIT: Finally, I tried to load openbox through xinit and had the same problem. Next I tried to reboot removing gdm from the daemons and start dwm directly with the xinitrc options. Now it seems to work fine. Maybe gdm blocked the sound card once it opened.
    Last edited by russo (2011-06-20 04:00:56)

  • [Solved] DWM and extra key's.

    Hello.
    I'm using DWM and now I have new keyboard with extra kyes Audio Mute, Raise or Lower volume you know
    I tried:
    showkey
    And I have my key in .Xmodmap , I typed:
    /path/to/.Xmodmap
    and all was ok
    And typed xmodmap and my keys was in mod4 section , this is the output of xmodmap:
    xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
    shift Shift_L (0x32), Shift_R (0x3e)
    lock Caps_Lock (0x42)
    control Control_L (0x25), Control_R (0x6d)
    mod1 Alt_L (0x40), Meta_L (0x9c)
    mod2 Num_Lock (0x4d)
    mod3
    mod4 XF86AudioRaiseVolume (0x73), XF86AudioRaiseVolume (0x74), Super_L (0x7f), Hyper_L (0x80)
    mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x71), ISO_Level3_Shift (0x7c)
    Now I care to play with config.h of my DWM.
    Here is part of it:
    { MODKEY, XF86AudioRaiseVolume, spawn, SHCMD("exec mpc volume -5")}
    And when I tried to compile it with that config I got following errors:
    In file included from dwm.c:271:
    config.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Key'
    config.h:65: warning: ISO C does not allow extra ';' outside of a function
    config.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Button'
    config.h:80: warning: ISO C does not allow extra ';' outside of a function
    dwm.c: In function 'buttonpress':
    dwm.c:440: error: 'buttons' undeclared (first use in this function)
    dwm.c:440: error: (Each undeclared identifier is reported only once
    dwm.c:440: error: for each function it appears in.)
    dwm.c: In function 'grabbuttons':
    dwm.c:929: error: 'buttons' undeclared (first use in this function)
    dwm.c: In function 'grabkeys':
    dwm.c:952: error: 'keys' undeclared (first use in this function)
    dwm.c: In function 'keypress':
    dwm.c:1020: error: 'keys' undeclared (first use in this function)
    make: *** [dwm.o] Errpr 1
    And building stop's :(
    Is someone use extra keys with DWM.
    Thanks for any help
    Last edited by SpeedVin (2009-08-12 18:33:25)

    SpeedVin wrote:
    Tillotson wrote:/* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*";
    static const char normbordercolor[] = "#C7C7C7";
    static const char normbgcolor[] = "#000000";
    static const char normfgcolor[] = "#888888";
    static const char selbordercolor[] = "#1793D1";
    static const char selbgcolor[] = "#000000";
    static const char selfgcolor[] = "#FFFFFF";
    static unsigned int borderpx = 1; /* border pixel of windows */
    static unsigned int snap = 32; /* snap pixel */
    static Bool showbar = True; /* False means no bar */
    static Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static Rule rules[] = {
    /* class instance title tags mask isfloating */
    { "Thunar", NULL, NULL, 0, True },
    { "VirtualBox", NULL, NULL, 0, True },
    { "MPlayer", NULL, NULL, 0, True },
    { "Vlc", NULL, NULL, 0, True },
    { "XCalc", NULL, NULL, 0, True },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const Bool resizehints = True; /* False means respect size hints in tiled resizals */
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "[]=", tile }, /* first entry is default */
    { "><>", NULL }, /* no layout function means floating behavior */
    { "[M]", monocle },
    /* key definitions */
    #define MODKEY Mod4Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
    /* helper for spawning shell commands in the pre dwm-5.0 fashion */
    #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
    /* commands */
    static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
    static const char *termcmd[] = { "urxvtc", NULL };
    static const char *browsercmd[] = { "firefox", NULL };
    static const char *musiccmd[] = { "urxvtc", "-e", "ncmpcpp", NULL };
    static const char *talkcmd[] = { "urxvtc", "-e", "weechat-curses", NULL };
    static const char *shutcmd[] = { "sudo", "shutdown", "-h", "now", NULL };
    static const char *filebrowse[] = { "thunar", NULL };
    static const char *mutecmd[] = { "amixer", "-q", "sset", "Master", "toggle", NULL };
    static const char *volupcmd[] = { "amixer", "-q", "sset", "PCM", "5-", "unmute", NULL };
    static const char *voldowncmd[] = { "amixer", "-q", "sset", "PCM", "5+", "unmute", NULL };
    static const char *calccmd[] = { "xcalc", NULL };
    static Key keys[] = {
    /* modifier key function argument */
    { 0, 0x1008ff12, spawn, {.v = mutecmd } },
    { 0, 0x1008ff11, spawn, {.v = volupcmd } },
    { 0, 0x1008ff13, spawn, {.v = voldowncmd } },
    { 0, 0x1008ff1d, spawn, {.v = calccmd } },
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } },
    { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } },
    { MODKEY|ShiftMask, XK_f, spawn, {.v = filebrowse } },
    { MODKEY|ShiftMask, XK_t, spawn, {.v = talkcmd } },
    { MODKEY|ShiftMask, XK_Delete, spawn, {.v = shutcmd } },
    { MODKEY, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY, XK_h, setmfact, {.f = -0.05} },
    { MODKEY, XK_l, setmfact, {.f = +0.05} },
    { MODKEY, XK_Return, zoom, {0} },
    { MODKEY, XK_Tab, view, {0} },
    { MODKEY|ShiftMask, XK_c, killclient, {0} },
    { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
    { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
    { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
    { MODKEY, XK_space, setlayout, {0} },
    { MODKEY|ShiftMask, XK_space, togglefloating, {0} },
    { MODKEY, XK_0, view, {.ui = ~0 } },
    { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
    { MODKEY, XK_comma, focusmon, {.i = -1 } },
    { MODKEY, XK_period, focusmon, {.i = +1 } },
    { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
    { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
    TAGKEYS( XK_1, 0)
    TAGKEYS( XK_2, 1)
    TAGKEYS( XK_3, 2)
    TAGKEYS( XK_4, 3)
    TAGKEYS( XK_5, 4)
    TAGKEYS( XK_6, 5)
    TAGKEYS( XK_7, 6)
    TAGKEYS( XK_8, 7)
    TAGKEYS( XK_9, 8)
    { MODKEY|ShiftMask, XK_q, quit, {0} },
    /* button definitions */
    /* click can be a tag number (starting at 0),
    * ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
    static Button buttons[] = {
    /* click event mask button function argument */
    { ClkLtSymbol, 0, Button1, setlayout, {0} },
    { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
    { ClkWinTitle, 0, Button2, zoom, {0} },
    { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
    { ClkClientWin, MODKEY, Button1, movemouse, {0} },
    { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
    { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
    { ClkTagBar, 0, Button1, view, {0} },
    { ClkTagBar, 0, Button3, toggleview, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    Thank you very much I will see what I can do .
    Sadly still no reaction

  • [SOLVED]dwm-sprinkles: can't right click

    Just installed dwm-sprinkles (compiled from source grabbed using svn because there's nothing in AUR or ABS for it), and I can no longer right click in firefox or use the drop-down menus.  Drop downs on websites work fine, but I can't use anything in the firefox toolbar.  ie, File, Edit, address bar history, ABP menu, etc.  These things all work fine in gftp and goggles, which are the only other gui apps that I really use.
    It worked fine in vanilla dwm, which I built from the package in AUR.  Switched to dwm sprinkles because patching was a pain in the ass and sprinkles already has pretty much everything I need.  I'm guessing there is something in config.h that is causing this but I haven't changed anything except colors and terminal command. 
    Sorry if this has been posted/solved before, but there's just not much in-depth documentation on DWM out there (which is why I switched to a pre-patched version of it in the first place).
    Last edited by clutch (2010-06-04 22:08:28)

    ok, it works now after a reboot.  No idea. 

  • [SOLVED] dwm config

    [SOLVED]
    Hi,
    I am asking for help with my dwm config. What I want it to do is, instead of snapping directly to the edge of the screen, I want it to snap a certain distance away from it (and maybe other windows). Can someone point me in the right direction?
    Also, this is less relevant, but I want to include the system time in the title bar of dwm. Any help there?
    Last edited by latenitekid (2013-03-12 00:43:30)

    The time is included in the example status bar on the wiki page: https://wiki.archlinux.org/index.php/Dw … _statusbar
    The snapping thing sounds like a variant of useless gaps...

  • [SOLVED] [dwm] Can't start dwm

    Hi!
    I've recently entered the world of tiling WM and started with dwm.
    Since I'm kinda insecure, and wanted to keep gnome as well, I've followed every single step in the wiki article and used the ~/.Xclients way, so I could start dwm from gdm (I've followed also the steps in the discussion page as well).
    Then, when I tried to startup dwm from gdm, it doesn't start, and goes back again to gdm.
    My ~/.Xclients file is the following:
    setxkbmap -layout pt
    #relogio
    while true; do
    xsetroot -name "$( date +"%F %R" )"
    sleep 1m # Update time every minute
    done &
    # #estado da bateria
    # while true; do
    # batt=$(LC_ALL=C acpi -b)
    # case $batt in
    # *Discharging*)
    # batt="${batt#* * * }"
    # batt="${batt%%, *} "
    # batt=""
    # esac
    # xsetroot -name "$batt$(date +%R)"
    # sleep 60
    # done &
    #conky bar
    conky | while read -r; do xsetroot -name "$REPLY"; done &
    #executar o dwm
    exec dwm
    It's all things copied from the wiki page, just for testing if everything was fine...
    My /usr/share/xsessions/dwm.desktop file is:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Dwm
    Comment=Dynamic window manager
    Exec=/usr/local/bin/dwm
    Icon=dwm
    Type=XSession
    And I've created a /usr/share/xsessions/user.desktop file that looks like this:
    [Desktop Entry]
    Encoding=UTF-8
    Name=User XSession script
    Comment=Runs your ~./Xsession script
    Exec=/etc/X11/Xsession
    Type=Application
    Thanks in advance for any help, I've searched the forums and used google and couldn't find any answer to this problem :S
    Last edited by Aeriel (2011-09-01 17:19:02)

    haxit, thanks I've managed to solve the problem!
    I've installed SLiM and set up everything in .xinitrc.
    The dwm.desktop doesn't match with yours because I've changed somethings and because I didn't backup the file (I know, it's super dumb and stupid) I had to paste the defaults I found in the web.
    Thanks.
    Fellow gdm and dwm users, an advice, put everything in .xinitrc. It's easier.
    Last edited by Aeriel (2011-09-01 17:19:30)

  • [Solved] Dwm reconfigure after update.

    The problem is simple, after update to last version of Dwm i had to build and install it from scratch. I don't want to do that for any new version of Dwm. Is there a way to avoid that process?
    Cheers.
    Last edited by n0dix (2010-06-04 13:40:46)

    skanky wrote:
    I had this issue on my other machine (this one uses scrotwm). Trying to remember what I did to resolve it.
    There were no errors after makepkg -efi but the version kept reverting back to the previous one. I think it happened updating to that one, too. Anyway, I *think* what I did was to copy my config.h elsewhere, clear out the dir I used for building it, updated abs, copied the dwm-5.8.1 files in and rebuilt. Search for dwm-5.8.1 using grep to make sure you have the right files.
    There may be a step missing from that though.
    Exactly the same problem and the solution helps a lot. Indeed, this is the way i solved the issue. But the question is: exists any way to do automatically those steps? I know, i can make a shell script, but apart from that there is another?

  • [SOLVED] dwm: Changing terminal background?

    Hello all,
    I'm trying out dwm and love the simplicity. I've gotten it up and running but am noticing something odd.
    - If I have an .xinitrc with "exec dwm" in it and run startx, it starts up but any terminal (ctrl+alt+enter) comes up with a white background and black font.
    - If I rename .xinitrc to something like .xinitrc2 and run startx, the terminal has a black background with a white font.
    I want the black background and white font with .xinitrc so I can show the date. I've played around with config.h but don't see anything for the terminal colors (only the 1 2 3 ... bar above).
    I'm pretty new to dwm so I might be missing something simple. Does anyone have any ideas?
    Last edited by Annorax (2013-05-07 20:35:58)

    karol wrote:
    SolarBoyMatt wrote:
    You also need
    xrdb ~/.Xresources &
    somewhere in your .xinitrc before you call exec dwm, so your xresources file applies each time you start dwm.
    This info is in the wiki and it warns against backgrounding the operation.
    Using xrdb to source your ~/.Xresources is pretty instant, so in addition to possibly causing problems, there will probably be no noticeable difference in time either.

  • How to solve this WARNING ITMS-9000

    Hi everybody,
    I'm getting this error when I submit my app. Anyone now how to solve this ITMS-9000 Warning? I'm quite tired about trying to upload it...
    Thank you very much!

    I'm sure you got this figured out by now but I will post a reply in case anyone else has this issue in the future.
    What I just found with my error was that I set my version number as "1.0" and in itunes connect it was named "1"
    It looks like one of yours is named 1.0.14 and the other is named 1.0 in ITC.
    Apple should still approve it but to be sure, I rejected the binary with the edit and it went right through.

  • [SOLVED] Fontconfig warning: "local.conf"

    Hello Folks,
    every software I run from the terminal shows me a long list of the same message, before to run.
    Here an example:
    skype
    Fontconfig error: "local.conf", line 82: invalid attribute 'target'
    Fontconfig error: "local.conf", line 85: invalid attribute 'target'
    Fontconfig warning: "local.conf", line 181: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 194: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 213: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 229: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 291: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 426: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 530: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 544: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 558: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 614: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 628: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 635: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 229: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 291: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 426: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 530: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 544: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 558: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 614: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 628: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 635: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 642: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 656: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 663: invalid attribute 'name'
    Fontconfig error: "local.conf", line 687: invalid attribute 'name'
    Fontconfig error: "local.conf", line 706: invalid attribute 'name'
    Fontconfig error: "local.conf", line 730: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 742: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 749: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 756: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 776: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 799: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 806: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 813: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 833: invalid attribute 'name'
    Fontconfig error: "local.conf", line 879: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 903: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 916: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 931: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 943: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 959: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 966: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 973: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 992: invalid attribute 'name'
    Fontconfig error: "local.conf", line 1009: invalid attribute 'name'
    Fontconfig error: "local.conf", line 1026: invalid attribute 'name'
    Fontconfig warning: "local.conf", line 1290: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 1293: invalid attribute 'target'
    Fontconfig warning: "local.conf", line 1316: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1524: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig error: "local.conf", line 1527: invalid attribute 'target'
    Fontconfig warning: "local.conf", line 1537: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1654: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1871: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1905: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1937: Having multiple values in <test> isn't supported and may not work as expected
    Fontconfig warning: "local.conf", line 1985: Having multiple values in <test> isn't supported and may not work as expected
    How could I solve it?
    Last edited by Astroarch (2014-09-11 17:56:30)

    Then , I solved deleting the file and reinstalling fontconfig.
    Byt he way, I do not post in the forum to be joked, if you mean to answer in such a way, better do not post at all.
    Thanks
    Last edited by Astroarch (2014-09-11 17:56:07)

Maybe you are looking for

  • How to schedule a job from Apex?

    Hi all. I want to know the best way to schedule a job using Apex: - DBMS_JOB? - DBMS_SCHEDULER? - Build a wrapper?. - Any other thing i am not aware of?- Could an example be to much to ask? Regards, Luis ...!

  • If no data in subreport the main report fails

    Morning, I have a main report and a subreport. When I try to run it the main report fails with the error, "a subscript must be between 1 and the size of the array" I believe this is  because there is no data in the subreport. In the section expert I

  • Error with Informatica when running the data load for BI Apps

    Hi All, We are facing a different issue on prod which we haven't got on QA. Below given is session log : Target tables: W_ORDER_PARTY READER_1_1_1> RR_4050 First row returned from database to reader : (Wed Sep 22 10:36:16 2010) READER_1_1_1> BLKR_160

  • Problems with iCloud shared photos

    Hi all Updated all ios devices to 7. All good it seemed - but tonight took some pics on my 4s and created a shared stream. The person I invited (also on iOS 7) has not had invite and it does not appear on my other devices. Anyone else had anything si

  • ORA-00942 Table or View does not exists

    Hello, I have created profile and rules. The OWb generates a file TMP__xxx. Try to see the content of this this table will get ther error message like above. What make wrong?. Mehdi