suckless_dictpopup/dictpopup

11 lines
306 B
Plaintext
Raw Normal View History

2023-05-09 10:42:03 +00:00
#!/bin/sh
if [ "$1" == "html" ] || [ "$1" == "HTML" ]; then
word=${2:-$(sselp)}
2023-05-30 14:00:01 +00:00
sdcv -n --utf8-output -e "$word" | tail -n +5 | perl -pe 's/<[^>]*>//g' | popup
2023-05-28 11:15:50 +00:00
else
word=${1:-$(sselp)}
2023-05-30 14:00:01 +00:00
sdcv -n --utf8-output -e "$word" | tail -n +5 | perl -pe 's/<[^>]*>//g' | popup
2023-05-28 11:15:50 +00:00
fi