diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-17 06:10:02 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2022-05-17 06:10:02 +0300 |
commit | 484181c25cba61469254e24bff578cff5189c8a7 (patch) | |
tree | 6bb3b33b3c710467a6f0463912b929f2e039cd90 /dotfiles/.local/bin/rofimoji | |
parent | 0b065dc2c0cae46c4f6151483249a682db122eb6 (diff) | |
download | swayrice-484181c25cba61469254e24bff578cff5189c8a7.tar.gz swayrice-484181c25cba61469254e24bff578cff5189c8a7.zip |
WIP: move to rofi
Diffstat (limited to 'dotfiles/.local/bin/rofimoji')
-rwxr-xr-x | dotfiles/.local/bin/rofimoji | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/rofimoji b/dotfiles/.local/bin/rofimoji new file mode 100755 index 0000000..64cfabe --- /dev/null +++ b/dotfiles/.local/bin/rofimoji @@ -0,0 +1,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" |