]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: launch rofimoji to pick emojis
authorSamir Benmendil <me@rmz.io>
Tue, 31 Oct 2023 21:20:32 +0000 (21:20 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 17 Dec 2023 17:36:18 +0000 (17:36 +0000)
This needs to be extended to match all utf8 chars.

awesome/bindings.lua

index 50e723107cc21ae36b1436bfd46b8a185b590785..be64d76b6f3947343be925bccf7724b5862f66cd 100644 (file)
@@ -168,7 +168,11 @@ globalkeys = gears.table.join(globalkeys,
     -- 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"})
+              {description = "paste primary selection", group = "awesome"}),
+    -- utf8 picker
+    -- TODO: the mapping is similar to kitty's <C-S-u>, but worth changing maybe?
+    awful.key({ modkey, "Shift"}, "u", function () awful.spawn('rofimoji') end,
+              { description = "select utf8 character", group = "awesome"})
 )
 
 -- Client keys {{{1