发表于 : 2008-07-20 8:58
luojie-dune 写了:强烈建议:像ubuntu自带的辞典一样,支持镶入gnome面板。
luojie-dune 写了:强烈建议:像ubuntu自带的辞典一样,支持镶入gnome面板。
不错,既然出了i386的deb,那就应该有64bit的,这才叫完整嘛!!!pengkuny 写了:64位咋办?
xiooli 写了:kingpin 写了:支持,能鼠标取词就好了!来自solcomo,小改了下。代码: 全选
#!/bin/bash str="`xsel`" while true ; do a="`xsel`" if [ "$a" != "$str" ] ; then str="$a" [ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'` gnome-osd-client -f "<message id='word' osd_fake_translucent_bg='off' osd_vposition='top' osd_halignment='right' animations='on' hide_timeout='10000'><span size='15000' foreground='pink'>`echo "$word"`</span></message>" fi sleep 1 done
代码: 全选
#!/bin/bash
str="`xsel`"
while true ; do
a="`xsel`"
if [ "$a" != "$str" ] ; then
str="$a"
[ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'`
notify-send "$word"
fi
sleep 1
done
代码: 全选
[ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'`