aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/fuzzelunicode
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-08-25 15:44:14 +0530
committerkrolxon <krolyxon@tutanota.com>2025-08-25 15:44:14 +0530
commitffeaf344c429ab195160be967a5fb62346f3eed9 (patch)
tree5cb9ebeca9d292a6a1b09b5398e88a276c67b18c /.local/bin/fuzzelunicode
parenta81ab033ec5ac0cdbdddfc31f242aee7cb5aee4e (diff)
move to fuzzel from rofi
rofi is bad when it comes to fuzzy matching and also you cannot execute command as it is, for example you cannot pass arguements to commands like "setwall -m". Fuzzel is way simpler, natively supports wayland and is a drop in replacement for dmenu.
Diffstat (limited to '.local/bin/fuzzelunicode')
-rwxr-xr-x.local/bin/fuzzelunicode13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/fuzzelunicode b/.local/bin/fuzzelunicode
new file mode 100755
index 0000000..cc97f19
--- /dev/null
+++ b/.local/bin/fuzzelunicode
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# The famous "get a menu of emojis to copy" script.
+
+# Get user selection via dmenu from emoji file.
+chosen=$(cut -d ';' -f1 ~/.local/share/chars/* | fuzzel -d -i -l 30 | sed "s/ .*//")
+
+# Exit if none chosen.
+[ -z "$chosen" ] && exit
+
+wtype "$chosen"
+printf "$chosen" | wl-copy
+notify-send "'$chosen' copied to clipboard." &