summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-09-21 04:14:51 +0300
committertsxv478 <vt0451@yandex.ru>2022-09-21 04:14:51 +0300
commitbdfb0a131167c1e582828b365385e5e357d28f95 (patch)
tree39dcfaaac94d0e8172c3cb3cc45d13affaa8edfb
parent37d0b5b1ea41c81e0918e92abbec8551643093f6 (diff)
emoji script
-rwxr-xr-xemoji8
1 files changed, 8 insertions, 0 deletions
diff --git a/emoji b/emoji
new file mode 100755
index 0000000..b178503
--- /dev/null
+++ b/emoji
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+emoji=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -i -c -bw 3 -l 10 -p "Emoji:" | sed "s/ .*//" | tr -d '\n')
+
+[ -z "$emoji" ] && exit
+
+printf "$emoji" | xclip -selection clipboard
+notify-send "'$emoji' copied to clipboard"