From 748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 23 Jun 2024 21:26:58 +0100 Subject: (Scripts)~Work on scripts a little bitt --- Scripts/.local/scripts/emoticons | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Scripts/.local/scripts/emoticons') 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; -- cgit v1.2.3-13-gbd6f