diff --git a/.local/bin/emoji_insert b/.local/bin/emoji_insert deleted file mode 100644 index a68dbd4..0000000 --- a/.local/bin/emoji_insert +++ /dev/null @@ -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."