You are not logged in.

#1 2010-03-14 09:07:55

gtklocker
Member
Registered: 2009-09-01
Posts: 460

DWM newbie ! Please help !

Well, we continue from here.

I started up DWM, and I'm up with firefox and xterm running... but it's pretty awful... with no information... not even a clock.

Offline

#2 2010-03-14 09:13:08

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,371
Website

Re: DWM newbie ! Please help !

The dwm page in the wiki has some good information about how to set up your status bar:
http://wiki.archlinux.org/index.php/Dwm


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2010-03-14 09:17:42

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,841

Re: DWM newbie ! Please help !

Have you tried man dwm?
Or here: http://dwm.suckless.org/tutorial
Or here: http://wiki.archlinux.org/index.php/Dwm

The status bar info is set by naming the root window (xsetroot -name). Pipe script outputs to that command to get status info. - including say, a clock.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#4 2010-03-14 09:23:32

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Thanks men for the info, I started constructing it smile

But why the dwm-bar doesn't use my hinting ?

Offline

#5 2010-03-14 09:28:31

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: DWM newbie ! Please help !

If you mean anti-aliasing and stuff – because dwm doesn't support it by default. <shameless_advertisement>If you want that, you might be interested in dwm-pango from the AUR.</shameless_advertisement>

Offline

#6 2010-03-14 09:29:58

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: DWM newbie ! Please help !

EDIT: Looks like I was beat to the punch -----^

gtklocker wrote:

Thanks men for the info, I started constructing it smile

But why the dwm-bar doesn't use my hinting ?

Dwm only supports X core fonts by default. There are patches to change it to pango for text rendering support: http://bbs.archlinux.org/viewtopic.php?id=87520

Last edited by simongmzlj (2010-03-14 09:32:38)

Offline

#7 2010-03-14 09:40:45

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Thanks, I'll look it later...

One important question:

I am greek so, I need to use both layouts (us,gr). How can I change the layout with Alt-Shift?

I'm on a laptop, with an Ati VGA, w/o xorg.conf and no available indicator on its keyboard to show it.

Offline

#8 2010-03-14 11:43:34

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Someone ? It's very imporant !

Offline

#9 2010-03-14 12:45:05

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

gtklocker wrote:

Thanks, I'll look it later...

One important question:

I am greek so, I need to use both layouts (us,gr). How can I change the layout with Alt-Shift?

I'm on a laptop, with an Ati VGA, w/o xorg.conf and no available indicator on its keyboard to show it.

Hi...

You need to add the shortcut in the config.h and recompile dwm...

Try something like this:

static const char *changlayouttogr[]  = { "setxkbmap", "gr", NULL };
static const char *changlayouttous[]  = { "setxkbmap", "us", NULL };

and in the keys[]:

{ MODKEY|ShiftMask,             XK_g, spawn,          {.v = changelayouttogr } },
{ MODKEY|ShiftMask,             XK_u, spawn,          {.v = changelayouttous } }

++

Offline

#10 2010-03-14 14:10:02

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Is there any way to indicate that in the bar ? eg. USA/GR ?

Offline

#11 2010-03-14 14:38:29

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

gtklocker wrote:

Is there any way to indicate that in the bar ? eg. USA/GR ?

hum, I don't remeber how it work in dwm... You probably need to modify the code...

I found an other way to switch between your layout (in xorg.conf):

Section "InputDevice"
# ...

Option    "XkbLayout"    "us,cz_qwerty"
Option    "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
EndSection

Offline

#12 2010-03-14 14:42:01

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

This usually don't work, but I'll try it too. smile

Offline

#13 2010-03-14 15:23:19

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Argh! It just can't build ! sad

$ makepkg -s
==> Making package: dwm 5.7.2-2 x86_64 (Sun Mar 14 17:22:04 EET 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found dwm-5.7.2.tar.gz in build dir
  -> Found config.h in build dir
  -> Found dwm.desktop in build dir
==> Validating source files with md5sums...
    dwm-5.7.2.tar.gz ... Passed
    config.h ... Passed
    dwm.desktop ... Passed
==> Extracting Sources...
  -> Extracting dwm-5.7.2.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
dwm build options:
CC dwm.c
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11 -DVERSION="5.7.2" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC       = cc
In file included from dwm.c:274:
config.h:86: error: 'changelayouttogr' undeclared here (not in a function)
config.h:87: error: 'changelayouttous' undeclared here (not in a function)
config.h:107: warning: data definition has no type or storage class
config.h:107: warning: type defaults to 'int' in declaration of 'md5sums'
In file included from dwm.c:274:
config.h:107:10: warning: character constant too long for its type
config.h:108:10: warning: character constant too long for its type
config.h:108: error: expected ')' before '\x33343530'
config.h:109:10: warning: character constant too long for its type
dwm.c:277: error: expected ',' or ';' before 'struct'
dwm.c:277: warning: ISO C does not allow extra ';' outside of a function
make: *** [dwm.o] Error 1
==> ERROR: Build Failed.
    Aborting...

Offline

#14 2010-03-14 15:44:38

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

Can you posts your config.h?

Offline

#15 2010-03-14 15:57:38

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Offline

#16 2010-03-14 16:06:11

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

The var name wasn't correct and there was a comma at the end of the keys tab, there is the correct version:

http://paste.pocoo.org/show/189534/

Offline

#17 2010-03-14 16:15:11

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Can't change the layout, too. sad

Offline

#18 2010-03-14 16:52:26

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

gtklocker wrote:

Can't change the layout, too. sad

It doesn't work?

It work if you type "setxkbmap us" or "setxkbmap gr" in a term?

Offline

#19 2010-03-14 16:55:01

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Yes, it works that way.

Offline

#20 2010-03-14 17:05:42

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

hum... I don't use dwm, but normally it should work.

Offline

#21 2010-03-14 17:07:56

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

What do you use ? tongue

Offline

#22 2010-03-14 17:10:17

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: DWM newbie ! Please help !

gtklocker wrote:

What do you use ? tongue

scrotwm... And soon catwm (a tiling wm I'm coding wink

Offline

#23 2010-03-14 17:25:46

simongmzlj
Member
From: Canada
Registered: 2008-11-06
Posts: 135

Re: DWM newbie ! Please help !

gtklocker, check out Awesome

Offline

#24 2010-03-14 17:32:28

gtklocker
Member
Registered: 2009-09-01
Posts: 460

Re: DWM newbie ! Please help !

Oh, no, thanks.

Its rc.lua file is so difficult to understand, so heavily written..

Offline

#25 2010-03-14 17:59:03

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: DWM newbie ! Please help !

And you understand C language ?

Offline

Board footer

Powered by FluxBB