You are not logged in.

#126 2010-08-04 17:08:28

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: The dwm thread

steve___ wrote:

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

#127 2010-08-04 17:16:39

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: The dwm thread

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.

[1] http://hg.suckless.org/dwm/shortlog

Offline

#128 2010-08-04 18:12:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

The only thing that required any intervention (hacking) on my part was a couple of lines changed in uselessgaps. Everything else just worked...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#129 2010-08-04 20:24:59

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: The dwm thread

I figured the ABS would have the latest DWM build. i was wrong

Offline

#130 2010-08-04 20:30:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

┌─[Longbow][~]
└─╼ cat /var/abs/community/dwm/PKGBUILD | grep pkg*
pkgname=dwm
pkgver=5.8.2
pkgrel=2

Have you synced your abs?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#131 2010-08-04 22:49:39

saline
Member
Registered: 2010-02-20
Posts: 86

Re: The dwm thread

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

#132 2010-08-05 13:39:58

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: The dwm thread

jasonwryan wrote:
┌─[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

#133 2010-08-12 02:43:03

serprex
Member
Registered: 2010-08-04
Posts: 10
Website

Re: The dwm thread

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

#134 2010-08-12 02:48:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#135 2010-08-20 06:48:01

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: The dwm thread

with moveresize patch it doesn't compile, any help?

Offline

#136 2010-08-20 07:12:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

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


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#137 2010-08-20 07:18:06

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: The dwm thread

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

#138 2010-08-20 07:31:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

You should probably try searching before posting...

https://bbs.archlinux.org/viewtopic.php?pid=766967


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#139 2010-08-20 07:42:43

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: The dwm thread

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

#140 2010-08-20 08:02:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#141 2010-08-20 08:24:45

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: The dwm thread

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

#142 2010-08-20 08:35:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread

Yep, I'm sure that both ber_t and Aakko and me have all got it wrong...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#143 2010-08-20 08:49:30

kismet010
Member
Registered: 2009-09-02
Posts: 137

Re: The dwm thread

don't be ironic please!! tongue

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

#144 2010-09-15 06:18:55

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: The dwm thread

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

#145 2010-09-15 06:30:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The dwm thread


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#146 2010-09-15 06:36:22

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: The dwm thread

So there WAS a define. I overlooked it, thanks!

Offline

#147 2010-09-15 10:35:26

Slax
Member
Registered: 2010-08-11
Posts: 39

Re: The dwm thread

My dwm used to follow the rules such as floating gimp  (which is what really annoys me), and I've somehow broken rules entirely.

Any ideas?

Here's my config.h and dwm.c.

I don't recall modifying applyrules(), but something happened.

Last edited by Slax (2010-09-15 10:42:00)

Offline

#148 2010-09-15 12:45:34

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: The dwm thread

Google wrote:

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

#149 2010-09-15 12:48:13

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: The dwm thread

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.

Offline

#150 2010-09-15 20:07:30

Slax
Member
Registered: 2010-08-11
Posts: 39

Re: The dwm thread

steve___ wrote:
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

Board footer

Powered by FluxBB