You are not logged in.

#1 2009-03-18 16:55:46

Berticus
Member
Registered: 2008-06-11
Posts: 731

Tiling window managers written in C

I'm currently using xmonad, and I absolutely love tiling window managers. The only issue I have with xmonad is it's written in Haskell, so I couldn't write my own extensions. I've tried learning that language, and I hated it. I have experience with C, so I'm looking at evilwm, scrotwm, dwm, and musca.

The first one I'm trying out is dwm. But one thing sort of confuses me. If every time you have to compile dwm to configure it, and it's installed in /usr/bin, how do multiple users configure it?

Offline

#2 2009-03-18 16:59:44

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Tiling window managers written in C

What I did when using dwm was to compile it in a build dir in ~ and copy the executable to ~/bin which was in my path.

Offline

#3 2009-03-18 17:05:59

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Tiling window managers written in C

As Ashren said,  in a multiuser environment, the proper place for the dwm binary is somewhere in your $HOME, in most cases people use $HOME/bin.  Just don't do the make install if you are building by hand.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#4 2009-03-18 17:14:20

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Tiling window managers written in C

I use dwm and musca and I am loving it. I don't have the problem of multiple users since I am the only one using the computer, so I just do a

makepkg -fi

musca is really great because I kinda like the manual tiling.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2009-03-18 17:22:36

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Tiling window managers written in C

So instead of using abs to fetch the source, you just download the tarball from suckless?

Also, as for musca, aren't the frames usually user defined? That's how it is with xmonad. There's the master pane and then other windows in varoius layouts like dieshes, tall, circle, et cetera.

Last edited by Berticus (2009-03-18 17:24:15)

Offline

#6 2009-03-18 17:25:31

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Tiling window managers written in C

Berticus: exactly. Containing dwm compiling + executable in $HOME makes it easier to configure/test.

And if you feel adventurous you get latest hg pull.

Last edited by Ashren (2009-03-18 17:26:12)

Offline

#7 2009-03-18 17:26:47

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Tiling window managers written in C

I have a few WMs installed at the moment. What I do is put the source in ~/util/pkgname-version and set configure/config.mk to ~/util/pkgname, and I put a symlink of ~/util/pkgname/bin/pkg in ~/bin.

That saves having to update the symlink every time there is a new version. And it is nice to have older versions available.

Sometimes I also use find to copy all the man pages in ~/util to ~/man, and use a man function to use man ~/manpage.1 if it can't find it regularly.

EDIT: PS about git and such
When I want a new trunk I move the old progname-git to progname-git-old1 and just use the same git clone command I used before.

Last edited by Procyon (2009-03-18 17:29:55)

Offline

#8 2009-03-18 17:47:21

Bonzodog
Member
From: Leicester, UK
Registered: 2008-02-14
Posts: 106

Re: Tiling window managers written in C

How about Awesome?
Thats written in C, and extended with Lua.
I use Awesome at the moment, and I quite like it.

Offline

#9 2009-03-18 18:22:03

dusanx
Member
Registered: 2008-11-28
Posts: 132

Re: Tiling window managers written in C

I keep my dwm in ~/DWM and start it with exec ~/DWM/dwm. Is there any reason why would I want to package it every time? There may be something I am missing, security related?


Gnome -> Openbox -> Awesome -> XMonad -> dwm .
http://github.com/dusanx/uzbl/

Offline

#10 2009-03-18 18:50:13

initbox
Member
Registered: 2008-09-27
Posts: 172

Re: Tiling window managers written in C

Ratpoison is the awesomest and is written in C.

Offline

#11 2009-03-18 18:50:46

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Tiling window managers written in C

I used the recommended method to install dwm which uses the abs build...but I guess its a better option to just start it from home.

When I built the musca PKGBUILD, I did the same..but of course it meant that you use makepkg and it builds an empty pkg. so I changed it to copy the musca executable to /usr/bin. I guess everyone has a different opinion on it smile


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#12 2009-03-18 19:12:47

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Tiling window managers written in C

Bonzodog wrote:

How about Awesome?
Thats written in C, and extended with Lua.
I use Awesome at the moment, and I quite like it.

I heard with awesome, the configurations may need quite a bit of changing between versions. I'll give it another try when their configurations are more stable. I haven't touched my xmonad.hs since I started using it, which was a little over half a year ago. Don't even know how many versions I've been through. In the meantime, I'll check out Lua.

dusanx wrote:

I keep my dwm in ~/DWM and start it with exec ~/DWM/dwm. Is there any reason why would I want to package it every time? There may be something I am missing, security related?

No, it's just easier to have a package manager manage the software. So I don't have to keep checking suckless to see if there's a new version.

initbox wrote:

Ratpoison is the awesomest and is written in C.

I'll be sure to check it out

Offline

#13 2009-03-18 19:27:15

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Tiling window managers written in C

my vote goes for wmii. i haven't tried ratpoison or anything yet though.  I only tried awesome and found it to be way too complicated/overengineered.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#14 2009-03-18 19:47:20

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Tiling window managers written in C

