X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5c2cf9e8bf6e29f72071969a6f59a9cbe5ceb6f7..cfa0b7c3a6056ae43fc1bcf60a4d832e7dacd932:/awesome/bindings.lua diff --git a/awesome/bindings.lua b/awesome/bindings.lua index 96b31ea..dd3edff 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -5,12 +5,12 @@ modkey = "Mod4" altkey = "Mod1" -- Mouse bindings {{{1 -root.buttons(awful.util.table.join( +root.buttons(gears.table.join( awful.button({ }, 3, function () mymainmenu:toggle() end) )) -- Global Keys {{{1 -globalkeys = awful.util.table.join(globalkeys, +globalkeys = gears.table.join(globalkeys, awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description="show help", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, @@ -114,7 +114,7 @@ globalkeys = awful.util.table.join(globalkeys, prompt = "Run Lua code: ", textbox = awful.screen.focused().mypromptbox.widget, exe_callback = awful.util.eval, - history_path = awful.util.get_cache_dir() .. "/history_eval" + history_path = gears.filesystem.get_cache_dir() .. "/history_eval" } end, {description = "lua execute prompt", group = "awesome"}), @@ -147,7 +147,7 @@ globalkeys = awful.util.table.join(globalkeys, ) -- Client keys {{{1 -clientkeys = awful.util.table.join( +clientkeys = gears.table.join( awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen @@ -192,7 +192,7 @@ clientkeys = awful.util.table.join( -- Be careful: we use keycodes to make it works on any keyboard layout. -- This should map on the top row of your keyboard, usually 1 to 9. for i = 1, 9 do - globalkeys = awful.util.table.join(globalkeys, + globalkeys = gears.table.join(globalkeys, -- View tag only. awful.key({ modkey }, "#" .. i + 9, function () @@ -243,7 +243,7 @@ for i = 1, 9 do end -- Client Buttons {{{1 -clientbuttons = awful.util.table.join( +clientbuttons = gears.table.join( awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 3, awful.mouse.client.resize))