On Tue, May 09, 2006 at 09:15:57PM +0400, Alex Elide wrote:
>
> Pixelhunting is awful, but thick borders are much more awful.
> Alt-Mouse is reaaly cool.
>
> There is only one thing in this world that is better
> than Alt-Mouse: keyboard shortcuts.
>
> I try using something like
> --
> SIZED=30
> function grow_up(){
> set -- `wmiir read /view/sel/sel/geom`
> xw /view/sel/sel/geom "$1 $(($2-$SIZED)) $3 $(($4+$SIZED))"
> }
> function shrink_up(){
> set -- `wmiir read /view/sel/sel/geom`
> xw /view/sel/sel/geom "$1 $(($2+$SIZED)) $3 $(($4-$SIZED))"
> }
> --
>
> but this is very slowly and ugly.
>
> Is there a better solution?
Yes, the geom files understand a more mature syntax, see
wmiiwm(1) for details.
Basically you can use following syntax from:
move north: xwrite /view/sel/sel/geom -0 -30 -0 -0
move south: xwrite /view/sel/sel/geom -0 +30 -0 -0
move east: xwrite /view/sel/sel/geom +30 -0 -0 -0
move west: xwrite /view/sel/sel/geom -30 -0 -0 -0
snap north: xwrite /view/sel/sel/geom -0 north -0 -0
snap south: xwrite /view/sel/sel/geom -0 south -0 -0
snap east: xwrite /view/sel/sel/geom east -0 -0 -0
snap west: xwrite /view/sel/sel/geom west -0 -0 -0
resize north: xwrite /view/sel/sel/geom -0 -0 -0 -30
resize south: xwrite /view/sel/sel/geom -0 -0 -0 +30
resize east: xwrite /view/sel/sel/geom -0 -0 +30 -0
resize west: xwrite /view/sel/sel/geom -0 -0 -30 -0
Though expect a better way for wmii-4, already on TODO.
Regards,
-- Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361Received on Tue May 09 2006 - 19:26:07 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:04:44 UTC