Saltycrane logo

SaltyCrane Blog

Notes on Python, Django, and web development on Ubuntu Linux

     Posts tagged "wmii"

Wmii Python script to monitor remote machines

I like to monitor our web servers by ssh'ing into the remote machine and watching "top", tailing log files, etc. Normally, I open a terminal, ssh into the remote machine, run the monitoring command (e.g. "top"), then repeat for the rest of the remote machines. Then I adjust the window sizes so I can see everything at once.

My window manager, wmii, is great for tiling a bunch of windows at once. It is also scriptable with Python, so I wrote a Python script to create my web server monitoring view. Below is my script. I also put ...

... read more »

Install wmii snapshot 20090703 on Ubuntu Jaunty

On Friday I installed the latest snapshot of wmii, the lightweight, tiling, dynamic, scriptable, keyboard navigatable window manager. (See my wmii tag for more posts about wmii.) Wmii orangizes windows into columns. Traditionally there has been three modes for each column: default, stack, and max. "Default" shows all windows in a column. "Stack" shows only one window at a time with the title bars of the other windows showing. "Max" shows only one window without any other titlebars. I usually use two columns each in stack mode. To navigate windows, I use Mod4+j/k to move among windows in ...

... read more »

Scripting wmii column widths with Python

I mentioned in my previous post on using wmii with Gnome that I had written a script for resizing the column widths in wmii. This is the followup post. Note, I am using the 20080520 snapshot of wmii. This doesn't work with wmii 3.6 (as Marco commented below).

To incrementally change window sizes, I use the following in my ~/.wmii-3.5/wmiirc file:

	Key $MODKEY-y
		# shrink horizontally
		wmiir xwrite /tag/sel/ctl grow sel sel right -10
		wmiir xwrite /tag/sel/ctl grow sel sel left -10
	Key $MODKEY-u
		# grow horizontally
		wmiir xwrite /tag/sel/ctl grow sel ...
... read more »

Using wmii with Gnome

Thanks to Glyph, I can now use wmii as the window manager for Gnome. I like wmii because it makes good use of screen real estate, is keyboard-navigatable, is scriptable1, and uses minimal resources2.

It is possible to use gnome-panel within wmii-- just press MOD+P gnome-panel RET. And you can manually fine tune your .xinitrc or .xsession by adding your required stuff such as gnome-power-manager and nm-applet. (This is what I had been doing (and may continue to do depending on how this full on Gnome thing works out ...

... read more »

Install wmii snapshot

These are my notes for installing wmii snapshot in my home directory on Ubuntu 8.04 Hardy.

  • Download the latest snapshot (wmii+ixp-20080520) from the wmii homepage and save it to ~/incoming.
  • Untar the snapshot.
    $ cd ~/incoming
    $ tar -zxvf wmii+ixp-20080520.tgz
  • Install prerequisites:
    $ sudo apt-get install build-essential xorg-dev
    $ sudo apt-get install dwm-tools
  • Build: (I left the defaults for everything during make config except for the path. I changed this to a temporary directory, ~/tmp/wmii.)
    $ cd ~/incoming/wmii+ixp-20080520
    $ make config
    $ make 
    $ make install
  • Move bin, etc, lib, and share to a new wmii directory.
    $ mkdir ~/lib/wmii
    $ mv ...
... read more »

Install coLinux (and Ubuntu Hardy) on Win XP using Slirp to internet and TAP to host behind a corporate firewall/proxy server

coLinux allows you to run a full Linux distribution, such as Ubuntu Hardy, on top of Windows at near native speeds. It runs as a single Windows process with its own specially allocated address space. The guest linux system can run from either a separate disk partition or from a single file on your Windows filesystem.

My initial impression of coLinux was so positive, I had planned to name this post, Goodbye Cygwin, hello coLinux. After 2 months of using coLinux, I still am using Cygwin a little bit. Despite being slow, (almost unbearably slow with my company's mandatory ...

... read more »

My software tools list

Inspired by Mark Pilgrim's 2006 Essentials list, below is a list of my current software tools. If you notice a lot of "I switched from ..." statements, keep in mind that I am a programmer who likes shiny things.

Other lists

Contents

... read more »
Created with Django | Hosted by Slicehost