14 lines
340 B
Bash
Executable File
14 lines
340 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
STICKER_DIR="$HOME/Pictures/Emotes/picker"
|
|
|
|
find "$STICKER_DIR" -type f \
|
|
\( -iname "*.png" -o -iname "*.webp" \) |
|
|
sort -f |
|
|
while read -r file; do
|
|
printf "%s\x00icon\x1f%s\n" "$(basename "$file")" "$file"
|
|
done | fuzzel --dmenu |
|
|
while read -r selection; do
|
|
wl-copy <"$STICKER_DIR/$selection"
|
|
done
|