X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/800d8089ce276ae1b2a3f9875a370b7e00a763db..e8ae4a469b8b5db19a27a2bf71bb04142a68a6f0:/awesome/bindings.lua?ds=sidebyside diff --git a/awesome/bindings.lua b/awesome/bindings.lua index 8d96009..ae2ebaf 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -41,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"}), @@ -144,7 +144,12 @@ globalkeys = gears.table.join(globalkeys, -- VimWiki awful.key({ modkey }, "i", function () utils.spawn_terminal("vim -c 'call vimwiki#base#goto_index(v:count1)'", { instance = "vimwiki"}) - end) + end), + -- clipboard + -- requires a little sleep before simulating shift+Insert, otherwise I + -- believe the focus is still on awful and not the current window + awful.key({ modkey }, "\\", function () awful.spawn('xdotool sleep 0.2 key --clearmodifiers shift+Insert') end, + {description = "paste primary selection", group = "awesome"}) ) -- Client keys {{{1