|
@@ -0,0 +1,11 @@
|
|
|
|
+#!/bin/sh
|
|
|
|
+
|
|
|
|
+# The famous "get a menu of emojis to copy" script. (copied from Luke Smith)
|
|
|
|
+
|
|
|
|
+# get user selection via dmenu from emoji file.
|
|
|
|
+chosen=$(cut -d ';' -f1 ~/.local/share/norisa/nerdglyphs | dmenu -i -l 30 | sed "s/ .*//")
|
|
|
|
+
|
|
|
|
+# exit if none chosen.
|
|
|
|
+[ -z "$chosen" ] && exit
|
|
|
|
+
|
|
|
|
+echo "$chosen" | tr -d '\n' | xclip -selection clipboard
|