From: Samir Benmendil Date: Tue, 31 Oct 2023 21:20:32 +0000 (+0000) Subject: awesome: launch rofimoji to pick emojis X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/816b071c52f7f22ca39a7233d46a6a499061b6e6?ds=inline awesome: launch rofimoji to pick emojis This needs to be extended to match all utf8 chars. --- diff --git a/awesome/bindings.lua b/awesome/bindings.lua index 50e7231..be64d76 100644 --- a/awesome/bindings.lua +++ b/awesome/bindings.lua @@ -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 , but worth changing maybe? + awful.key({ modkey, "Shift"}, "u", function () awful.spawn('rofimoji') end, + { description = "select utf8 character", group = "awesome"}) ) -- Client keys {{{1