diff options
Diffstat (limited to 'Scripts/.local/scripts/emoticons')
-rwxr-xr-x | Scripts/.local/scripts/emoticons | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Scripts/.local/scripts/emoticons b/Scripts/.local/scripts/emoticons index 40337f4..12d7978 100755 --- a/Scripts/.local/scripts/emoticons +++ b/Scripts/.local/scripts/emoticons @@ -1,3 +1,5 @@ #!/bin/bash -cat $HOME/.local/scripts/emoticons.txt | dmenu -F -i | sed 's/\w+//gi' | awk '{print $1}' | xclip -selection clipboard +response=$(cat $HOME/.local/share/emoticons.txt | dmenu -F -i) +emoticon=$(echo $response | sed 's/\w+//gi' | awk '{print $1}') +echo $emoticon | tr -d '\n' | xclip -selection clipboard; |