Dieter@be wrote:

my vote goes for wmii. i haven't tried ratpoison or anything yet though.  I only tried awesome and found it to be way too complicated/overengineered.

Awesome is more like a Desktop environment of the tiling WMs wink

I used wmii ...and I liked the stacking mode  - the way it showed the title bars of the other windows and the fact that it automatically removed tags which did not contain any windows. But I had lots of problems with dmenu + wmii combination. The WM would just stop responding and the only option was kill X or hard reset. This never occurred in dwm -- so I switched to dwm completely until I started using musca smile I still use dwm occasionally though.

wmii also didn't give me too much gain in the memory usage -- it used about 2.2-2.8 MB and Openbox used around 2.5-3.5 MB. dwm on the other hand ran in only 479KB - which is great for this 9 yr old laptop that I have smile

Last edited by Inxsible (2009-03-18 19:48:00)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#15 2009-03-18 20:06:05

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Tiling window managers written in C

Inxsible wrote:

the way it showed the title bars of the other windows and the fact that it automatically removed tags which did not contain any windows.

That is my favorite feature of wmii too! I really like wmii for that, but I use ratpoison because it's so simple, and I only ever have 3 or 4 windows open at a time anyway, and because I don't understand anything about wmiir, wmiirc, rc.wmii, etc etc

Even, the other day I tried out 9mount on a wmii socket, cat'd /event, it froze and then I cat'd some other files with other terms and I had to reboot with sysrq. (Even the ctrl+alt+numpad_divide didn't work.)

About awesome, I really like how you can build it from the ground up with the config.

Offline

#16 2009-03-18 20:09:53

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Tiling window managers written in C

Procyon wrote:

.....because I don't understand anything about wmiir, wmiirc, rc.wmii, etc etc

I was a little confused with all the exec quit wmii wmiir commands in the config file. I like to keep is simple (KISS). dwm and musca are perfect for me

Have never used ratpoison -- but musca derives features from ratpoison and dwm -- so its the best of both worlds smile


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#17 2009-03-18 21:59:24

randy80016
Member
Registered: 2009-03-18
Posts: 6

Re: Tiling window managers written in C

I second ratpoison.  This is by far the best setup to be using for laptops or other scenarios where your screen real estate is limited and you would rather not use the mouse/touchpad if it can be avoided.

I would use ratpoison all the time if not for the fact that it doesn't nicely handle multiple monitors.  Sometimes I will Xnest a ratpoison on one monitor and just use the other for fluxbox or some other window manager.

Offline

#18 2009-03-18 23:37:30

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: Tiling window managers written in C

I don't have any plans to do multiple monitors. But what would prompt you to conclude that ratpoison is the best for laptops and screen real estate savings?

Also, I did read about the issue of wmii and dmenu. I thought someone wrote a solution for that though.

Offline

#19 2009-03-18 23:54:12

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Tiling window managers written in C

What ratpoison can do is display a small window list on top of everything in a corner. So it's not an entire bar.

Offline

#20 2009-03-19 00:31:27

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Tiling window managers written in C

Berticus wrote:

I'm currently using xmonad, and I absolutely love tiling window managers. The only issue I have with xmonad is it's written in Haskell, so I couldn't write my own extensions.

There are still simple (easy) extensions to be written for xmonad? I think that most features you'd want are already in xmonad-contrib, thus bypassing the need to code anything...

Offline

#21 2009-03-19 03:04:38

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: Tiling window managers written in C

Berticus wrote:
initbox wrote:

Ratpoison is the awesomest and is written in C.

I'll be sure to check it out

Although if you're going down the Ratpoison road, it's worth noting that StumpWM, its successor, is written in Common Lisp and is thus easier and more pleasant to hack on than anything written in Haskell or C.

Offline

#22 2009-03-19 08:06:01

Nikitka
Member
From: Zelenograd, Moscow, Russia
Registered: 2007-12-26
Posts: 11

Re: Tiling window managers written in C

echinus is a window manager for X in spirit of dwm. It is written in C.

It is configured via one config file in Xresources format. It supports the smallest possible subset of EWMH to be useable with panels/pagers.

No scripting. No statusbar.

Offline

#23 2009-03-19 10:03:10

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: Tiling window managers written in C

Inxsible wrote:
Dieter@be wrote:

my vote goes for wmii. i haven't tried ratpoison or anything yet though.  I only tried awesome and found it to be way too complicated/overengineered.

Awesome is more like a Desktop environment of the tiling WMs wink

Ignorance is bliss. tongue

Offline

#24 2009-03-19 15:50:24

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Tiling window managers written in C

Gigamo wrote:
Inxsible wrote:
Dieter@be wrote:

my vote goes for wmii. i haven't tried ratpoison or anything yet though.  I only tried awesome and found it to be way too complicated/overengineered.

Awesome is more like a Desktop environment of the tiling WMs wink

Ignorance is bliss. tongue

And opinions differ !


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB