Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-16 Thread Anselm R Garbe
On 16 March 2015 at 05:58, Ivan Tham ivanthamjun...@gmail.com wrote:
 I want to learn C, so now I am waiting for c.learncodethehardway.org
 to release as other book may seem a bit too long for me.

You should rather learn C from its inventors:

http://en.wikipedia.org/wiki/The_C_Programming_Language

BR,
Anselm



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-16 Thread Ivan Tham
Thanks. I will.

On 3/16/15, Anselm R Garbe garb...@gmail.com wrote:
 On 16 March 2015 at 05:58, Ivan Tham ivanthamjun...@gmail.com wrote:
 I want to learn C, so now I am waiting for c.learncodethehardway.org
 to release as other book may seem a bit too long for me.

 You should rather learn C from its inventors:

 http://en.wikipedia.org/wiki/The_C_Programming_Language

 BR,
 Anselm





Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Markus Teich
Ivan Tham wrote:
 I haven't tried dwm as it seems a bit hard to configure compared to i3 but i3
 seems to be easier to use (I don't think it it much faster) as it only uses
 split as horizontal or vertical.

Heyho Ivan,

just try the default config first. You can easily setup a Xephyr or Xnest to
test out both WMs (dwm of course is far superiour ;P) and quickly change dwm's
config.h, recompile and relaunch without having to restart your whole X session
where you probably want to have some webbrowser or manpages open with
documentation. Configuring your software through changing the config.h
headerfile and recompiling may seem strange in the beginning, but you will
quickly get used to it.

This also has a few benefits: The software does not need a config-file parser
and also the config is automatically syntax-checked while recompiling.

--Markus



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
I haven't tried dwm as it seems a bit hard to configure compared to i3
but i3 seems to be easier to use (I don't think it it much faster) as
it only uses split as horizontal or vertical.

On 3/15/15, Anselm R Garbe garb...@gmail.com wrote:
 On 15 March 2015 at 15:05, Ivan Tham ivanthamjun...@gmail.com wrote:
 Hi, I hope someone can add some comparison between dwm and other
 window manager such as i3 to dwm.suckless.org. Thanks.

 Why? Feel free to contribute this comparison.

 BR,
 Anselm





Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
Thanks, but I can't read french.

On 3/15/15, Sébastien Poher sb...@volted.net wrote:
 Le dimanche 15 mars 2015 à 10:55:11, Ivan Tham a écrit :
 I does not like to compile as when I run `make`:
 ```
 dwm build options:
 CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
 -I/usr/X11R6/include -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=6.1
 -DXINERAMA
 LDFLAGS  = -s -L/usr/X11R6/lib -lX11 -lXinerama
 CC   = cc
 creating config.h from config.def.h
 CC drw.c
 CC dwm.c
 dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or
 directory
 compilation terminated.
 Makefile:18: recipe for target 'dwm.o' failed
 make: *** [dwm.o] Error 1
 ```

 And what does the Xlib header files means in the README?

 Hi,

 It means that you have to install the dev library (for example libx11-dev
 as
 named in debian).

 As for the difference between i3 and dwm, beside the compilation point,
 here
 are some that I have noticed (I have used both but prefered dwm):

 - dwm is faster and simpler to use (less functionnalities if you want to
   call it like that);
 - they use different paradigm : i3 creates workspace and associated tags
   when a client appears or is sent to the considered workspace // dwm has
 defined tags that you apply to clients;
 - both uses different layout: in i3 windows can be tiled, stacked or tabbed
   (or floating);
   in dwm you have tiling, floating and maximising layout

 For the rest, its more or less a question of taste.
 Try both and make you're choice.
 dwm is not difficult and there is documentation.
 Take a look at the i3 config file, the first time, you may find it hard as
 well.

 I've written tutorials for both (french):

 http://www.volted.net/tutos/dwm.html
 http://www.volted.net/tutos/i3.html

 Regards,
 --
 Sébastien Poher
 www.volted.net
 Aidez-nous à défendre la liberté du logiciel:
 http://www.fsf.org/register_form?referrer=11902




Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Anselm R Garbe
On 15 March 2015 at 15:05, Ivan Tham ivanthamjun...@gmail.com wrote:
 Hi, I hope someone can add some comparison between dwm and other
 window manager such as i3 to dwm.suckless.org. Thanks.

Why? Feel free to contribute this comparison.

BR,
Anselm



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Markus Teich
Ivan Tham wrote:
 dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or directory

Heyho Ivan,

you need the Xlib header files. On Debian based systems just install xlib-dev
and libxinerama-dev (the `-dev` packages contain the header files, if you
stumble upon this error anytime in the future again).

--Markus



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Henrique Lengler
On Sun, Mar 15, 2015 at 10:35:50PM +0800, Ivan Tham wrote:
 I haven't tried dwm as it seems a bit hard to configure compared to i3
 but i3 seems to be easier to use (I don't think it it much faster) as
 it only uses split as horizontal or vertical.

dwm is not difficult, it is just different.
Start with a default configuration and you are good to go.
there is a tutorial: http://dwm.suckless.org/tutorial
-- 
Regards

Henrique Lengler 



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
I does not like to compile as when I run `make`:
```
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
-I/usr/X11R6/include -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=6.1
-DXINERAMA
LDFLAGS  = -s -L/usr/X11R6/lib -lX11 -lXinerama
CC   = cc
creating config.h from config.def.h
CC drw.c
CC dwm.c
dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or directory
compilation terminated.
Makefile:18: recipe for target 'dwm.o' failed
make: *** [dwm.o] Error 1
```

And what does the Xlib header files means in the README?



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
Thanks, but how do I know about the -dev, but how do I know libxinerama-dev?

Thanks, I had successfully compiled it, trying now.

On 3/15/15, Markus Teich markus.te...@stusta.mhn.de wrote:
 Ivan Tham wrote:
 dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or
 directory

 Heyho Ivan,

 you need the Xlib header files. On Debian based systems just install
 xlib-dev
 and libxinerama-dev (the `-dev` packages contain the header files, if you
 stumble upon this error anytime in the future again).

 --Markus





Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Sébastien Poher
Le dimanche 15 mars 2015 à 10:55:11, Ivan Tham a écrit :
 I does not like to compile as when I run `make`:
 ```
 dwm build options:
 CFLAGS   = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
 -I/usr/X11R6/include -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=6.1
 -DXINERAMA
 LDFLAGS  = -s -L/usr/X11R6/lib -lX11 -lXinerama
 CC   = cc
 creating config.h from config.def.h
 CC drw.c
 CC dwm.c
 dwm.c:40:37: fatal error: X11/extensions/Xinerama.h: No such file or directory
 compilation terminated.
 Makefile:18: recipe for target 'dwm.o' failed
 make: *** [dwm.o] Error 1
 ```
 
 And what does the Xlib header files means in the README?

Hi,

It means that you have to install the dev library (for example libx11-dev as
named in debian).

As for the difference between i3 and dwm, beside the compilation point, here
are some that I have noticed (I have used both but prefered dwm):

- dwm is faster and simpler to use (less functionnalities if you want to
  call it like that);
- they use different paradigm : i3 creates workspace and associated tags
  when a client appears or is sent to the considered workspace // dwm has
defined tags that you apply to clients;
- both uses different layout: in i3 windows can be tiled, stacked or tabbed
  (or floating);
  in dwm you have tiling, floating and maximising layout

For the rest, its more or less a question of taste.
Try both and make you're choice.
dwm is not difficult and there is documentation.
Take a look at the i3 config file, the first time, you may find it hard as
well.

I've written tutorials for both (french):

http://www.volted.net/tutos/dwm.html
http://www.volted.net/tutos/i3.html

Regards,
-- 
Sébastien Poher
www.volted.net
Aidez-nous à défendre la liberté du logiciel: 
http://www.fsf.org/register_form?referrer=11902


signature.asc
Description: Digital signature


Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Eric Pruitt
On Sun, Mar 15, 2015 at 11:07:26PM +0800, Ivan Tham wrote:
 Thanks, but how do I know about the -dev, but how do I know libxinerama-dev?

Experience and / or guess-work. Compiler complaining about $HEADER.h?
Try installing lib$HEADER-dev (Debian) or $HEADER-devel (RHEL). Failing
that, just Google it. If you search debian xinerama.h, the first
result is Debian -- File list of package libxinerama-dev/wheezy/s*
Even better, the 5th result is [SOLVED] Cannot compile dwm window
manager - Ubu... (http://ubuntuforums.org/showthread.php?t=1843661).
There are also things like apt-file or yum whatprovides which can aid
in offline searching.

* This is assuming Google isn't doing personalized search result
  munging.

Eric



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
I want to learn C, so now I am waiting for c.learncodethehardway.org
to release as other book may seem a bit too long for me.

On 3/16/15, Eric Pruitt eric.pru...@gmail.com wrote:
 On Mon, Mar 16, 2015 at 12:32:44PM +0800, Ivan Tham wrote:
 Thanks, I think I get the concept of what an -dev is.

 But what is a header file?

 Short, very simplified answer: header files generally contain
 information needed to use an API, in this case X11 and Xinerama. For the
 long answer, you should probably learn C or C++.

 Eric





Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Eric Pruitt
On Mon, Mar 16, 2015 at 12:32:44PM +0800, Ivan Tham wrote:
 Thanks, I think I get the concept of what an -dev is.

 But what is a header file?

Short, very simplified answer: header files generally contain
information needed to use an API, in this case X11 and Xinerama. For the
long answer, you should probably learn C or C++.

Eric



Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
Thanks, I think I get the concept of what an -dev is.

But what is a header file?

On 3/16/15, Eric Pruitt eric.pru...@gmail.com wrote:
 On Sun, Mar 15, 2015 at 11:07:26PM +0800, Ivan Tham wrote:
 Thanks, but how do I know about the -dev, but how do I know
 libxinerama-dev?

 Experience and / or guess-work. Compiler complaining about $HEADER.h?
 Try installing lib$HEADER-dev (Debian) or $HEADER-devel (RHEL). Failing
 that, just Google it. If you search debian xinerama.h, the first
 result is Debian -- File list of package libxinerama-dev/wheezy/s*
 Even better, the 5th result is [SOLVED] Cannot compile dwm window
 manager - Ubu... (http://ubuntuforums.org/showthread.php?t=1843661).
 There are also things like apt-file or yum whatprovides which can aid
 in offline searching.

 * This is assuming Google isn't doing personalized search result
   munging.

 Eric





Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Roberto E. Vargas Caballero
 On Sun, Mar 15, 2015 at 11:07:26PM +0800, Ivan Tham wrote:
 Thanks, but how do I know about the -dev, but how do I know libxinerama-dev?
 
 Experience and / or guess-work. Compiler complaining about $HEADER.h?
 Try installing lib$HEADER-dev (Debian) or $HEADER-devel (RHEL). Failing

If you are using debian based distro you can install apt-file:

apt-file update (first time to build the database)
apt-file search file (it will say you which package has the file).

Regards,




Re: [dev] [dwm] Add i3 to differences in http://dwm.suckless.org/

2015-03-15 Thread Ivan Tham
How useful is that apt-file? I had installed it, but I don't know what
are the uses for it.

On 3/16/15, Roberto E. Vargas Caballero k...@shike2.com wrote:
 On Sun, Mar 15, 2015 at 11:07:26PM +0800, Ivan Tham wrote:
 Thanks, but how do I know about the -dev, but how do I know
 libxinerama-dev?

 Experience and / or guess-work. Compiler complaining about $HEADER.h?
 Try installing lib$HEADER-dev (Debian) or $HEADER-devel (RHEL). Failing

 If you are using debian based distro you can install apt-file:

   apt-file update (first time to build the database)
   apt-file search file (it will say you which package has the file).

 Regards,