luojie-dune 写了:强烈建议:像ubuntu自带的辞典一样,支持镶入gnome面板。
Dict.CN(海词)客户端 for Linux (20080827)
-
- 帖子: 231
- 注册时间: 2007-11-20 12:45
- 来自: Hefei
- 联系:
- pizza
- 帖子: 152
- 注册时间: 2007-10-19 19:20
- 联系:
- qz214
- 帖子: 20
- 注册时间: 2008-08-29 16:22
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

-
- 帖子: 8
- 注册时间: 2007-04-05 18:06
-
- 帖子: 3
- 注册时间: 2008-11-11 21:14
-
- 帖子: 11
- 注册时间: 2007-09-16 3:10
-
- 帖子: 10
- 注册时间: 2009-08-21 21:19
Re: Dict.CN(海词)客户端 for Linux (20080827)
where i can download it man ?
- demon0412
- 帖子: 131
- 注册时间: 2009-08-17 12:05