I am not sure if i got you right, but your problem sounds to me like
"switching back to the previously focused client". This can be done like
this:
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end)
On Wed, Dec 9, 2009 at 12:52 AM, Parasol Otwierany <[email protected]> wrote:
> Hello everyone.
>
> I've been a long time user of tiling window managers. I've started with Ion
> somewhere near 2002. I was a happy user for a few years.
>
> Two years ago I started looking for something new, something better. I have
> been using Xmonad, Wmii and DWM. Finally I came across this awesome Awesome
> Window Manager and I'm using it almost from it's first release :)
>
> But there is still one thing in awesome that I would like to see. It would
> finally let me stop using mouse as often as I do now.
>
> During my normal day at work I have +50 urxvt terminals and some other X
> windows opened. On one tag (screen) I normally have 9 or sometimes 12 urxvt
> terminals. Switching between them is horror! The default configuration from
> awesome let me use "next window" and "previous window" keybindings.
> Unfortunately sometimes I have to use a keybinding 11 times to switch to my
> desired window. Sometimes I use my mouse for it but I really hate it.
>
> What I desire the most is a behaviour that KDE/Gnome/Xfce/Blackbox/Openbox
> and other popular window manager have (also present in MS Windows/OSX
> products). It's "history" based ALT+TAB switching, at least I call it this
> way.
>
> The desired behaviour is like this:
>
> We have a 3x3 grid of xterms with the topleft window active:
>
> xoo
> ooo
> ooo
>
> I hold ALT and press TAB four times to get to the middle window:
>
> ooo
> oxo
> ooo
>
> Now, if I want to get back to the topleft window I just have to press
> ALT+TAB once! If I want to get back to the middle one again I just press
> ALT+TAB again (only once).
>
> But in Awesome situtaion looks like this:
>
> xoo
> ooo
> ooo
>
> I press ALT+TAB four times to get to the middle window:
>
> ooo
> oxo
> ooo
>
> Now, if I want to get back to the topleft window I have to press ALT+TAB
> five times. If I want to get back to the middle one again I have to press
> ALT+TAB four times :(
>
> I would LOVE to see this in Awesome, is that possible?
>
> Again, I really like Awesome and I think it's the first WM worth using
> after Ion3 :)
>
> Cheers,
> B.
>
>
--
Anurag Priyam
2nd Year,Mechanical Engineering,
IIT Kharagpur.
+91-9775550642