From 816b071c52f7f22ca39a7233d46a6a499061b6e6 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 31 Oct 2023 21:20:32 +0000 Subject: [PATCH] awesome: launch rofimoji to pick emojis This needs to be extended to match all utf8 chars. --- awesome/bindings.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.48.1