From ffeaf344c429ab195160be967a5fb62346f3eed9 Mon Sep 17 00:00:00 2001 From: krolxon Date: Mon, 25 Aug 2025 15:44:14 +0530 Subject: 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. --- .local/bin/fuzzelunicode | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .local/bin/fuzzelunicode (limited to '.local/bin/fuzzelunicode') 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." & -- cgit v1.2.3