Re: [wmii] moving a floating window with the keyboard?

From: Joseph Iacobucci <gtg312i_AT_mail.gatech.edu>
Date: Sat, 21 Jul 2007 10:29:44 -0400

>Is it possible to move a floating window with the keyboard, if so, how?
>And if not, I would like to suggest to implement such possibility.

Miernik,

I found that I wanted to do the same thing. What you can do is edit the
wmiirc file to include new key bindings to do that.

in the "#SHORTCUTS" section, I added:

$MODKEY-o
$MODKEY-Shift-o
$MODKEY-i
$MODKEY-Shift-i
$MODKEY-u
$MODKEY-Shift-u
$MODKEY-y
$MODKEY-Shift-y

then, in the event loop with all of the other bindings,

$MODKEY-o)
         xwrite /view/sel/sel/geom +0 +0 +10 +0 ;; #right
$MODKEY-Shift-o)
         xwrite /view/sel/sel/geom +0 +0 -10 +0 ;; #left
$MODKEY-i)
         xwrite /view/sel/sel/geom +0 +0 +0 +10;; #down
$MODKEY-Shift-i)
         xwrite /view/sel/sel/geom +0 +0 +0 -20;; #up
$MODKEY-u)
         xwrite /view/sel/sel/geom +10 +0 +0 +0 ;; #right
$MODKEY-Shift-u)
         xwrite /view/sel/sel/geom -10 +0 +0 +0 ;; #left
$MODKEY-y)
         xwrite /view/sel/sel/geom +0 +10 +0 +0;; #down
$MODKEY-Shift-y)
         xwrite /view/sel/sel/geom +0 -10 +0 +0;; #up

i,o: they resize the window.
u,y: they move the window.

Kind of a kludge, but I think it is going to work for me. Choose your
own key bindings, those are what I am using.

-- 
Joseph Iacobucci
Email: gtg312i_AT_mail.gatech.edu
Received on Sat Jul 21 2007 - 16:30:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:25:59 UTC