You are not logged in.

#1 2008-11-10 19:34:16

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

awesome bindings

so...recently switched to awesome, and I'm stealing some configs tongue

but I'm confused as to what exactly the following means...can someone enlighten me?

keynumber = 9
for i = 1, keynumber do
    keybinding({ modMask }, "F"..i,
    function ()
        local screen = mouse.screen
        if tags[screen][i] then
            awful.tag.viewonly(tags[screen][i])
        end
    end):add()
    keybinding({ modMask, "Control" }, "F"..i,
    function ()
        local screen = mouse.screen
        if tags[screen][i] then
            tags[screen][i].selected = not tags[screen][i].selected
        end
    end):add()
    keybinding({ modMask, "Shift" }, "F"..i,
    function ()
        if client.focus then
            if tags[client.focus.screen][i] then
                awful.client.movetotag(tags[client.focus.screen][i])
            end
        end
    end):add()
end
keybinding({ modMask }              , "b"       , function ()
    if statusbar[mouse.screen].screen == nil then
        statusbar[mouse.screen].screen = mouse.screen
    else
        statusbar[mouse.screen].screen = nil
    end
end):add()

Last edited by Stythys (2008-11-10 19:34:30)


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

#2 2008-11-10 19:43:18

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: awesome bindings

The first keybinding:

Will bind mod4+F1 to F9 to switching to tag 1-9

Second one:

Will bind mod4+control+F1 to F9 to also view tag 1-9

Third:

Binds mod4+shift+F1 to F9 to moving the current client to tag 1-9

Last:

Binds mod4+b to hiding or showing the statusbar



Hope that is clear. smile

Offline

#3 2008-11-10 20:37:52

Stythys
Member
From: SF Bay Area
Registered: 2008-05-18
Posts: 878
Website

Re: awesome bindings

ohhhhhh its the F keys...I get it now xD

thx Gigamo


[home page] -- [code / configs]

"Once you go Arch, you must remain there for life or else Allan will track you down and break you."
-- Bregol

Offline

Board footer

Powered by FluxBB