Tiny Core Linux
General TC => General TC Talk => Topic started by: actionbastard on April 15, 2012, 03:01:15 PM
-
Hi, t
Ive been using dwm for a bit and I really enjoy it and would like to customize it. Could someone please tell me how exactly to recompile dwm? Im feeling completely lost. :-\
-
Funny, the project site states "you only have to learn C" (to customize dwm) ;-) Seems to be plain simple to compile dwm, cd into the source dir and type make. Probably with Xorg-7.6-dev and of course with compiletc installed. No configure script needed or included. It's also said you should change the header file(s) to customize your own version of dwm... and if you take a look at config.def.h you see options for dwm (since they don't want configuring at runtime, you have to specify your options at compile time in config.def.h).
[edit]
you have to rename config.def.h to config.h after editing, the dmw.c files says you should read main() to know what's going on *lol* very funny ;)
[/edit]
-
Im glad you find that amusing. Im really trying to put all the effort I can into this.
Would the source of this file be under /root or another folder? Also ive been looking in MC for config.def.h but cannot find this. Thanks
-
You might try looking in the source:
ftp://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/src/dwm/
-
Hi actionbastard
After you download dwm-tc03192012.tar.xz
xz -d dwm-tc03192012.tar.xz
tar -xf dwm-tc03192012.tar
cd dwm-6.0
You are now in the source directory.
-
Happy someone is getting some use out of the dwm extension as I had some mixed feelings about even submitting it.
Don't mind gutenmensch, actionbastard, I suspect he just finds the suckless *attitude* funny.
Stick with it. Reading the gentoo & arch docs help as well.
Good luck realizing the desktop of your dreams.
P.S. Maybe we should just offer the dwm sources as a package?
-
Thanks for the support. I was wondering. Do i need Dmenu or could i use dwm's bar to create a menu bar of its own? Ive seen some pictures and they dont seem to have both bars.
-
http://dwm.suckless.org/dwmstatus/
http://dwm.suckless.org/tutorial/
what the dwm statusbar does.
you are also welcome to use, copy, or modify the attached script.
note: you'll need xsetroot.tcz for this to work.
http://forum.tinycorelinux.net/index.php/topic,12783.0.html
this thread might be informative too.
you don't *need* dmenu per se. it's a pretty sweet utility tho.
dzen and yeahlaunch are other programs that do similar things.
reading some docs would probrably answer all your questions.
cheerio.
-
improved dwm startup/statusbar script
now with netstats
throw it in ~/.X.d
comments and suggestions welcome
btw, can anyone tell me why:
$expr 1 + 1
2
$expr 1 * 1
expr: syntax error
-
* has special meaning to the shell.
To see what that is try "echo *"
What you need to do is:
expr 1 \* 1
or
echo $(( 1 * 1 ))
ANS=`expr 1 \* 1`
echo $ANS
ANS=$(( 1 * 1 ))
echo $ANS
-
right, of course. how did i not connect that?
*facepalm*
thanks once again, @gerald_clark.
i'll see myself off your lawn now ;)
-
...and let me add let for lets sake :)
let VAR="1 * 1"
-
reading some docs would probably answer all my questions. :-"