removing the unused emoji_insert script

This commit is contained in:
2024-08-23 11:22:26 -07:00
parent 68c8455073
commit 59b7021575

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# Check dependencies
for cmd in bemenu wl-copy notify-send; do
command -v $cmd >/dev/null 2>&1 || { echo "$cmd is required but not installed. Aborting."; exit 1; }
done
# Get user selection via bemenu from emoji file.
chosen=$(awk '{print $1, $0}' ~/.local/share/chars/emojis* | bemenu -i -l 30 | awk '{print $1}')
# Exit if none chosen.
[ -z "$chosen" ] && exit
# Copy selected emoji to clipboard.
echo -n "$chosen" | wl-copy
# Send notification that the emoji has been copied.
notify-send "'$chosen' copied to clipboard."