Diff for "Windowlab"


Differences between revisions 10 and 18 (spanning 8 versions)
Revision 10 as of 2006-06-27 09:54:30
Size: 4155
Editor: bess2
Comment:
Revision 18 as of 2009-04-30 21:40:47
Size: 4306
Editor: adsl190-027000006
Comment: Removed CategoryDocumentation reference
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents(2)]]|| ||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents(2)>>||
Line 5: Line 5:
This guide helps you install and customise windowlab on ubuntu. Windowlab is a very small, simple, flexible and reliable window manager (wm). Unlike wms such as GNOME there are no icons, no desktop and no frills, just windows, which you may rearrange, open, close and give the focus to, allowing you to get on with whatever prompted you to start your computer in the first place. You might think of it as being 'one step up from X' but if you give it a try and get used to it, you may also find that it's a very productive environment. The background and motivation for windowlab is explained at [http://nickgravgaard.com/windowlab/]. If you want to decorate your desktop and have multiple screens etc, there are plenty of simple ways of doing that without installing lots of software you may never need. This a characteristically *NIX way of doing things (small, 'sharp' applications glued together). This guide helps you install and customise windowlab on ubuntu. Windowlab is a very small, simple, flexible and reliable window manager (wm). Unlike wms such as GNOME there are no icons, no desktop and no frills, just windows, which you may rearrange, open, close and give the focus to, allowing you to get on with whatever prompted you to start your computer in the first place. You might think of it as being 'one step up from X' but if you give it a try and get used to it, you may also find that it's a very productive environment. The background and motivation for windowlab is explained at [[http://nickgravgaard.com/windowlab/]]. If you want to decorate your desktop and have multiple screens etc, there are plenty of simple ways of doing that without installing lots of software you may never need. This a characteristically *NIX way of doing things (small, 'sharp' applications glued together).
Line 9: Line 9:
== Dapper == == Dapper or later ==
Line 17: Line 17:
There is no package for Breezy, so you need to download, compile and install from source. Make sure you have {{{gcc}}} installed. Download the latest version of windowlab from [http://nickgravgaard.com/windowlab/] and type the following commands: There is no package for Breezy, so you need to download, compile and install from source. Make sure you have {{{gcc}}} installed. Download the latest version of windowlab from [[http://nickgravgaard.com/windowlab/]] and type the following commands:
Line 27: Line 27:
You should now have windowlab installed in {{{/usr/X11R6/bin/}}}. Use the instructions in ["CustomXSession"] to make sure that you can use it, and make sure your {{{.xinitrc}}} file ends with the line You should now have windowlab installed in {{{/usr/X11R6/bin/}}}. Use the instructions in [[CustomXSession]] to make sure that you can use it, and make sure your {{{.xinitrc}}} file ends with the line
Line 40: Line 40:

To display the date and time you could launch {{{xclock}}} but that doesn't display the time in the window's title bar, so you need to focus the window before you can read it. There is a python xclock clone at [http://jim.sdf-eu.org/py/pyxclock] which does display the time in the title bar, so you could use that, launching it from {{{.xinitrc}}}.
Line 63: Line 61:
Many GUI applications support the standard X option ''geometry'', allowing you to specify the initial size and position of the window in the format WxH+X+Y, e.g. the command Many GUI applications support the standard X option ''geometry'', allowing you to specify the initial size and position of the window in the format {{{WxH+X+Y}}}, e.g. the command
Line 69: Line 67:
will open a terminal 100 characters wide and 30 lines tall, with the top left hand corner 40 pixels from the left edge and 30 pixels from the top edge of the screen. (Applications will more often intepret the W and H coordinates as pixel values.) This is useful in windowlab because windows are otherwise created at the current mouse position. will open a terminal 100 characters wide and 30 lines tall, with the top left hand corner 40 pixels from the left edge and 30 pixels from the top edge of the screen. (Applications will more often intepret the W and H coordinates as pixel values.) It is useful to include this option in the windowlab menu commands because windows are otherwise created at the current mouse position.
Line 88: Line 86:

== Show the date and time on the desktop ==
Install {{{dzen }}} then create this shell script as {{{~/bin/status.sh}}} and add a line to {{{.xinitrc}}} to call it:
{{{
  #!/bin/sh
  while true ; do
          date +"%H.%M %a %b %d"
          sleep 60
      done | dzen2 -p 10 -ta r -y 20 -fg gray -bg steelblue4 -fn -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-1
}}}
(If that font isn't on your system you can check which ones actually are using {{{xlsfonts}}}.)
Line 89: Line 98:
CategoryDocumentation

Introduction

This guide helps you install and customise windowlab on ubuntu. Windowlab is a very small, simple, flexible and reliable window manager (wm). Unlike wms such as GNOME there are no icons, no desktop and no frills, just windows, which you may rearrange, open, close and give the focus to, allowing you to get on with whatever prompted you to start your computer in the first place. You might think of it as being 'one step up from X' but if you give it a try and get used to it, you may also find that it's a very productive environment. The background and motivation for windowlab is explained at http://nickgravgaard.com/windowlab/. If you want to decorate your desktop and have multiple screens etc, there are plenty of simple ways of doing that without installing lots of software you may never need. This a characteristically *NIX way of doing things (small, 'sharp' applications glued together).

Installation

Dapper or later

Install using synaptic or by typing

sudo apt-get install windowlab

Breezy

There is no package for Breezy, so you need to download, compile and install from source. Make sure you have gcc installed. Download the latest version of windowlab from http://nickgravgaard.com/windowlab/ and type the following commands:

tar -xvf windowlab-XXX.tar 
cd windowlab-XXX
make
sudo make install

Post-Installation

You should now have windowlab installed in /usr/X11R6/bin/. Use the instructions in CustomXSession to make sure that you can use it, and make sure your .xinitrc file ends with the line

exec windowlab

Configuration

You can set a background colour or image for your desktop using xsetroot. Add something like this to .xinitrc:

xsetroot -cursor_name top_left_arrow -solid deepskyblue4

To use rhythmbox (the default ubuntu music app) you need to start ESD automatically (how?) or set gstreamer to use something other than ESD for output. Use gstreamer-properties to select ALSA or OSS etc.

When you start windowlab the menu is visible when right-clicking anywhere outside an active window. To select a menu option, release the mouse over it. You'll start out with the default menu, which lives at /etc/X11/windowlab/windowlab.menurc. To create your own, type:

mkdir ~/.windowlab
cp /etc/X11/windowlab/windowlab.menurc ~/.windowlab/

And start editing it, adding lines in the format

label:command

Use gksudo to launch apps that require su privileges, eg

network:gksudo network-admin

Many GUI applications support the standard X option geometry, allowing you to specify the initial size and position of the window in the format WxH+X+Y, e.g. the command

gnome-terminal --geometry 100x30+40+30

will open a terminal 100 characters wide and 30 lines tall, with the top left hand corner 40 pixels from the left edge and 30 pixels from the top edge of the screen. (Applications will more often intepret the W and H coordinates as pixel values.) It is useful to include this option in the windowlab menu commands because windows are otherwise created at the current mouse position.

It's quite easy to select quit from the menu accidentally. To avoid this, install gmessage and create a script like this

# ~/bin/quit-windowlab.sh
gmessage -buttons Yes:0,No:1 Quit windowlab?
case $? in
  0) skill windowlab;;
  1) ;;
esac

Then change the quit line in windowlab.menurc to

quit:~/bin/quit-windowlab.sh

Show the date and time on the desktop

Install dzen  then create this shell script as ~/bin/status.sh and add a line to .xinitrc to call it:

  #!/bin/sh
  while true ; do
          date +"%H.%M %a %b %d"
          sleep 60
      done | dzen2 -p 10 -ta r -y 20 -fg gray -bg steelblue4 -fn -xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso8859-1 

(If that font isn't on your system you can check which ones actually are using xlsfonts.)


Windowlab (last edited 2009-04-30 21:40:47 by adsl190-027000006)