On Thu, Dec 11, 2008 at 12:21:51AM -0500, Aditya Mahajan wrote:
I am using wmii-hg2409. Is it possible to change the geometry of the
windows using the file system. I would like to map some keyboard keys to
increase/decearse the width of the columns.
See the grow and nudge commands in wmii(1). I use the following
(in rc syntax) to enter a sort-of move/resize mode on M-C-g:
# Bindings to move/resize windows. M-C-g enters move/resize mode.
# <h/j/k/l> grows the window in the given direction
# C-<h/j/k/l> shrinks the window in the given direction
# S-<h/j/k/l> moves the window in the given direction
fn Key-$mod-Control-g {
@{
. wmii.rc $"*
fn mode {
mod=$1; cmd=$2; shift 2
eval '
fn Key-$mod^$left {' wmiir xwrite /tag/sel/ctl $cmd
sel sel left $"* '}
fn Key-$mod^$right {' wmiir xwrite /tag/sel/ctl $cmd
sel sel right $"* '}
fn Key-$mod^$up {' wmiir xwrite /tag/sel/ctl $cmd
sel sel up $"* '}
fn Key-$mod^$down {' wmiir xwrite /tag/sel/ctl $cmd
sel sel down $"* '}'}
mode '' grow
mode Control- grow -1
mode Shift- nudge
fn Key-Escape { wi_cleankeys; exit }
wi_eventloop
}&}
--
Kris Maglione
A programmer is a person who passes as an exacting expert on the basis
of being able to turn out, after innumerable punching, an infinite
series of incomprehensive answers calculated with micrometric
precisions from vague assumptions based on debatable figures taken
from inconclusive documents and carried out on instruments of
problematical accuracy by persons of dubious reliability and
questionable mentality for the avowed purpose of annoying and
confounding a hopelessly defenseless department that was unfortunate
enough to ask for the information in the first place.
--IEEE Grid newsmagazine