diff options
author | EuAndreh <eu@euandre.org> | 2023-02-17 09:04:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-17 09:04:36 -0300 |
commit | aec4f054285b469167c283e0c588647891b36c36 (patch) | |
tree | 952af9f614e8b81f26906a54ffcdc32957ab8f44 | |
parent | bin/wms: Fix ShellCheck offenses (diff) | |
download | dotfiles-aec4f054285b469167c283e0c588647891b36c36.tar.gz dotfiles-aec4f054285b469167c283e0c588647891b36c36.tar.xz |
bin/menu: Show notification when emoji is copied to clipboard
-rwxr-xr-x | bin/menu | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -110,7 +110,13 @@ clip_list() { case "$ACTION" in emoji) - DATA | show 'emoji' | awk '{print $(NF)}' | copy -n + CHOICE="$(DATA | show 'emoji')" + if [ -n "$CHOICE" ]; then + EMOJI="$(echo "$CHOICE" | awk '{print $(NF)}')" + echo "$EMOJI" | copy -n + notify-send -t 5000 -u normal -- \ + "$EMOJI" 'emoji copied to clipboard' + fi ;; username) CHOICE="$(pass_list | show 'username')" |