Daniel Stone: do you now?
Received in an SMS from a friend: 'I just walked past a bloke with pasty
white skin and a ponytail wearing a t-shirt that said 'I do it with
Ubuntu'.'
Received in an SMS from a friend: 'I just walked past a bloke with pasty
white skin and a ponytail wearing a t-shirt that said 'I do it with
Ubuntu'.'
When Kubuntu switched to KDE4 as it s main desktop, I was disheartened. KDE 4, at the time was just, well, pretty unusable for me. It kept crashing, I couldn t do the things that I wanted to, and I spent more time fighting with KDE than I did actually doing work. After about a week, I d had enough, and I switched to Gnome.
Now, a lot of people are probably going to respond to this with Gnome vs KDE flames, but let me explain my viewpoint on the whole Desktop Environment war
I prefer KDE, but if a desktop will let me do the work I need to do without getting in my way and causing issues, then I can learn to use it.
The above is possibly the reason that I can get along ok with Windows XP, but if I have to use Vista, I ll end up wanting to throw the machine out of the window.
So, for possibly the last year or so (I m not too sure on the timescale!) I ve been using Gnome in Ubuntu, and I must say, I ve liked it. the fact that I can login, and instantly get access to my servers without having to type in my SSH key password (yes, insecure I know!), and that everything seems to integrate in a nice way, well.. it s been fun.
But still, my heart lies with KDE, and I ve been flipping back to it to see how KDE4 is coming along on a regular basis.
So far, I ve seen it gradually improving, and well, it looks damned sexy to be honest, but there were a few things that I felt it was missing. The ability to have multiple rows of apps on the task switcher was a big one for me. I generally have a lot of windows open, and I don t like the Grouping functionality. So when I get more than a few apps open, I could only see the icons. That s been fixed in KDE4.2, and it does it in a nicer way than Gnome does it (only switching to two rows once there are a certain amount of windows open.
Next on the list is the whole password management thing. Gnome does a GREAT job at this. I login, and it unlocks the default keyring, sets up the SSH agent, adds my key, unlocking it from the keyring, and I don t have to do anything but login with my normal user and password (though I intend to switch that to biometric login once I can be bothered to setup the fingerprint reader).
I ve fixed that little issue (well, for SSH) by setting up an autostart script using ksshaskpass to add my SSH key when I login.
So far, KDE seems pretty usable for me now, but then, I m quite happy to plod along on my Laptop and try things out. I m feeling a bit lost with all the new functionality, and wishing that the Ubuntu Gnome Notifications (from pidgin, which I use as my IM client) didn t look so ugly in the new sexy KDE Desktop (in fact, if anyone knows a way to get pidgin to use the Jaunty style notifications in KDE, let me know, as they d fit in quite well under the new KDE look :D) - I d like to see some sort of common ground for notifications across the desktops, but who knows when that s going to happen!
I ll also try using it at work, if I can use it there without it getting in the way, then I will happily switch back permanently, but that s the ultimate test.
I m pretty sure that KDE 4 will be usable for me soon, and I ll let you know if that s now
xmodmap has long
been the only way to modify the keyboard map of the X server, short
of the complex configuration daemon approaches used by the large
desktop managers, like KDE and GNOME. But it has always been a
hack: it modifies the X keyboard map and thus requires a baseline
to work from, kind of like a patch needs the correct context to be
applicable.
Worse yet, xmodmap weirdness required me to
invoke it twice to get the effect I wanted.
When the recent upgrade to X.org 7.4 broke larger
parts of
my elaborate xmodmap configuration, I took the time to finally
ditch xmodmap and implement my modifications as proper
xkb configuration.
#xorg/irc.freenode.org IRC channel to get
me started.
The other resource worth mentioning is Ivan Pascal s collection of XKB
documents, which were instrumental in my gaining an
understanding of xkb.
And just as I am writing this document, Debian s X Strike Force
have published their Input
Hotplug Guide, which is a nice complement to this very document
you are reading right now, since it focuses on auto-configuration
of xkb with HAL. The default
xkb configuration comes with a lot of flexibility, and
often you don t need anything else.
But when you do, then this is how to do it:
xkbcomp, which can also be used to dump the currently
installed map into a file. So, to get a bit of an idea of what
we ll be dealing with, please run the following commands:
xkbcomp $DISPLAY xkb.dump
editor xkb.dump
xkbcomp xkb.dump $DISPLAY
The file is complex and large, and it completely went against my
aesthetics to simply edit it to have xkb work
according to my needs. I sought a way in which I could use as much
as possible of the default configuration, and only place
self-contained additional snippets in place to do the things I
wanted done differently.
setxkbmap and rule files
Thus began my voyage into the domain of rule files. But before
we dive into those, let s take a look at setxkbmap.
Despite the trivial invocation of e.g. setxkbmap us to
install a standard US-American keyboard map, the command also takes
arguments. More specifically, it allows you to specify the
following high-level parameters, which determine the sequence of
events between key press and an application receiving a KeyPress
event:
setxkbmap -model thinkpad -layout us -variant intl -option grp:win_switch
In many cases, between all combinations of the aforementioned
parameters, this is all you ever need.
But I wanted more.
If you append -print to the above command, it will
print the keymap it would install, rather than installing it:
% setxkbmap -model thinkpad -layout us -variant intl -option grp:win_switch -print
xkb_keymap
xkb_keycodes include "evdev+aliases(qwerty)" ;
xkb_types include "complete" ;
xkb_compat include "complete" ;
xkb_symbols include "pc+us(intl)+inet(evdev)+group(win_switch)" ;
xkb_geometry include "thinkpad(us)" ;
;
There are two things to note:
-option grp:win_switch argument has been turned
into an additional include group(win_switch) on the
xkb_symbols line, just like the model, layout, and
variant are responsible for other aspects in the output.
xkbcomp dumped
into the xkb.dump file we created earlier. Upon closer
inspection, it turns out that the dump file is simply a
pre-processed version of the keyboard map, with
include instructions exploded.
xkb_keymap
stanza by setxkbmap is actually governed by a rule
file. A rule is nothing more than a set of criteria, and what
setxkbmap should do in case they all match. On a
Debian system, you can find this file in
/usr/share/X11/xkb/rules/evdev, and
/usr/share/X11/xkb/rules/evdev.lst is a listing of all
available parameter values.
The xkb_symbols include line in the above
xkb_keymap output is the result of the following rules
in the first file, which setxkbmap had matched (from
top to bottom) and processed:
! model layout = symbols
[...]
* * = pc+%l(%v)
! model = symbols
* = +inet(evdev)
! option = symbols
[...]
grp:win_switch = +group(win_switch)
It should now not be hard to deduce the xkb_symbols
include line quoted above, starting from the setxkbmap
command line. I ll reproduce both for you for convenience:
setxkbmap -model thinkpad -layout us -variant intl -option grp:win_switch
xkb_symbols include "pc+us(intl)+inet(evdev)+group(win_switch)" ;
A short note about the syntax here:
group(win_switch) in the symbols column simply
references the xkb_symbols stanza named
win_switch in the symbols file group
(/usr/share/X11/xkb/symbols/group).
Thus, the rules file maps parameters to sets of snippets to
include, and the output of setxkbmap applies those
rules to create the xkb_keymap output, to be processed
by xkbcomp (which setxkbmap invokes
implicitly, unless the -print argument was given on
invocation).
It seems that for a criteria (option, model, layout, ) to be
honoured, it has to appear in the corresponding listing file,
evdev.lst in this case. There is also
evdev.xml, but I couldn t figure out its role.
Mod4, which can be
used e.g. to control the window manager.
~/.xkb/symbols/xkbtest and add two stanzas to it:
partial alphanumeric_keys
xkb_symbols "dashes"
key <AE11>
symbols[Group2] = [ endash, emdash ]
;
;
partial modifier_keys
xkb_symbols "caps_mod4"
replace key <CAPS>
[ VoidSymbol, VoidSymbol ]
;
modifier_map Mod4 <CAPS> ;
;
Now let me explain these in turn:
grp:win_switch earlier, which
told xkb that we would like to use the windows keys to
switch to group 2. In the custom symbols file, we now simply define
the symbols to be generated for each key, when the second group has
been selected.
Key <AE11> is the hyphen key. To find out the
names of all the other keys on your keyboard, you can use the
following command:
xkbprint -label name $DISPLAY - gv -orientation=seascape -
I had to declare the stanza partial because it is
not a complete keyboard map, but can only be used to augment/modify
other maps. I also declared it alphanumeric_keys to
tell xkb that I would be modifying alphanumeric keys
inside it. If I also wanted to change modifier keys, I would
also specify modifier_keys.
The rest should be straight-forward. You can get the names of
available symbols from keysymdef.h
(/usr/include/X11/keysymdef.h on a Debian system,
package x11proto-core-dev),
stripping the XK_ prefix.
VoidSymbol).
The important aspect of the second stanza is the
modifier_map instruction, which causes the key to
generate the Mod4 modifier event, which I can later
use to bind key combinations for my window manager (awesome).
setxkbmap -print output of the keyboard map you would
like to use as a baseline into ~/.xkb/keymap/xkbtest,
and append snippets to be included to the xkb_symbols
line, e.g.:
"pc+us(intl)+inet(evdev)+group(win_switch)+xkbtest(dashes)+xkbtest(caps_mod4)"
When you try to load this keyboard map with
xkbcomp, it will fail because it cannot find the
xkbtest symbol definition file. You have to let the
tool know where to look, by appending a path to its search list
(note the use of $HOME instead of ~,
which the shell would not
expand):
xkbcomp -I$HOME/.xkb ~/.xkb/keymap/xkbtest $DISPLAY
You can use xev to verify the results, or just type
Win-Hyphen into a terminal; does it produce ?
By the way, I found xev much more useful for such
purposes when invoked as follows (thanks to Penny for the idea):
xev sed -ne '/^KeyPress/,/^$/p'
Unfortunately, xev does not give any indication of
which modifier symbols are generated. I have found no other way to
verify the outcome, other than to tell my window manager to do
something in response to e.g. Mod4-Enter, reloaded it, and then
tried it out.
setxkbmap spit out the
right xkb_keymap and could install the new keyboard
map with xkbcomp, like so:
setxkbmap -I$HOME/.xkb [...] -print xkbcomp -I$HOME/xkb - :0
I wrote
a small script to automatically do that at the start of the X
session and could have gone to play outside, if it hadn t been
for the itch I felt due to the entire rule file stored in my
configuration. I certainly did not like that, but I could also not
find a way to extend a rule file with additional rules.
When I looked at the aforementioned script again, it suddenly
became obvious that I was going a far longer path than I had to.
Even though the rule system is powerful and allows me to e.g.
automatically include symbol maps to remap keys on my Thinkpad,
based on the keyboard model I configured, the benefit (if any) did
not justify the additional complexity.
In the end, I simplified
the script that loads the keyboard map, and defined
a default xkb_keymap, as well as
one for the Thinkpad, wich I identify by its fully-qualified
hostname. If a specific file is available for a given host, it is
used. Otherwise, the script uses the default.
| 2005/06 | 2006/07 | 2007/08 | 2008/09 | |
|---|---|---|---|---|
| number of (partial) days | 25 | 17 | 29 | 37 |
| Dam ls | 10 | 10 | 5 | 10 |
| Diedamskopf | 15 | 4 | 24 | 23 |
| Warth/Schr cken | 0 | 3 | 0 | 4 |
| total meters of altitude | 124634 | 74096 | 219936 | 226774 |
| highscore | 10247m | 8321m | 12108m | 11272m |
| # of runs | 309 | 189 | 503 | 551 |
And while I'm on the subject of bitching about hardware support, I had some time to poke at the Qualcomm Gobi hardware a bit more last week. With the aid of Dan Williams of Network Manager fame we identified[1] that the hardware actually does rather more than is obvious from the qcserial driver. There's two extra ports - one is for diagnostics, and the other claims to be an NMEA port. Poking support for these into qcserial is easy enough, but they don't seem especially chatty. The more interesting factor is that the fourth interface on the endpoint is a network device. This isn't unusual in modern hardware - PPP isn't a terribly helpful layering for data transfer, so most recent high speed data cards also provide support for some kind of network device. If you're lucky it's a spec-compliant cdc device. If you've got a gobi then it claims to be a vendor defined class and type and the .inf file for the driver claims that it's a proprietary cdc device. Testing this got cut short by us not actually having an account on Verizon[2], so we don't have any data dumps to work out what the framing looks like.
I ve just uploaded new gsasl, jabberd2 and jabber-muc packages to ftp-master. This is the first release since we moved to git for packging and means a big step for the new Debian XMPP team. I hope this way we can welcome more developers to join the team and improve the Jabber/XMPP status in Debian. This work has been sponsored by my employer in order to improve the jabber module of eBox Platform. BTW, we ll try to release not only Ubuntu packages but also Debian very soon :-).
Drivel 2.0.4 ("Alive again")
I have been involved in vcs-pkg.org since around
the time it started, a couple of years ago. The discussion has been
interesting, and I learned a lot about the benefits and
disadvantages of serializing patches (and collecting integration
deltas in the feature branches and the specific ordering of
the feature branches) and maintaining integration branches (where
the integration deltas are collected purely in the integration
branch, but might tend to get lost in the history, and a fresh
integration branch having to re-invent the integration deltas
afresh).
However, one of the things we have been lax about is getting
down to brass tacks and getting around to being able to create
generic packaging tools (though for the folks on the serializing
patches side of the debate we have the excellent quilt
and the topgit packages).
I have recently mostly automated my git based work-flow, and
have built fancy porcelain around my git repository setup. During
IRC discussion, the gitpkg script came up. This seems
almost usable, apart from not having any built-in
pristine-tar support, and also not supporting
git submodules, which make is less useful an
alternative than my current porcelain.
But it seems to me that we are pretty close to being able to
create a distribution, layout, and patch handler agnostic script
that builds distribution packages directly from version control, as
long as we take care not to bind people into distributions or tool
specific straitjackets. To these ends, I wanted to see what are the
tasks that we want a package building script to perform. Here is
what I came up with.
dpkg-buildpackage or
rpm. There are a number of already mature mechanisms
to take a source directory and upstream tar archive and produce
packages from that point, and the wheel need not be
re-invented.
So the hardest part of the task is to present, in the staging
area, for further processing, a directory tree of the source
package, ready for the distribution specific build commands. This
part of the solution is likely to be VCS specific.
This post is getting long, so I ll defer presenting my evolving
implementation of a generic vcs-pkg tool,
git flavour, to the next blog post.
This is continued
here.
I've previously mentioned my plans on redoing my blog. Well, I've settled down on some design issues already (posts will be stored as mini Atom feeds, which makes the generation of Atom feeds for the blog and categories trivial, and gives me maximum flexibility. I already have a working converter for my existing blog to Atom posts.)Generating static HTML pages from that will be easily possible using an XSTL
transformation (for example), and I got the feedback that I could just use
Google AppEngine for
blog comments, so my actual blog could remain static-only (and thus much
more secure and reliable). Any attack/spammer/bot can then only kill the
comment functionality, not my own site.Which brings me to another design consideration: the editing widget. Either for
the blog comment application, for writing my own blog entries (via a https
protected script or whatever) or maybe for a small CMS I've been thinking about
- having a reliable HTML in-browser editing widget is something I could use
every now and then (well, I'm not doing much Web stuff anymore these days).Geniisoft has a good
overview over in-browser (aka: Through The Web, TTW) editors. The top
candidates seem to be:
I've heard before of FCKeditor and TinyMCE; I think I've been on the Xinha
page before, too. However, comments on them have not always been good.To some extend they all seem to have (to some extend)
feature creep
which usually is a bad sign - most often this means that there are security
issues in one or another module or plugin.TinyMCE for example has been described as "a bit of a pain" and "a tad
clumsy" on the GSoC mailing list. I have had less fights with it than
with the Debian Wikis (MoinMoin) markup language though.I'm not looking for anything as big as these - I just need an editor that
allows for some basic formatting (bold etc., links) and that produces
reasonable XHTML output. I'll be feeding the output through some custom
cleanup script anyway, which will kill disallowed code. So I don't want
any editor which allows the user to create code that will then be killed
afterwards.Any personal experiences with any of these, or an important alternative that
I might have missed (no PHP involved, please!) - email me (no comments on
blog) at erich AT debian org.Update: I've received a couple of pointers. Please don't send me links to
projects that are not actively maintained anymore - I don't want to care about
having to fix bugs in the editor widget myself.One link I've received twice is actually quite impressive:
WYMeditor. It doesn't try to look like a
word processor, but actually is more of a semantic editor. Much more what I'm
looking for than any of the others. I've also received a link to the
Yahoo! UI Library Editor,
which is quite clutter-free, but in the default setup at least very
text-formatting oriented, not very semantic (that doesn't mean you couldn't
change it that way, I guess you can). I was also pointed to Dojo, but that
framework is totally feature creep (which also explains why it loads so slowly
I guess), and the last time I looked at it's source code, I
had
some WTF moments - code quality at least outside of core doesn't seem to
be very high (Yes, that code implements the "mod 7" operation using list shifts
instead of a simple arithmetic operation).Looks like I'll give the first try to WYMeditor. Update #2: the code seems to
be rather ... complex. I'm looking for something neat and clean; it doesn't
need to bring along yet another XHTML schema and validator ... Maybe I should
try one of the others first?
Do you listen to the radio?
I don t, and there are multiple reasons for that:
First and foremost, I don t like the music they play these days.
Even though there are stations which will occasionally play a more
eclectic tune, the Swiss government does not, to my knowledge,
dictate any quota, like New Zealand actually requires stations to
broadcast New Zealand music at least 20% of the time.
The result is music made by producers, who stand pop icons with
little clothing in front of microphones, instruct them to move
their bodies in obscene ways, and coach them to croak songs someone
else wrote en masse in some basement somewhere. All those
songs sound alike.
To ensure a constant supply of pop dolls, they hype television
shows with titles such as Germany s seeks the next superstar ,
when most of Germany actually couldn t care less, and only those
with vacuous brain capacity follow with excitement, because they
wouldn t know what else to do.
Second, I don t have the time or energy to listen to discussion
rounds on the radio, especially not when topic are about
society , which noone can define in the first place. Wittgenstein always
had it right.
The same goes for most commentaries. If I don t have anything to
do, I prefer to listen to birds in the trees, rather than someone s
polished opinion. The scariest aspect is that those people actually
believe that they have something worthwhile to say, and so
do their producers and the other staff, when in most cases, they
don t. At least not worthwhile to people who have other things
occupying their minds.
I also don t like someone to make a pre-selection of news and
squash that into 5-15 minute time slots, to be read out by
dull-sounding speakers. I d rather skim over articles, and the Web
ensures that I get the information I want much quicker than the
radio stations can transmit them.
And sports over the radio waves makes me come close to aural
epileptic seizures.
I am painting the sky black a bit. I am fully aware that there
exist people with thought-provoking arguments, that some stations
play interesting music I would otherwise never discover, and that
the radio is a source of entertainment in the lives of thousands of
other people who are less privileged than me.
But when the Billag rang my
doorbell today and wanted CHF 14,10 per month for posession of any
device capable of turning radio waves into sound, including those
radio waves broadcast over the Internet these days, I got a bit
furious.
In the past, they concentrated only on actual radio and TV
receivers. When I moved into my previous flat in Zurich in 2002,
they wanted money because my stereo had a tuner button. I refused
to pay, opened the device, unsoldered the radio coil, and sent it
to them with an angry letter of refusal; they let me off the
hook.
Since then, they changed the law in 2007 (but haven t actually
updated the forms they force you to sign) to include audio players,
cellular phones, and computers, which are all radio-capable. I d
really prefer if they used their funds to revert that trend, or at
least remove
the loudspeakers from all mobile phones.
But instead, this morning, I skid right into their claws.
As I said before, the radio is also a social support system, and
as such I have less of a problem to subsidise it. However, given
that I strongly disagree with the quality level broadcast, I would
prefer to direct my money towards causes I consider more useful,
and with which I could better identify. Unfortunately, the whole
system is governmentalised to the point where this choice is
taken away from me.
The Billag website helpfully offers answers to the common
questions, including one along the lines of quality. They suggest
that you get in touch directly with the programme directors to
complain about their content, and offer suggestions. Shortly after
I moved to Zurich, Radio Lora offered
me a radio show. Radio Lora is a private station, but they also
receive subsidies from the monies exacted by the government, so I
am using them as an example here.
I suggested that I concentrated only on progressive and
psychedelic rock from the sixties and the seventies. They refused
the show in the end, claiming that this would not be what their
listeners want.
So instead I now get to pay for content that is deemed more
appropriate.
I can only imagine the pains I d have to go through to be able
to host a radio show concentrating on eclectic tunes on one of the
public radio stations. And even if I succeeded (without becoming a
full-time public radio broadcaster), then I could only contribute a
few hours a week to that content.
If you ask me, the Swiss government is overstepping its
competencies a bit.
NP: Mono:
Hymn to the Immortal Wind
Just found by my son who's as crazy as I am abut SpongeBob Square Pants:
I've started to develop awesome more than 18 months ago, and somehow I feel it's time to stop a bit and think where we come from and where we are going to.
The motivation
I never though I'd be written a window manager one day. That seems kinda stupid when you see how many window manager there's around.
As many people, I've tested and have been using tons of window manager: Window Maker, Fluxbox, etc.
In August 2007, I was using fvwm since 2004 and was quite happy with it. I used the famous fvwm-crystalhttp://www.fvwm-crystal... as a configuration starter and then rewrote lots of stuff. Digging into fvwm configuration files was boring, and since I'm lazy, I never really configured it to fit entirely my needs.
The thing is that, in July 2007, my workstation died. I bought a new one based on the amd64 architecture. Too bad, with this new box, fvwm decided that it will not longer runs and was segfaulting almost every time I logged in.
I was really upset. Another failure in the window manager world. So I decided to get the yearly ride of testing many window managers. I went on the no more developed stuff like the *boxes, ion3, etc but well, I did not like them, there were not powerful enough, too bugged or upstream was insane.
Then I found xmonad. The Haskell configuration file format made my cry. I did not want to learn Haskell, it seemed too obfuscated to me. At that time it was even not packaged for Debian, so I gave up. But I found dwm in the meantime, and I loved it. It was simple, and the source code was almost understandable and easy to hack.
I subscribed to the dwm mailing-list, in order to participate to its development, etc But I got really disappointed. No patch were welcome and the development seemed to be almost finish in this sight. People patches were lying around, but no one really care. Each user was managing its own set of patches.
That's not what I learnt and what I love in free software. So, as many users, I began to maintain my patches in my corner. But I began to have more ideas
The jdwm
I just added a 'j' in front of dwm and started to hack it days and nights to add many feature I missed, like multi-head, etc On 5th September 2007, I created a git repository to host my code.
That's gonna be awesome.
Five days later, on 10th September, I finally found a name for my new pet: awesome, borrowed from Barney Stinson who heavily uses and abuses this word.
The 1.x branch
The first releases until December were noted 1.x. It was just a better dwm with a simple flat configuration file..
The configuration file used libconfig, but it was a very poor choice. And I was not able to put in into Debian because of name clash.
The 2.x branch
The 2.x branch came in January 2008 with a brand new configuration file format based on libconfuse, which was a bit more powerful. Many concepts and features that have been added in this branch are still used in the current 3.x branch.
At this time, between December 2007 and April 2008, the community was growing smoothly.
But as I said, awesome 2 was based on a flat configuration file. That raised a problem very soon: users expectation were growing and the development team (me and a couple of regular contributors) was unable to cope with them.
One of the event that started to change my mind was the support for titlebars.
When I've added titlebar support, it was minimal. It was on top of a window, with the window title. Dot. Then I've started to add a lot of options, like the application icon drawing, the position (left, right, bottom) etc.
And then users started to ask for more, like: "add titlebar on windows only when the window is floating".
That's ok, but that's complicated: that's again another option to do some stuff conditionally. And then, why don't add titlebar on windows when <insert random events here>?
The 3.x branch
Why
At that time, around April 2008, I'd totally stopped development. I was trying to find a solution which was simple and powerful. But after 2 weeks of thinking, I was not able to find anything else than: use a real language for configuration.
So, I've started prototyping awesome 3 using Lua. The choice was not obvious, and despite the problem Lua might suffer, it's one of the easiest language to integrate into an existing application. There's still a video of a first version here.
But, let's go a little back: in January 2008, Arnaud Fontaine contacted me because he was interested to use awesome as one of its school project. He decided to port awesome from Xlib to XCB, a modern asynchronous X library.
His work took some time, but in May 2008, Arnaud did finished to port git master version of awesome to use XCB.
Consequently, I decided to start a new major branch, using XCB instead of Xlib (no change for users in this regard) and Lua instead of our previous flat configuration file format.
Development
It took me a while to get from here to there, but in September 2008, it was ready. We had a simple Lua API, and the XCB port was working perfectly.
It took us some time to release and have something totally working, because we had to work on XCB and contribute back to the project. It was really not ready to use by an application, but we did great work in this area and it's now really fine.
We're still here
Releases continue to happens, 3.1 around December 2008, and 3.2 around March 2009. 3.3 should be here in June.
One of the drawback we had, is that we moved many stuff from C to Lua. Why? Because writing things in Lua is quicker and easier to maintain than C, and makes thing more configurable for the user.
For example, the layout algorithm used to organize window were written in C until 3.2 came out. At that time, users had no choice than using a set of predefined layout to organize their windows.
Starting with 3.2, if they have minimal knowledge about geometry, they can start writing a layout function organising windows on the screen.
But this kind of API changes was a bit rough for users, since they had to port some part of their configuration file to the new API.
The thing is that the project was still a teenager at that time, not really knowing were it will go. But I'm happy to announce that API breakage are more and more rare (so far only one minor between 3.2 and 3.3), and anyway always for the Good.
But I admit that it built a bad reputation around awesome 3.x during its first month of existence.
Future direction
I am currently working on 3.3 development. We have still many things to do. Time passing, we get more idea, and more users. And more users bring more ideas.
We also have many more contributors, and some guys are even taking maintainer-ship of some code area.
Conclusion
My post title is "Taking the other direction" because I feel this way.
I've got that feeling that some approaches in projects like GNOME are sometimes bad. Please don't misread me, I know we are not playing in the same yard.
When adding a key shortcut for starting an application makes you dig into gconf, I wonder how this is a win for the user.
Well, it's probably a win for the end-user, but I surely am not one of them. And I don't intend to target them with my software, anyway.
And now, when I hear things like GNOME 3.0 and the "desktop shell" approach, that makes me smile.
Guys, it was time, but have luck. What I see from here, is that any desktop control interface is wrong somehow, and that there's no approach that can fulfill all users wishes.
I think that we, the awesome development team (no pun intended) took the direction of building a frame-work window manager rather than a solution written in marble.
We (partially) solved the issue of UI ergonomic by not writing one and allowing the user to write his own. I don't say that's easy to do for most of users, but it's doable.
And I think it's worth it: I use window managers since I use Linux, around 1998. If something like awesome came 5 years ago, I'd be using it so far, because you can write Fluxbox or WindowMaker using awesome in a hundred of Lua code. And you can write your own version of it. And it starts in less than 3 seconds, supporting almost all standard desktop specification (ICCCM, EWMH, XDG, system tray, message notification, D-Bus, etc), whereas many of the window mangers do not.
You can even write and play space invaders.
Finally, I'm happy about the the road we took so far, and hope we will continue into that direction. The rants I read about our project are not that big, compared to the kudos we received.
I've started to develop awesome more than 18 months ago, and somehow I feel it's time to stop a bit and think where we come from and where we are going to.
The motivation
I never though I'd be written a window manager one day. That seems kinda stupid when you see how many window manager there's around.
As many people, I've tested and have been using tons of window manager: Window Maker, Fluxbox, etc.
In August 2007, I was using fvwm since 2004 and was quite happy with it. I used the famous fvwm crystal as a configuration starter and then rewrote lots of stuff. Digging into fvwm configuration files was boring, and since I'm lazy, I never really configured it to fit entirely my needs.
The thing is that, in July 2007, my workstation died. I bought a new one based on the amd64 architecture. Too bad, with this new box, fvwm decided that it will not longer runs and was segfaulting almost every time I logged in.
I was really upset. Another failure in the window manager world. So I decided to get the yearly ride of testing many window managers. I went on the no more developed stuff like the *boxes, ion3, etc but well, I did not like them, there were not powerful enough, too bugged or upstream was insane.
Then I found xmonad. The Haskell configuration file format made my cry. I did not want to learn Haskell, it seemed too obfuscated to me. At that time it was even not packaged for Debian, so I gave up. But I found dwm in the meantime, and I loved it. It was simple, and the source code was almost understandable and easy to hack.
I subscribed to the dwm mailing-list, in order to participate to its development, etc But I got really disappointed. No patch were welcome and the development seemed to be almost finish in this sight. People patches were lying around, but no one really care. Each user was managing its own set of patches.
That's not what I learnt and what I love in free software. So, as many users, I began to maintain my patches in my corner. But I began to have more ideas
The jdwm
I just added a 'j' in front of dwm and started to hack it days and nights to add many feature I missed, like multi-head, etc On 5th September 2007, I created a git repository to host my code.
That's gonna be awesome.
Five days later, on 10th September, I finally found a name for my new pet: awesome, borrowed from Barney Stinson who heavily uses and abuses this word.
The 1.x branch
The first releases until December were noted 1.x. It was just a better dwm with a simple flat configuration file..
The configuration file used libconfig, but it was a very poor choice. And I was not able to put in into Debian because of name clash.
The 2.x branch
The 2.x branch came in January 2008 with a brand new configuration file format based on libconfuse, which was a bit more powerful. Many concepts and features that have been added in this branch are still used in the current 3.x branch.
At this time, between December 2007 and April 2008, the community was growing smoothly.
But as I said, awesome 2 was based on a flat configuration file. That raised a problem very soon: users expectation were growing and the development team (me and a couple of regular contributors) was unable to cope with them.
One of the event that started to change my mind was the support for titlebars.
When I've added titlebar support, it was minimal. It was on top of a window, with the window title. Dot. Then I've started to add a lot of options, like the application icon drawing, the position (left, right, bottom) etc.
And then users started to ask for more, like: "add titlebar on windows only when the window is floating".
That's ok, but that's complicated: that's again another option to do some stuff conditionally. And then, why don't add titlebar on windows when <insert random events here>?
The 3.x branch
Why
At that time, around April 2008, I'd totally stopped development. I was trying to find a solution which was simple and powerful. But after 2 weeks of thinking, I was not able to find anything else than: use a real language for configuration.
So, I've started prototyping awesome 3 using Lua. The choice was not obvious, and despite the problem Lua might suffer, it's one of the easiest language to integrate into an existing application. There's still a video of a first version here.
But, let's go a little back: in January 2008, Arnaud Fontaine contacted me because he was interested to use awesome as one of its school project. He decided to port awesome from Xlib to XCB, a modern asynchronous X library.
His work took some time, but in May 2008, Arnaud did finished to port git master version of awesome to use XCB.
Consequently, I decided to start a new major branch, using XCB instead of Xlib (no change for users in this regard) and Lua instead of our previous flat configuration file format.
Development
It took me a while to get from here to there, but in September 2008, it was ready. We had a simple Lua API, and the XCB port was working perfectly.
It took us some time to release and have something totally working, because we had to work on XCB and contribute back to the project. It was really not ready to use by an application, but we did great work in this area and it's now really fine.
We're still here
Releases continue to happens, 3.1 around December 2008, and 3.2 around March 2009. 3.3 should be here in June.
One of the drawback we had, is that we moved many stuff from C to Lua. Why? Because writing things in Lua is quicker and easier to maintain than C, and makes thing more configurable for the user.
For example, the layout algorithm used to organize window were written in C until 3.2 came out. At that time, users had no choice than using a set of predefined layout to organize their windows.
Starting with 3.2, if they have minimal knowledge about geometry, they can start writing a layout function organising windows on the screen.
But this kind of API changes was a bit rough for users, since they had to port some part of their configuration file to the new API.
The thing is that the project was still a teenager at that time, not really knowing were it will go. But I'm happy to announce that API breakage are more and more rare (so far only one minor between 3.2 and 3.3), and anyway always for the Good.
But I admit that it built a bad reputation around awesome 3.x during its first month of existence.
Future direction
I am currently working on 3.3 development. We have still many things to do. Time passing, we get more idea, and more users. And more users bring more ideas.
We also have many more contributors, and some guys are even taking maintainer-ship of some code area.
Conclusion
My post title is "Taking the other direction" because I feel this way.
I've got that feeling that some approaches in projects like GNOME are sometimes bad. Please don't misread me, I know we are not playing in the same yard.
When adding a key shortcut for starting an application makes you dig into gconf, I wonder how this is a win for the user.
Well, it's probably a win for the end-user, but I surely am not one of them. And I don't intend to target them with my software, anyway.
And now, when I hear things like GNOME 3.0 and the "desktop shell" approach, that makes me smile.
Guys, it was time, but have luck. What I see from here, is that any desktop control interface is wrong somehow, and that there's no approach that can fulfill all users wishes.
I think that we, the awesome development team (no pun intended) took the direction of building a frame-work window manager rather than a solution written in marble.
We (partially) solved the issue of UI ergonomic by not writing one and allowing the user to write his own. I don't say that's easy to do for most of users, but it's doable.
And I think it's worth it: I use window managers since I use Linux, around 1998. If something like awesome came 5 years ago, I'd be using it so far, because you can write Fluxbox or WindowMaker using awesome in a hundred of Lua code. And you can write your own version of it. And it starts in less than 3 seconds, supporting almost all standard desktop specification (ICCCM, EWMH, XDG, system tray, message notification, D-Bus, etc), whereas many of the window mangers do not.
You can even write and play space invaders.
Finally, I'm happy about the the road we took so far, and hope we will continue into that direction. The rants I read about our project are not that big, compared to the kudos we received.
Myon recently posted a nice statistic about popular single
letter package name prefixes. Just out of curiosity I started
wondering about popular single letter package name suffixes:
On a machine with Debian oldstable, stable, testing, unstable and
experimental in its sources.list, I ran the following command:
$ apt-cache search -n . \
awk ' print $1 ' \
sed -e 's/.$//' \
sort \
uniq -c \
sort -n
And to my surprise there is a non-obvious winner:
$ apt-cache search -n '^gp.$' gpa - GNU Privacy Assistant gpc - The GNU Pascal compiler gpe - The G Palmtop Environment (GPE) metapackage gpm - General Purpose Mouse interface gpp - a general-purpose preprocessor with customizable syntax gpr - GUI for lpr: print files and configure printer-specific options gps - Graphical Process Statistics using GTK+ gpt - G-Portugol is a portuguese structured programming language gpw - Trigraph Password GeneratorBut since I searched through the binary packages many other hits are more obvious, like the seven packages hbf-cns40-1 to hbf-cns40-7:
[...]
4 ar
4 aspell-f
4 automake1.
4 cpp-4.
4 e
4 g++-4.
4 gappletviewer-4.
4 gcc-4.
4 gcj-4.
4 gcompris-sound-e
4 gfortran-4.
4 gij-4.
4 go
4 gobjc-4.
4 gobjc++-4.
4 h
4 iceweasel-l10n-e
4 iceweasel-l10n-k
4 kde-i18n-f
4 kde-i18n-h
4 kde-l10n-e
4 kde-l10n-s
4 kile-i18n-e
4 koffice-i18n-e
4 koffice-i18n-s
4 koffice-l10n-e
4 koffice-l10n-f
4 libqbanking
4 myspell-f
4 myspell-h
4 openoffice.org-help-e
4 openoffice.org-l10n-b
4 openoffice.org-l10n-h
4 openoffice.org-l10n-k
4 sd
4 tcl8.
4 tk8.
5 aspell-e
5 aspell-h
5 iceweasel-l10n-s
5 kde-i18n-b
5 kde-i18n-e
5 kde-i18n-t
5 kde-l10n-k
5 openoffice.org-l10n-e
5 openoffice.org-l10n-t
5 pa
5 tc
6 gc
6 kde-i18n-s
6 libdb4.
6 m
6 openoffice.org-l10n-n
6 openoffice.org-l10n-s
6 s
7 hbf-cns40-
9 gp
But there are also some other interesting observations to make:
Gammu 1.24.0 is out! It does not bring any new outstanding features, just
small optimizations in SMSD, documentation improvements and various bug fixes.
Full list of changes:
~/.xmonad/xmonad.hs. That file is a
full fledged Haskell program, which gets compiled to obtain your
own xmonad executable which you run as your own window manager.
/usr/bin/xmonad is the executable you initially run,
but is just a wrapper around the compilation + run mechanism
import XMonad
import XMonad.Config.Gnome
main = xmonad $ gnomeConfig
modMask = mod4Mask
\o/.
killall metacity ; xmonad
& . For the next session runs you will have to remember
the running xmonad in your Gnome session, as usual.mod-p will get you a
gnome-run dialog box, and appropriate padding for the (upper!)
Gnome panel.
The only glitch is that you will get 9 desktops which can
clutter your workspace switched. My solution is to have the appler
show workspaces on 2 rows but beware of bug 524065,
which is really annoying.
xcompmgr -c &. No wonder that it is way faster
than compositing manager support in metacity.
import XMonad
import XMonad.Config.Gnome
myManageHook = composeAll [
(className =? "Pidgin" <&&> title =? "Buddy List") --> doFloat
, (className =? "Gnome-panel" <&&> title =? "Run Application") --> doFloat
-- , (className =? "XEyes") --> doShift "7"
]
main = xmonad $ gnomeConfig
modMask = mod4Mask
, manageHook = myManageHook <+> manageHook gnomeConfig
xprop egrep "CLASS NAME".
Note that you don't need to care about panel placement because
it is already taken care of by the default gnome config. Still
beware of not using myManageHook as your only management
hook, you should update the default one using the
<+> monad as I did above.
xmonad rant
So, what's wrong with xmonad + Gnome in Debian? Well, the fact
that it will take about 200 Mb of disk space on amd64 by default.
o_O
Why so? Because xmonad is affected by the static linking
hell which seems to be shared by modern statically typed
functional languages, including in the category both Haskell and my
beloved OCaml. In short, applications written for those language
link statically code written in the implementation language in most
cases; they rely on legacy shared libraries only for bindings to C
libraries.
For xmonad that means that if you are fine with the default
configuration you will get a cheap 2 Mb binary package. If you are
not, you will need to write your conffile ... which is a Haskell
program ... using several contrib libraries ... and needing ghc6 to
be compiled and run as your own window manager executable.
This is plainly dumb and induces all the usual problems of
static linking, like disk consumption due to non-shared (Haskell)
code, and worries about staying up to date with the latest library
release in case of fixes (including security fixes) need
to be propagated to user executables.
Truth to be said, /usr/bin/xmonad does a wonderful
job in hiding all this to the final user, but still the design
choice is an unpleasant one.
[drm] Initialized radeon 1.29.0 20080528 on minor 0 agpgart-intel 0000:00:00.0: AGP 2.0 bridge agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode pci 0000:01:00.0: putting AGP V2 device into 4x mode [drm] Setting GART location based on new memory map [drm] Loading R200 Microcode platform radeon_cp.0: firmware: requesting radeon/R200_cp.bin radeon_cp: Failed to load firmware "radeon/R200_cp.bin" [drm:radeon_do_init_cp] *ERROR* Failed to load firmware!As noted in the changelog file, the radeon firmware R200_cp.bin has been removed from the kernel, and is now available in the separate firmware-linux Debian package. So the simple fix for this issues is:
$ apt-get install firmware-linux $ dpkg -L firmware-linux grep R200_cp.bin /lib/firmware/radeon/R200_cp.binAfter restarting X, the dmesg output looks more sane again:
agpgart-intel 0000:00:00.0: AGP 2.0 bridge agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode pci 0000:01:00.0: putting AGP V2 device into 4x mode [drm] Setting GART location based on new memory map [drm] Loading R200 Microcode platform radeon_cp.0: firmware: requesting radeon/R200_cp.bin [drm] writeback test succeeded in 2 usecs
Next.