You are not logged in.

#1 2012-07-21 18:47:23

xhc
Member
Registered: 2012-02-01
Posts: 113

[SOLVED]awesome wm - Modkey+Tab

Lets say we have opened 3 windows .. If we are touching Modkey + Tab it is cycling only 2 last used windows  ... how to set it to cycle all windows?

Last edited by xhc (2012-07-21 19:30:45)


#Awesome window manager

Offline

#2 2012-07-21 19:04:47

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: [SOLVED]awesome wm - Modkey+Tab

If you mean "open" as in "visible", you could simply bind mod+tab to the same function as mod+j or mod+k.

Offline

#3 2012-07-21 19:08:38

Wibjarm
Member
Registered: 2012-05-04
Posts: 43

Re: [SOLVED]awesome wm - Modkey+Tab

If you have mod-tab bound to awful.client.focus.byidx(1), that should cycle through all of them.  It sounds like you have it bound to awful.client.focus.history.previous() or something like that, if it's just cycling between the last two focused windows.

Offline

#4 2012-07-21 19:13:51

xhc
Member
Registered: 2012-02-01
Posts: 113

Re: [SOLVED]awesome wm - Modkey+Tab

I have default rc.lua and there is:


awful.button({ }, 4, function ()
                      awful.client.focus.byidx(1)
                                               if client.focus then client.focus:raise() end
                                           end),
awful.button({ }, 5, function ()
                      awful.client.focus.byidx(-1)
                                               if client.focus then client.focus:raise() end
                                           end))
      awful.key({ modkey,           }, "Tab",
        function ()
             awful.client.focus.history.previous()
             if client.focus then
                 client.focus:raise()
             end
         end),

Last edited by xhc (2012-07-21 19:32:31)


#Awesome window manager

Offline

#5 2012-07-21 19:23:00

xhc
Member
Registered: 2012-02-01
Posts: 113

Re: [SOLVED]awesome wm - Modkey+Tab

thnx to all.. I added: "awful.client.focus.byidx(-1)" instead "awful.client.focus.history.previous()" in section modkey tab


#Awesome window manager

Offline

Board footer

Powered by FluxBB