lunedì 27 dicembre 2010

Debian and wmii for my iBookG4

I just installed debian on my iBookG4, and wmii makes me happy.

Just a few hints for a good configuration:

And to integrate these new nice features to wmii:
  • Copy and edit wmiirc:
$ cp /etc/X11/wmii-3.5/wmiirc ~/.wmii-3.5/wmiirc
$ nano ~/.wmii-3.5/wmiirc
Replace this:
# Status Bar Info
status() {
        echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date)

With this:
# Status Bar Info
status() {
        echo -n $(amixer get Master | tail -1 | awk '{print $5}' | tr -d []%) '|' $(ibam --percentcharge | head -1 | awk '{print $3}') '|' $(date | awk '{print $5}' | tr -d ,.)

Now you can see in informations about volume, battery charge and time in your status bar.

  • Create halt, reboot, suspend and hibernate scripts:
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

pbbcmd sleep

pbbcmd hibernate

And do not forget to add yourself to powerdev group and to write a .xinitrc like this:
exec ck-launch-session wmii

Nessun commento:

Posta un commento