Commit 426393c

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