aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/rofimoji
blob: 64cfabeee2a46e856b0ea6e2bb96ed7bf8590297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

list="$(grep -v "#" ~/.local/share/script-data/emoji)"
if [ "$ROFI_RETV" != 0 ]; then
	c=$(echo "$1" | cut -f1)
	echo "$c" | tr -d '\n' | wl-copy
	notify-send "'$c' copied to clipboard."
	exit
fi

echo -ne "\0prompt\x1fChoose emoji\n"
printf "%s" "$list"