Commit 426393c

chasinglightning  ·  2025-07-24 08:11:29 -0400 EDT
parent e8fa3a0
update dict
1 files changed,  +1, -3
+1, -3
......@@ -8,7 +8,5 @@ word=$(echo " " | dmenu -i -c -l 10)
88
99 if [ -n "$word" ]; then
1010 response=$(curl -s --connect-timeout 5 --max-time 10 "https://api.dictionaryapi.dev/api/v2/entries/en_US/$word")
11- notif=$(echo $response | jq '.[]? | .meanings[]? | ["("+.partOfSpeech+") ", .definitions[]?.definition] | join(", ")' | dmenu -i -c -l 10)
11+ notif=$(echo $response | jq '.[]? | .meanings[]? | ["("+.partOfSpeech+") ", .definitions[]?.definition] | join(", ")' | dmenu -i -c -l 10 | xclip -selection clipboard)
1212 fi
13-
14-notif=$(echo $notif | sed -e $'s/\.,/\\n -/g')