]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/bindings.lua
mpv: don't ignore vp9 codecs
[dotfiles.git] / awesome / bindings.lua
index 8d960099baa5797174b1e71f48919f83018c1582..ae2ebafd055ef7036ec50b2063b03f5578e184db 100644 (file)
@@ -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