mirror of
https://git.dodsorf.as/Dandellion/dotfiles.git
synced 2024-12-23 23:47:30 +01:00
15 lines
469 B
Bash
Executable File
15 lines
469 B
Bash
Executable File
#!/bin/sh
|
|
# Give dmenu list of all unicode characters to copy.
|
|
# Shows the selected character in dunst if running.
|
|
|
|
# Must have xclip installed to even show menu.
|
|
xclip -h >/dev/null || exit
|
|
|
|
chosen=$(grep -v "#" /home/daniel/.config/nixpkgs/nix-dotfiles/scripts/emojis.txt | dmenu -i -l 20 -fn Monospace-14)
|
|
|
|
[ "$chosen" != "" ] || exit
|
|
|
|
c=$(echo "$chosen" | sed "s/ .*//")
|
|
echo "$c" | tr -d '\n' | xclip -selection clipboard
|
|
notify-send "'$c' copied to clipboard." &
|