X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/cfa0b7c3a6056ae43fc1bcf60a4d832e7dacd932..2bc5cc531c50d87c208965cdc80c0f42df56ecb1:/awesome/bindings.lua diff --git a/awesome/bindings.lua b/awesome/bindings.lua index dd3edff..e53b301 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -1,4 +1,5 @@ local hotkeys_popup = require("awful.hotkeys_popup").widget +local utils = require("utils") -- Default modkey. modkey = "Mod4" @@ -40,9 +41,9 @@ globalkeys = gears.table.join(globalkeys, {description = "show main menu", group = "awesome"}), -- Layout manipulation - awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end, + awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( 1) end, {description = "swap with next client by index", group = "client"}), - awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end, + awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( -1) end, {description = "swap with previous client by index", group = "client"}), awful.key({ modkey, }, "#49", function () awful.screen.focus_relative( 1) end, -- that's the key left of 1 (chronos) {description = "focus the next screen", group = "screen"}), @@ -124,7 +125,7 @@ globalkeys = gears.table.join(globalkeys, awful.key({ }, "F13", function () awful.spawn("ksnapshot") end), awful.key({ }, "Print", function () awful.spawn("ksnapshot") end), -- ranger - awful.key({ modkey }, "r", function () awful.spawn(terminal .. " -e ranger") end), + awful.key({ modkey }, "r", function () utils.spawn_terminal("ranger") end), -- Volume awful.key({ }, "XF86AudioMute", function () awful.spawn("pulsemixer --toggle-mute") end, {description = "toggle mute", group = "volume"}), @@ -142,7 +143,7 @@ globalkeys = gears.table.join(globalkeys, awful.key({ modkey, "Control" }, "Escape", function () awful.spawn("i3lock -c 000000") end), -- VimWiki awful.key({ modkey }, "i", function () - awful.spawn(terminal.." -name vimwiki -e vim -c 'call vimwiki#base#goto_index(v:count1)'") + utils.spawn_terminal("vim -c 'call vimwiki#base#goto_index(v:count1)'", { instance = "vimwiki"}) end) )