diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-05-10 20:55:41 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-05-10 20:58:51 +0200 |
commit | 7e1633cb04fffe69bfdfbcf9406907699dfb3856 (patch) | |
tree | 3db38755c0f3c367d9dd9e4a63c3cade3183abd1 /.config/awesome/switcher.lua | |
parent | caa2e3ee84a2340ee364c4cc8a878bb250e40370 (diff) | |
download | dotfiles-7e1633cb04fffe69bfdfbcf9406907699dfb3856.tar.gz dotfiles-7e1633cb04fffe69bfdfbcf9406907699dfb3856.tar.bz2 dotfiles-7e1633cb04fffe69bfdfbcf9406907699dfb3856.zip |
awesome: Rewrite for awesome 3.5 API
Diffstat (limited to '.config/awesome/switcher.lua')
-rw-r--r-- | .config/awesome/switcher.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/awesome/switcher.lua b/.config/awesome/switcher.lua index c15f7ab..4f66305 100644 --- a/.config/awesome/switcher.lua +++ b/.config/awesome/switcher.lua @@ -5,8 +5,8 @@ -- Licensed under the GPL-3 ---------------------------------------------------------------- -- To use this module add: --- require("switcher") --- to the top of your rc.lua. +-- local switcher = require("switcher") +-- to the top of your rc.lua -- -- And add the following to your global keybindings: -- awful.key({ modkey, }, "Tab", function() @@ -87,7 +87,7 @@ local function switcher_end() capi.client.focus = c end -function switch(modifiers, key, event) +local function switch(modifiers, key, event) if event == "press" and key == state.key_next then switcher_next(1) elseif event == "press" and key == state.key_prev then @@ -112,4 +112,3 @@ function start(rel, key_mod, key_next, key_prev) switcher_next(rel) capi.keygrabber.run(switch) end - |