[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...

Similar Messages

  • [SOLVED] DWM - how do you apply patches with patch?

    I'm totally new to dwm (it's working great by the way) and patching. I'm having problems understanding how to use the patch program. The basic usage on dwm site says basically:
    patch -p1 < path/to/patch.diff
    Great, now I have the patch file ~/builds/dwn/patch/dwm-5.9-statuscolors.diff and my altered ~/builds/dwn/config.h. Here's what I did
    herman@sam ~/builds/dwm $ patch -p1 <patch/dwm-5.9-statuscolors.diff
    can't find file to patch at input line 4
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |diff -up dwm-5.9/config.def.h dwm-5.9-colors/config.def.h
    |--- dwm-5.9/config.def.h 2011-07-10 16:24:25.000000000 -0400
    |+++ dwm-5.9-colors/config.def.h 2011-08-18 02:02:47.033830823 -0400
    File to patch: config.def.h
    config.def.h: No such file or directory
    Skip this patch? [y]
    Skipping patch.
    2 out of 2 hunks ignored
    can't find file to patch at input line 41
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |Only in dwm-5.9: config.h
    |Only in dwm-5.9: dwm
    |diff -up dwm-5.9/dwm.c dwm-5.9-colors/dwm.c
    |--- dwm-5.9/dwm.c 2011-07-10 16:24:25.000000000 -0400
    |+++ dwm-5.9-colors/dwm.c 2011-08-18 02:07:20.788935100 -0400
    File to patch: dwm.c
    dwm.c: No such file or directory
    Skip this patch? [y]
    Skipping patch.
    12 out of 12 hunks ignored
    and it asks me for the filename it didn't find at line 4. Looking at the patch, I see it's a diff on config.def.h so I suppose this is the file to be patched and that I should supply this filename and the same with dwm.c? I'm not new to C coding but fresh out when it comes to diffing and patching, how do I actually go forward from here?
    Edit:
    More info  - I used the description using ABS to download the PKGBUILD for dwm and making dwm. My files
    herman@sam ~/builds/dwm $ ls -R
    PKGBUILD config.h dwm-5.9-2-x86_64.pkg.tar.xz dwm-5.9.tar.gz dwm.desktop dwm.install patch pkg src
    ./patch:
    dwm-5.9-statuscolors.diff
    ./pkg:
    usr
    ./pkg/usr:
    bin share
    ./pkg/usr/bin:
    dwm
    ./pkg/usr/share:
    doc licenses man xsessions
    ./pkg/usr/share/doc:
    dwm
    ./pkg/usr/share/doc/dwm:
    README
    ./pkg/usr/share/licenses:
    dwm
    ./pkg/usr/share/licenses/dwm:
    LICENSE
    ./pkg/usr/share/man:
    man1
    ./pkg/usr/share/man/man1:
    dwm.1.gz
    ./pkg/usr/share/xsessions:
    dwm.desktop
    ./src:
    config.h dwm-5.9 dwm-5.9.tar.gz dwm.desktop
    ./src/dwm-5.9:
    LICENSE Makefile README config.def.h config.def.h.orig config.def.h.rej config.h config.mk dwm dwm.1 dwm.c dwm.o
    Last edited by roygbiv (2011-12-06 20:37:40)

    Ok thanks but I'm confused again (I know..). I managed to patch the files config.def.h and dwm.c in the source dir and noticed there is yet another config.h file there as well. Now, the in the top level dir with the PKGBUILD I also have a config.h, which is the one I do my config changes. I'm confused because I now have these three header files (2x config.h + config.def.h) which are supposed to have the same source code? I've read around on the net, but haven't gotten any further answers yet. What are the purpose of each config and how should I use/update/manage them when recompiling? This is my situation:
    herman@sam ~/build/dwm $ tree .
    ├── PKGBUILD
    ├── config.h <----------------------------------------------------- this one
    ├── dwm-5.9-2-x86_64.pkg.tar.xz
    ├── dwm-5.9.tar.gz
    ├── dwm.desktop
    ├── dwm.install
    ├── pkg
    │   └── usr
    │   ├── bin
    │   │   └── dwm
    │   └── share
    │   ├── doc
    │   │   └── dwm
    │   │   └── README
    │   ├── licenses
    │   │   └── dwm
    │   │   └── LICENSE
    │   ├── man
    │   │   └── man1
    │   │   └── dwm.1.gz
    │   └── xsessions
    │   └── dwm.desktop
    └── src
    ├── config.h -> /home/herman/build/dwm/config.h
    ├── dwm-5.9
    │   ├── LICENSE
    │   ├── Makefile
    │   ├── README
    │   ├── config.def.h <-----------------------------------------------------this one
    │   ├── config.def.h.orig
    │   ├── config.h <----------------------------------------------------------this one
    │   ├── config.mk
    │   ├── dwm
    │   ├── dwm-5.9-statuscolors.diff
    │   ├── dwm.1
    │   ├── dwm.c
    │   ├── dwm.c.orig
    │   └── dwm.o
    ├── dwm-5.9.tar.gz -> /home/herman/build/dwm/dwm-5.9.tar.gz
    └── dwm.desktop -> /home/herman/build/dwm/dwm.desktop
    Thanks guys!
    Last edited by roygbiv (2011-12-06 20:06:10)

  • [Solved] DWM: lightdm loop

    Running dwm-personalized xsession reloads lightdm.
    $ cat /usr/share/xsessions/dwm-personalized.desktop
    [Desktop Entry]
    Encoding=UTF-8
    Name=Dwm-personalized
    Comment=Dynamic window manager
    Exec=dwm
    Icon=dwm
    Type=XSession
    ~/.dwm/config.h
    $ cat .xinitrc
    exec dwm
    Anything else what might help with diagnostics?
    Last edited by rollypolio (2015-02-19 21:12:24)

    Knute wrote:
    rollypolio wrote:
    Ok, I used method 1, and I've shown the files from the next section.  I'm a little confused by this section:
    The default /usr/share/xsessions/dwm.desktop does not allow for a customized start like can be done in ~/.xinitrc. A solution to this problem is to make a start script, for example /usr/bin/dwm-personalized and make an alternative xsession .desktop file (/usr/share/xsessions/dwm-personalized.desktop).
    Wiki
    Do I need to create the /usr/bin/dwm-personalized start script?  What would that look like?
    The easiest way to make the dwm-personalized.desktop is to simply copy the dwm.desktop file and modify it.
    From what little I read on the wiki about it, you would also need to make a dwm-personalized file in /usr/bin and make your personalized changes there; one of which is most likely the executable file.  The wiki seemed to explain that pretty well, but I just glanced at it.
    Does that help?
    Yes, Knute.  That helps.  I'm still unclear as to what this file would look like.  I was confused by the wiki.  I have compiled various programs with gcc (the apertium machine translator, for one) and am currently running i3wm.  Line 18 of PKGBUILD says dwm.desktop.  I edited it to say dwm-personalized.desktop and then cp'd from /usr/share/Xsessions the dwm-personalized desktop file after recompiling gave an error saying file not found. It's still giving the same error:
    Makefile:18: recipe for target 'dwm.o' failed
    make: *** [dwm.o] Error 1
    Here is the makefile.
    $ cat ~/.dwm/PKGBUILD
    # $Id: PKGBUILD 113973 2014-07-01 10:51:04Z spupykin $
    # Maintainer: Sergej Pupykin <[email protected]>
    # Contributor: Dag Odenhall <[email protected]>
    # Contributor: Grigorios Bouzakis <[email protected]>
    pkgname=dwm
    pkgver=6.0
    pkgrel=2
    pkgdesc="A dynamic window manager for X"
    url="http://dwm.suckless.org"
    arch=('i686' 'x86_64')
    license=('MIT')
    options=(zipman)
    depends=('libx11' 'libxinerama')
    install=dwm.install
    source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz
    config.h
    dwm-personalized.desktop)
    md5sums=('8bb00d4142259beb11e13473b81c0857'
    '8b5732a7b4d40d021fcb9b2c549a389a'
    '7d3152c4ad668bddefbaf54315b54a9b')
    build() {
    cd $srcdir/$pkgname-$pkgver
    cp $srcdir/config.h config.h
    sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk
    sed -i 's/^CFLAGS = -g/#CFLAGS += -g/g' config.mk
    sed -i 's/^#CFLAGS = -std/CFLAGS += -std/g' config.mk
    sed -i 's/^LDFLAGS = -g/#LDFLAGS += -g/g' config.mk
    sed -i 's/^#LDFLAGS = -s/LDFLAGS += -s/g' config.mk
    make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
    package() {
    cd $srcdir/$pkgname-$pkgver
    make PREFIX=/usr DESTDIR=$pkgdir install
    install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
    install -m644 -D README $pkgdir/usr/share/doc/$pkgname/README
    install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop

  • [solved]DWM rules for opening terminal based apps

    These are the rules that I have in my dwm config.h
    The ncurses apps that open in the terminal do not follow the rules. How can accomplish this?
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 3, False, -1 },
    { "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
    { "ranger", NULL, NULL, 1 << 6, False, -1 },
    { "mutt", NULL, NULL, 1 << 7, False, -1 },
    { "ncmpc", NULL, NULL, 1 << 8, False, -1 },
    Last edited by derrickcope (2015-05-02 05:26:14)

    thanks for the suggestion. xprop just sees them as "terminator". When I start them with -T "title" then xprop sees them with "title".
    When I used the -T switch in .xinitrc and then changed my rules to
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "Firefox", NULL, NULL, 1 << 3, False, -1 },
    { "Pcmanfm", NULL, NULL, 1 << 1, False, -1 },
    { "ranger", NULL, "ranger", 1 << 6, False, -1 },
    { "mutt", NULL, "mutt", 1 << 7, False, 2 },
    { "ncmpc", NULL, "ncmpc", 1 << 8, False, 2 },
    They are still opening on the first monitor and not on the tag I set. I am not sure I am doing it correctly. Should I write terminator as the class?

  • [SOLVED] dwm manager taskbar font howto

    I'm trying to make my default dwm taskbar font bigger. After I installed dwm the default taskbar font looks small for me. How can I make it bigger?
    I tried editing config.h file and edited default font to:
    static const char font[]            = "*-*-fixed-medium-r-normal--*-110-*-*-*-*-iso8859-1";
    just the way it was set in my other distro.
    But still no result, same small font.
    Does anybody have a good font in mind, that will look good, like the one from terminus pack. I don't know the names of good fonts and googling doesn't give any good alternatives.
    Maybe somebody has already have something in mind?
    1. why does my dwm font do not change, even when I edit config.h, compile and install (makepkg -efi)?
    2. could you provide any good font alternatives?
    ps. also this default dwm font does not understand cyrillic or any other language, so when I try "Mod+p" in ru layout it screws my typing.
    Last edited by tasty_minerals (2011-05-13 20:34:22)

    no, that doesn't work.
    ls Public/dwmls Public/dwm_sync/dwm/_sync/dwm/
    config.h                       dwm-5.8.2.tar.gz  dwm.install  PKGBUILD
    dwm-5.8.2-2-x86_64.pkg.tar.xz  dwm.desktop       pkg          src
    1. What I did is, edited config.h line to:
    static const char font[]            = "-*-courier-medium-r-*-*-17-*-*-*-*-*-iso10646-*";
    2.makepkg -efi
    3.reboot
    Result: nothing changed in taskbar
    ps. didn't find any of your fonts, I've installed lots of fonts via pacman.
    my config.h cat:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-courier-medium-r-*-*-17-*-*-*-*-*-iso10646-*";
    static const char normbordercolor[] = "#9eeeee";
    static const char normbgcolor[] = "#2e3436";
    static const char normfgcolor[] = "#d3d7cf";
    static const char selbordercolor[] = "#55aaaa";
    static const char selbgcolor[] = "#3e4446";
    static const char selfgcolor[] = "#d3d7cf";
    static const unsigned int borderpx = 1; /* border pixel of windows */
    static const unsigned int snap = 32; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating monitor */
    { "Gimp", NULL, NULL, 0, True, -1 },
    { "jumanji", NULL, NULL, 1 << 8, False, -1 },
    /* layout(s) */
    static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
    static const Bool resizehints = True; /* True 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[] = { "xterm", 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_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} },
    Last edited by tasty_minerals (2011-04-03 11:28:20)

  • [Solved] DWM with w0ng' config

    Hi everyone,
    Im using dwm on archlinux, and i try to install w0ng' config. But it is not working, i cant press anykey, i try shift+alt+q, shift+alt+p, alt+1, alt+2..... my screen no change, i must switch to tty2 and recompile dwm to default.
    I upload 4 images for more details. This is top-left and top-right of my screen:
    http://i.imgur.com/Em8286U.jpg
    http://i.imgur.com/zrxOtqC.jpg
    http://i.imgur.com/ObcOAKp.jpg
    http://i.imgur.com/hjd3KTH.jpg
    I installed font terminus2 and xbmicons:
    fc-list | grep termi
    /usr/share/fonts/local/terminus2.bdf: Terminus2:style=Regular
    /root/.fonts/terminus2.bdf: Terminus2:style=Regular
    fc-list | grep xb
    /root/.fonts/xbmicons.pcf: xbmicons:style=Regular
    /usr/share/fonts/local/xbmicons.pcf: xbmicons:style=Regular
    and here is how do i do:
    cd /home/user/Download/dwm-master/
    cp PKGBUILD /root/dwm/
    cp 0* config.h bstack.c gaplessgrid.c push.c /root/dwm/src/
    cd /root/dwm/
    makepkg -efi
    Tks for reading.
    -- mod edit: changed images to links - Trilby --
    Last edited by x3004 (2014-07-12 17:37:00)

    Here is my config, i change a bit on w0ng' config:
    /* See LICENSE file for copyright and license details. */
    /* appearance */
    static const char font[] = "-*-xbmicons-medium-r-*-*-12-*-*-*-*-*-*-*" ","
    /*"-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";*/
    "-*-terminus2-medium-r-*-*-12-*-*-*-*-*-*-*";
    #define NUMCOLORS 12
    static const char colors[NUMCOLORS][ColLast][9] = {
    // border foreground background
    { "#282a2e", "#373b41", "#1d1f21" }, // 1 = normal (grey on black)
    { "#f0c674", "#c5c8c6", "#1d1f21" }, // 2 = selected (white on black)
    { "#dc322f", "#1d1f21", "#f0c674" }, // 3 = urgent (black on yellow)
    { "#282a2e", "#282a2e", "#1d1f21" }, // 4 = darkgrey on black (for glyphs)
    { "#282a2e", "#1d1f21", "#282a2e" }, // 5 = black on darkgrey (for glyphs)
    { "#282a2e", "#cc6666", "#1d1f21" }, // 6 = red on black
    { "#282a2e", "#b5bd68", "#1d1f21" }, // 7 = green on black
    { "#282a2e", "#de935f", "#1d1f21" }, // 8 = orange on black
    { "#282a2e", "#f0c674", "#282a2e" }, // 9 = yellow on darkgrey
    { "#282a2e", "#81a2be", "#282a2e" }, // A = blue on darkgrey
    { "#282a2e", "#b294bb", "#282a2e" }, // B = magenta on darkgrey
    { "#282a2e", "#8abeb7", "#282a2e" }, // C = cyan on darkgrey
    /* edit here */
    static const char normbordercolor[] = "#444444";
    static const char normbgcolor[] = "#222222";
    static const char normfgcolor[] = "#bbbbbb";
    static const char selbordercolor[] = "#005577";
    static const char selbgcolor[] = "#005577";
    static const char selfgcolor[] = "#eeeeee";
    static const unsigned int borderpx = 0; /* border pixel of windows */
    static const unsigned int snap = 8; /* snap pixel */
    static const Bool showbar = True; /* False means no bar */
    static const Bool topbar = True; /* False means bottom bar */
    /* tagging */
    static const char *tags[] = { "\uE000", "\uE001", "\uE002", "\uE003", "\uE008",
    "\uE004", "\uE005", "\uE006","\uE007 " };
    static const Rule rules[] = {
    /* class instance title tags mask isfloating iscentred monitor */
    { "feh", NULL, NULL, 0, True, True, -1 },
    { "Gcolor2", NULL, NULL, 0, True, True, -1 },
    { "XFontSel", NULL, NULL, 0, True, True, -1 },
    { "Xfd", NULL, NULL, 0, True, True, -1 },
    { "Firefox", NULL, NULL, 1, False, False, -1 },
    { "URxvt", "ircmailbt", NULL, 1 << 1, False, False, -1 },
    { "Gvim", NULL, NULL, 1 << 2, False, False, -1 },
    { "Zathura", NULL, NULL, 1 << 3, False, False, -1 },
    { "libreoffice-calc", NULL, NULL, 1 << 3, False, False, -1 },
    { "libreoffice-impress", NULL, NULL, 1 << 3, False, False, -1 },
    { "libreoffice-startcenter", NULL, NULL, 1 << 3, False, False, -1 },
    { "libreoffice-writer", NULL, NULL, 1 << 3, False, False, -1 },
    { "mpv", NULL, NULL, 1 << 4, False, False, -1 },
    { "TeamViewer.exe", NULL, NULL, 1 << 5, True, False, -1 },
    { "Wine", NULL, NULL, 1 << 5, True, False, -1 },
    { "Gimp", NULL, NULL, 1 << 5, True, False, -1 },
    { "URxvt", "filemgr", NULL, 1 << 6, False, False, -1 },
    { "Chromium", NULL, NULL, 1 << 7, False, False, -1 },
    /* layout(s) */
    static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
    static const int nmaster = 1; /* number of clients in master area */
    static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
    #include "bstack.c"
    #include "gaplessgrid.c"
    static const Layout layouts[] = {
    /* symbol arrange function */
    { "\uE020 \uE009 \uE020", tile }, /* first entry is default */
    { "\uE020 \uE00A \uE020", NULL }, /* no layout function means floating behavior */
    { "\uE020 \uE00B \uE020", monocle },
    { "\uE020 \uE00C \uE020", bstack },
    { "\uE020 \uE00D \uE020", gaplessgrid },
    /* key definitions */
    #define MODKEY Mod4Mask
    #define TAGKEYS(KEY,TAG) \
    { MODKEY, KEY, toggleview, {.ui = 1 << TAG} }, \
    { MODKEY|ControlMask, KEY, view, {.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", colors[0][ColBG], "-nf", colors[0][ColFG], "-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
    static const char *termcmd[] = { "urxvtc", NULL };
    static const char scratchpadname[] = "scratchpad";
    static const char *scratchpadcmd[] = { "urxvtc", "-name", scratchpadname, "-geometry", "100x25", NULL };
    static const char *volupcmd[] = { "amixer", "-q", "set", "PCM", "5%+", NULL };
    static const char *voldncmd[] = { "amixer", "-q", "set", "PCM", "5%-", NULL };
    static const char *mpctog[] = { "ncmpcpp", "toggle", NULL };
    static const char *mpcprev[] = { "ncmpcpp", "prev", NULL };
    static const char *mpcnext[] = { "ncmpcpp", "next", NULL };
    #include "push.c"
    static Key keys[] = {
    /* modifier key function argument */
    /* edit here: change XK_o to XK_p
    { MODKEY, XK_o, spawn, {.v = dmenucmd } },
    { MODKEY, XK_p, spawn, {.v = dmenucmd } },
    { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
    /* edit here
    { MODKEY, XK_s, togglescratch, {.v = scratchpadcmd} },
    { MODKEY, XK_apostrophe, spawn, {.v = volupcmd } },
    { MODKEY, XK_semicolon, spawn, {.v = voldncmd } },
    { MODKEY, XK_slash, spawn, {.v = mpctog } },
    { MODKEY, XK_bracketleft, spawn, {.v = mpcprev } },
    { MODKEY, XK_bracketright, spawn, {.v = mpcnext } },
    { MODKEY|ControlMask, XK_b, togglebar, {0} },
    { MODKEY, XK_j, focusstack, {.i = +1 } },
    { MODKEY, XK_k, focusstack, {.i = -1 } },
    { MODKEY|ShiftMask, XK_j, pushdown, {0} },
    { MODKEY|ShiftMask, XK_k, pushup, {0} },
    { 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_b, setlayout, {.v = &layouts[3]} },
    { MODKEY, XK_g, setlayout, {.v = &layouts[4]} },
    { 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, toggleview, {0} },
    { ClkTagBar, 0, Button3, view, {0} },
    { ClkTagBar, MODKEY, Button1, tag, {0} },
    { ClkTagBar, MODKEY, Button3, toggletag, {0} },
    And here is "makepkg -efi" output:
    => 01-statuscolours.diff
    patching file dwm.c
    => 02-monoclecount.diff
    patching file dwm.c
    => 03-noborder.diff
    patching file dwm.c
    => 04-centredfloating.diff
    patching file dwm.c
    => 05-scratchpad.diff
    patching file dwm.c
    => 06-attachaside.diff
    patching file dwm.c
    Hunk #1 succeeded at 161 with fuzz 2 (offset 8 lines).
    Hunk #2 succeeded at 426 (offset 28 lines).
    Hunk #3 succeeded at 1223 with fuzz 1 (offset 106 lines).
    => 07-nopaddedbar.diff
    patching file dwm.c
    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
    CC -o dwm
    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
    LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama
    CC = cc
    installing executable file to /root/dwm/pkg/dwm/usr/bin
    installing manual page to /root/dwm/pkg/dwm/usr/share/man/man1
    loading packages...
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): dwm-6.0-2
    Total Installed Size: 0.09 MiB
    Net Upgrade Size: 0.00 MiB
    checking keyring...
    checking package integrity...
    loading package files...
    checking for file conflicts...
    checking available disk space...
    reinstalling dwm...
    @jasonwryan: I saw your name in here, nice to meet you (statuscolors-6.0 patch is not exists).

  • [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+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-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 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] LIRC config looks fine but my remote doesn't work.

    Following the steps of the wiki and this post I've created the configs file for lirc. But something is not working and I don't know how to find out what.
    I'm going to post some info so you guys can help me:
    ➜  ~  cat  /usr/lib/systemd/system/lirc.service
    [Unit]
    Description=Linux Infrared Remote Control
    [Service]
    Type=forking
    EnvironmentFile=/etc/conf.d/lircd.conf
    PIDFile=/run/lirc/lircd.pid
    ExecStartPre=/bin/mkdir -p /run/lirc
    ExecStartPre=/bin/rm -f /dev/lircd
    ExecStartPre=/bin/rm -f /run/lirc/lircd
    ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd
    ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE
    ExecStopPost=/bin/rm -f /dev/lircd
    ExecStopPost=/bin/rm -fR /run/lirc
    [Install]
    WantedBy=multi-user.target
    ➜  ~  cat /etc/conf.d/lircd.conf               
    LIRC_DEVICE="/dev/lirc0"
    LIRC_DRIVER="default"
    LIRC_EXTRAOPTS=""
    LIRC_CONFIGFILE="/etc/lirc/lircd.conf"
    My lircd.conf
    ➜  ~  cat /etc/lirc/lircd.conf                                   
    # Please make this file available to others
    # by sending it to <[email protected]>
    # this config file was automatically generated
    # using lirc-0.9.0(default) on Sun Sep 29 15:25:37 2013
    # contributed by
    # brand: /tmp/lircd.conf
    # model no. of remote control:
    # devices being controlled by this remote:
    begin remote
    name /tmp/lircd.conf
    bits 16
    flags RC6|CONST_LENGTH
    eps 30
    aeps 100
    header 2750 800
    one 487 374
    zero 487 374
    pre_data_bits 21
    pre_data 0x37FF0
    gap 105336
    toggle_bit_mask 0x0
    rc6_mask 0x100000000
    begin codes
    KEY_OK 0xFBDD
    KEY_PLAY 0x7B91
    KEY_PLAYPAUSE 0xFB91
    KEY_REWIND 0x7BEA
    KEY_PREVIOUS 0xFBE4
    KEY_FORWARD 0x7BEB
    KEY_NEXT 0xFBE5
    KEY_STOP 0x7BE6
    KEY_MUTE 0xFBF1
    KEY_VOLUMEUP 0x7BEF
    KEY_VOLUMEDOWN 0xFBEE
    KEY_PAGEUP 0x7BED
    KEY_PAGEDOWN 0xFBEC
    KEY_DOWN 0x7BE0
    end codes
    end remote
    The service seems to be running fine:
    ➜  ~  systemctl status lirc.service
    lirc.service - Linux Infrared Remote Control
    Loaded: loaded (/usr/lib/systemd/system/lirc.service; enabled)
    Active: active (running) since Sun 2013-09-29 16:38:49 ART; 20min ago
    Process: 248 ExecStart=/usr/sbin/lircd -d $LIRC_DEVICE -P /run/lirc/lircd.pid -H $LIRC_DRIVER $LIRC_CONFIGFILE (code=exited, status=0/SUCCESS)
    Process: 246 ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd (code=exited, status=0/SUCCESS)
    Process: 244 ExecStartPre=/bin/rm -f /run/lirc/lircd (code=exited, status=0/SUCCESS)
    Process: 240 ExecStartPre=/bin/rm -f /dev/lircd (code=exited, status=0/SUCCESS)
    Process: 234 ExecStartPre=/bin/mkdir -p /run/lirc (code=exited, status=0/SUCCESS)
    Main PID: 250 (lircd)
    CGroup: /system.slice/lirc.service
    └─250 /usr/sbin/lircd -d /dev/lirc0 -P /run/lirc/lircd.pid -H default /etc/...
    ➜  ~  cat /var/log/lircd                 
    Sep 29 17:02:31 arch-HP lircd: caught signal
    Sep 29 17:02:31 arch-HP lircd: lircd(default) ready, using /var/run/lirc/lircd
    When I test it nothing happens
    ➜  ~  irw
    the journalctl shows:
    Sep 29 17:04:47 arch-HP systemd[1]: Stopping Linux Infrared Remote Control...
    Sep 29 17:04:47 arch-HP systemd[1]: Starting Linux Infrared Remote Control...
    Sep 29 17:04:47 arch-HP systemd[1]: Started Linux Infrared Remote Control.
    Any clue?
    Thanks in advance.
    Last edited by Kummo666 (2013-09-30 18:10:19)

    Solve it!
    Looks like my /etc/lirc/lircd.conf was wrong.
    The irrecord is generating a wrong config with my hp rc-6 remote.
    I was able to fix it with this post

  • [SOLVED] Pacman "config file could not be read" error during Arch ins

    I've been attempting to get Arch setup for a while now, and after having some trouble with partitions, my wireless connecting, and setting up repos and mirrors, which the Wiki helped me solve, I've hit a bigger bump.  While updating the system using pacman as the Beginners Guide says to do, I get errors when I try to continue the update process as follows :
    btw: I'm typing this on a laptop next to my computer
    [root@McArch~]# pacman -Syu
    error: config file /etc/pacman.d/core could not be read
    error: config file /etc/pacman.d/extra could not be read
    error: config file /etc/pacman.d/community could not be read
    :: Synchronizing package databases . . .
    error: failed to updated core (unexpected error)
    error: failed to updated extra (unexpected error)
    error: failed to updated community (unexpected error)
    error: failed to synchronize any databases
    Any tips as to whats going on?  I've tried to created said files, and even insert mirrors into the file, like in the /etc/pacman.d/mirrorlist file but this doesn't seem to help
    Last edited by Windfinder (2008-09-29 20:43:29)

    Glad you got it working.
    I'm not sure what happened in your install but I just finished using an old 2007.08 iso and pacman first starts out with /etc/pacman.d/core, etc/pacman.d/extra, /etc/pacman.d/community ... etc., but I never had your problem when I did the #pacman -Syu after initial install reboot.  The pacman update removes the above mentioned repos and replaces them with a single /etc/pacman.d/mirrorlist.  You must have messed up an initial config file somehow as I couldn't get the same errors you got.  It looks like you had your /etc/pacman.conf file messed up somehow and when you pointed it to the mirrorlist it could finally work properly.  I'll just include my /etc/pacman.conf file and /etc/pacman.d/mirrorlist so you can compare.  NB*  these are from my x86_64 so for 32 bit machines i686 would replace x86_64 in the files.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #NoPassiveFtp
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default. To enable, uncomment the following
    # two lines. You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    /etc/pacman.d/mirrorlist
    # Arch Linux repository mirrorlist
    # North America
    # - United States
    Server = http://mirror.neotuli.net/arch/$repo/os/x86_64
    Server = http://holmes.umflint.edu/archlinux/$repo/os/x86_64
    Server = http://archlinux.unixheads.org/$repo/os/x86_64
    Server = ftp://ftp.archlinux.org/$repo/os/x86_64
    Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/x86_64
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
    Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
    Server = http://mirror.umoss.org/archlinux/$repo/os/x86_64
    # - Canada
    Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/@carch
    Well it was an interesting way to kill 30+ minutes.

  • [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] dwm pertag patch no working properly

    Hello everybody! I recently had to redo my system.
    Before this change I was using the DWM 6.0 with patches NMaster and pertag.
    link to the source code used - https://github.com/abara/config/tree/master/dwm-pertag
    But now, after having reinstalled the base system, I realized that the same code that I used before is no longer behaving as it should.
    He is working as if there is no patch applied in dwm.c
    I wonder what would be the possible reasons.
    P.S. will not use sprinkles fork
    Last edited by abarahc (2013-07-11 23:14:07)

    ANOKNUSA wrote:NMaster patch is now part of the base code, so applying a patch for it is superfluous.
    Yeah, that's what I meant ;P http://dwm.suckless.org/patches/nmaster
    I'm using dwm with pertag patch and things are working as expected.

  • [SOLVED]dwm and Diablo II?

    Hi all,
    Quick question--well maybe?
    Decided to plunge into the world of tiling wm's and have so far decided on dwm.  So far really like it and it helps out my old T21 Thinkpad.  I do play some games on the laptop when I'm out of town but Diablo II in wine doesn't seem to work properly.  I've searched and googled to death and haven't really found a definitive answer.  It just seems to resize the screen and then freezes.
    Edit: To tell the truth, it doesn't really freeze.  I can still bring up another terminal or something else but the resolution is all messed up.
    Last edited by bgc1954 (2008-11-19 05:50:25)

    1)  Yes, I run both e17 and pekwm on this laptop.  It works in both other wm's.
    2)  Haven't tried running it from terminal yet.  I'll try that and see what happens, though.
    3)  No changes made other than installing dwm.
    Edit: well, here's what spits out when run from terminal:
    [brian@archlaptop ~]$ wine 'c:\\Program Files\\Diablo II\\Diablo II.exe'
    [brian@archlaptop ~]$ fixme:win:EnumDisplayDevicesW ((null),0,0x33ebfc,0x00000000), stub!
    fixme:xrandr:X11DRV_XRandR_SetCurrentMode Cannot change screen BPP from 16 to 8
    fixme:d3d:IWineD3DDeviceImpl_CreateSwapChain The app requests more than one back buffer, this can't be supported properly. Please configure the application to use double buffering(=1 back buffer) if possible
    fixme:xrandr:X11DRV_XRandR_SetCurrentMode Cannot change screen BPP from 16 to 8
    fixme:d3d:IWineD3DDeviceImpl_CreateSwapChain The app requests more than one back buffer, this can't be supported properly. Please configure the application to use double buffering(=1 back buffer) if possible
    err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x132200): Want to change the window parameters of HWND 0x20028, but another style is stored for restoration afterwards
    err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x32 @0! (XRandR)
    And,  I'll try what thayer suggests, thanks.   Yeh, I tried setting float before running the script I use and didn't help.  I'll try the config.h route next.
    Last edited by bgc1954 (2008-11-19 05:13:51)

Maybe you are looking for

  • IMessage won't sign in after upgrade to Mountain Lion

    Just upgraded from Lion to Mountain Lion. FaceTime and iMessages can't log me in. In iMessage Setup, I use my default AppleID and password (that I use on my other iOS devices), and it says "Could not sign in. Please check your network connection and

  • Db_hotbackup with multiple partition DB

    We are using the C++ version of BDB, and our DB is getting large, so we want to break the DB file into multiple files using the set_partitions function when the DB is opened. We also use the db_hotbackup to backup our DB periodically while the DB is

  • Assign release to document type

    I have made release startegy for PR and PO . I want to now assign it to document type . What is the menu path.

  • "Share cannot be found" Help needed MAC to WIN XP

    I have a MBP and I am attempting to connect to a Win XP Desktop with a external USB hard drive attached. I can access through finder ANY share on ANY internal hard drive on the XP computer no problem. I can SEE any share I create on the USB hard driv

  • Show calculate field blank on a fillable form

    Hi I have created a form with a sum calculation. Does anyone know how to show the total blank before the form is filled in. At the moment the total shows 00.00 This needed so people have the alternative to print it out blank and fill it in by hand. I