emojismyman

This commit is contained in:
Daniel Løvbrøtte Olsen
2019-01-16 16:52:32 +01:00
parent da9e171aaa
commit 4ed1196f61
3 changed files with 1661 additions and 0 deletions

14
scripts/dmenuunicode Executable file
View File

@@ -0,0 +1,14 @@
#!/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." &