voidrice/.local/bin/dmenuunicode
2023-12-22 16:48:48 +05:30

8 lines
279 B
Bash
Executable File

#!/bin/sh
emoji=$(curl -s https://raw.githubusercontent.com/jchook/emoji-menu/master/data/emojis.txt | dmenu -i -p "Emojis" -l 20)
chosen=$(echo "$emoji" | awk '{print $1}')
printf "%s" "$chosen" | xclip -sel c
notify-send "$chosen copied to clipboard" &
xdotool type "$chosen"