You are not logged in.
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
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
Offline
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
Thanks men for the info, I started constructing it
But why the dwm-bar doesn't use my hinting ?
Offline
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
EDIT: Looks like I was beat to the punch -----^
Thanks men for the info, I started constructing it
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
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
Someone ? It's very imporant !
Offline
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
Is there any way to indicate that in the bar ? eg. USA/GR ?
Offline
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
This usually don't work, but I'll try it too.
Offline
Argh! It just can't build !
$ 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
Can you posts your config.h?
Offline
Here it is:
Offline
The var name wasn't correct and there was a comma at the end of the keys tab, there is the correct version:
Offline
Can't change the layout, too.
Offline
Can't change the layout, too.
It doesn't work?
It work if you type "setxkbmap us" or "setxkbmap gr" in a term?
Offline
Yes, it works that way.
Offline
hum... I don't use dwm, but normally it should work.
Offline
What do you use ?
Offline
What do you use ?
scrotwm... And soon catwm (a tiling wm I'm coding
Offline
gtklocker, check out Awesome
Offline
Oh, no, thanks.
Its rc.lua file is so difficult to understand, so heavily written..
Offline
And you understand C language ?
Offline