You are not logged in.
Do you use any patches which haven't been ported?
The only patch that I use and works (Ive tried other patches that simply didnt work) is pertag.
Offline
You can have a look at their change log[1]. I stopped updating at version 5.2. I found all I was doing was making small changes to get things back to how I had it.
Offline
The only thing that required any intervention (hacking) on my part was a couple of lines changed in uselessgaps. Everything else just worked...
Offline
I figured the ABS would have the latest DWM build. i was wrong
Offline
┌─[Longbow][~]
└─╼ cat /var/abs/community/dwm/PKGBUILD | grep pkg*
pkgname=dwm
pkgver=5.8.2
pkgrel=2
Have you synced your abs?
Offline
pertag applied clean to 5.8.2. attachaside and viewontag also applied clean. The only thing I had problems with was uselessgap, but I made almost the same changes as above and it works fine.
Offline
┌─[Longbow][~] └─╼ cat /var/abs/community/dwm/PKGBUILD | grep pkg* pkgname=dwm pkgver=5.8.2 pkgrel=2
Have you synced your abs?
synched it and when i did makepkg -i, it installed 5.7.2. hmm
Offline
I started with dwm and ended up with nobox. Essentially, I dislike tiling because most of my apps run fullscreen besides instant messaging and terminals. I dislike multiple desktops because they always seem annoying. I dislike panels because they get in the way. I didn't get the point of urgency, and it seemed nice to take out atoms. I'll probably add those back in though, since Firefox likes to close all the windows it has up when I close a window now. Removing atoms also made it much easier to port to xcb. I ended up on dwm after I noticed that I wasn't using anything in openbox besides shortcuts, and figured I could implement a smaller alternative. At first I tried to fork tinywm, but dwm's design philosophy makes it more suitable for hacking
Offline
Welcome to the boards serprex.
As this seems less like a post about dwm and more like a post about announcing nobox, you might want to open a thread in Community Contributions; you can then engage with Archers who are interested in your new WM. Good luck with it.
Offline
with moveresize patch it doesn't compile, any help?
Offline
What sort of errors do you get? Any other patches applied?
Some more information would be helpful.
But, a shot in the dark, moveresize looks as though it hasn't been updated in some time...
Offline
pertag patched, but probed with vanilla and the same..
~/.dwm makepkg -efi
==> Creando el paquete: dwm 5.8.2-2 (vie ago 20 09:17:52 CEST 2010)
==> Comprobando Dependencias en tiempo de Ejecución...
==> Comprobando Dependencias en tiempo de Compilación...
==> PRECAUCIÓN: Saltando obtención de fuentes -- usando el arbol src/ existente
==> PRECAUCIÓN: saltando pruebas de integridad -- usando el arbol src/ existente
==> PRECAUCIÓN: Saltando extracción de las fuentes -- usando src/tree existente
==> Eliminando directorio pkg/ existente...
==> Entrando a un ambiente fakeroot...
==> Iniciando build()...
dwm build options:
CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -g -std=c99 -pedantic -Wall -O0 -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8.2" -DXINERAMA
LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -g -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:259:0:
config.h: En la función 'moveresize':
config.h:8:7: error: puntero deferenciado a tipo de dato incompleto
config.h:8:34: error: puntero deferenciado a tipo de dato incompleto
config.h:11:9: error: puntero deferenciado a tipo de dato incompleto
config.h:11:17: error: puntero deferenciado a tipo de dato incompleto
config.h:12:6: error: puntero deferenciado a tipo de dato incompleto
config.h:13:6: error: puntero deferenciado a tipo de dato incompleto
config.h:14:6: error: puntero deferenciado a tipo de dato incompleto
make: *** [dwm.o] Error 1
Abortando...
~/.dwm
Offline
You should probably try searching before posting...
Offline
i read it jason, but it doesn't solve my problem and i don't want to reopen a post marked as solved by the user
because of it i said compiling errors with vanilla too
Offline
I just hand patched it against a vanilla 5.8.2-2 and it compiled fine...
I suggest you patch pertag first, and then manually add moveresize to dwm.c and you should be good to go.
Offline
i think you didn't put the keys in config.h
putting it i get this:
~/.dwm makepkg -efi
==> Creando el paquete: dwm 5.8.2-2 (vie ago 20 10:23:11 CEST 2010)
==> Comprobando Dependencias en tiempo de Ejecución...
==> Comprobando Dependencias en tiempo de Compilación...
==> PRECAUCIÓN: Saltando obtención de fuentes -- usando el arbol src/ existente
==> PRECAUCIÓN: saltando pruebas de integridad -- usando el arbol src/ existente
==> PRECAUCIÓN: Saltando extracción de las fuentes -- usando src/tree existente
==> Eliminando directorio pkg/ existente...
==> Entrando a un ambiente fakeroot...
==> Iniciando build()...
dwm build options:
CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -g -std=c99 -pedantic -Wall -O0 -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.8.2" -DXINERAMA
LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -g -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:259:0:
config.h:99:44: error: 'moveresize' no se declaró aquí (no en una función)
dwm.c:2127:13: aviso: se define 'moveresize' pero no se usa
make: *** [dwm.o] Error 1
Abortando...
~/.dwm
edit: i read me.. i didn't declare the function... well, now it compile the code but keys doesn't work. maybe i put the code in the wrong part of dwm.c?
Last edited by kismet010 (2010-08-20 08:50:20)
Offline
Offline
don't be ironic please!!
i do this:
1- Start with vanilla version of dwm code
abs... copy to ~/.dwm, makepkg -i
2- Apply pertad patch
cd ~/.dwm/src...
patch -p1 < ~/.dwm/dwm-5.8.2-pertag.diff
3- Add moveresize function declaration before #include "config.h"
static void moveresize(const Arg *arg);
4- Add moveresize function body after #include "config.h"
void
moveresize(const Arg *arg) {
XEvent ev;
Monitor *m = selmon;
if(!(m->sel && arg && arg->v && m->sel->isfloating))
return;
resize(m->sel, m->sel->x + ((int *)arg->v)[0],
m->sel->y + ((int *)arg->v)[1],
m->sel->w + ((int *)arg->v)[2],
m->sel->h + ((int *)arg->v)[3],
True);
while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
3- Modify config.h:
add keys
{ MODKEY, XK_Down, moveresize, {.v = (int []){ 0, 25, 0, 0 }}},
{ MODKEY, XK_Up, moveresize, {.v = (int []){ 0, -25, 0, 0 }}},
{ MODKEY, XK_Right, moveresize, {.v = (int []){ 25, 0, 0, 0 }}},
{ MODKEY, XK_Left, moveresize, {.v = (int []){ -25, 0, 0, 0 }}},
{ MODKEY|ShiftMask, XK_Down, moveresize, {.v = (int []){ 0, 0, 0, 25 }}},
{ MODKEY|ShiftMask, XK_Up, moveresize, {.v = (int []){ 0, 0, 0, -25 }}},
{ MODKEY|ShiftMask, XK_Right, moveresize, {.v = (int []){ 0, 0, 25, 0 }}},
{ MODKEY|ShiftMask, XK_Left, moveresize, {.v = (int []){ 0, 0, -25, 0 }}},
4- makepkg -efi
it isn't correct? with this, keys doesn't work
Offline
I am loving DWM. The only thing I don't like is the default key mapping. I don't like using alt because it interferes with a lot of applications. I want to map super as my main key. I looked at the code and I can't make a whole lot of sense of it.
I was hoping there was a macro or define that set the main key as alt, that way I could change one line and not need to go through line by line and change alt to super. Is there an easy way to change alt to super?
Offline
Offline
So there WAS a define. I overlooked it, thanks!
Offline
Offline
So there WAS a define. I overlooked it, thanks!
FWIW, along with using Mod4 I like to swap Mod1 and Mod4. I do this in $HOME/.xmodmap
! Swap Mod1 (alt) and Mod4 (super)
clear mod1
clear mod4
keysym Super_L = Alt_L
keysym Alt_L = Super_L
keysym Alt_R = Super_L
keysym Menu = Menu
add mod1 = Alt_L Menu
add mod4 = Super_L Alt_R
Offline
My dwm used to follow the rules such as floating gimp (which is what really annoys me), and I've somehow broken rules entirely.
Has the class name for gimp changed at all? You can check it by running:
echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\"" && xprop | grep "WM_WINDOW_ROLE\|WM_CLASS"
and then click on a gimp window.
Offline
Slax wrote:My dwm used to follow the rules such as floating gimp (which is what really annoys me), and I've somehow broken rules entirely.
Has the class name for gimp changed at all? You can check it by running:
echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\"" && xprop | grep "WM_WINDOW_ROLE\|WM_CLASS"
and then click on a gimp window.
Nope, WM_CLASS(STRING) = "gimp", "Gimp".
Edit: Solved, turns out I need to use the capitalized name in config.h.
Last edited by Slax (2010-09-15 22:42:30)
Offline