|
发表于 2007-6-24 11:23:06
|
显示全部楼层
Post by biinn
嗯,我也觉得wmii要强大一些。您能详细说一下怎样改吗?谢谢
我没仔细看wmii的代码。
客气了,呵呵
下面是我用的wmiirc和debian中带的wmiirc的diff
- --- wmiirc-ori
- +++ wmiirc
- @@ -10,16 +10,19 @@
- RIGHT=l
-
- # Colors tuples are "<text> <background> <border>"
- -WMII_NORMCOLORS='#222222 #5FBF77 #2A7F3F'
- -WMII_FOCUSCOLORS='#ffffff #153F1F #2A7F3F'
- +###WMII_NORMCOLORS='#FFFFFF #000000 #598DBB'
- +###WMII_FOCUSCOLORS='#00FF00 #000000 #2A7F3F'
- +WMII_NORMCOLORS='#FFFFFF #000000 #2A7F3F'
- +WMII_FOCUSCOLORS='#00FF00 #000000 #70B6C8'
- +
- WMII_BACKGROUND='#333333'
- -WMII_FONT='-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*'
- +WMII_FONT='-*-simsun-medium-r-normal-*-13-*-*-*-p-*-iso10646-1'
-
- set -- $(echo $WMII_NORMCOLORS $WMII_FOCUSCOLORS)
-
- WMII_MENU="dmenu -b -fn $WMII_FONT -nf $1 -nb $2 -sf $4 -sb $5"
- WMII_9MENU="wmii9menu -font $WMII_FONT -nf $1 -nb $2 -sf $4 -sb $5 -br $6"
- -WMII_TERM="xterm"
- +WMII_TERM="rxvt"
-
- export WMII_MENU WMII_9MENU WMII_FONT WMII_TERM
- export WMII_FOCUSCOLORS WMII_SELCOLORS WMII_NORMCOLORS
- @@ -30,11 +33,18 @@
- EOF
-
- # Tagging Rules
- +#/.*/ -> !
- +#/.*/ -> nix
- wmiir write /tagrules <<EOF
- -/XMMS.*/ -> ~
- /MPlayer.*/ -> ~
- +/URxvt.*/ -> nix
- +/Firefox.*/ -> web
- +/SeaMonkey.*/ -> web
- +/OpenOffice.org.*/ -> office
- +/grun.*/ -> ~
- +/Workrave.*/ -> zzz
- +/Wine.*/ -> zzz
- /.*/ -> !
- -/.*/ -> 1
- EOF
-
- # Event processing
- @@ -146,15 +156,27 @@
- wmiir xwrite /client/sel/ctl kill
- Key $MODKEY-Shift-t
- wmiir xwrite "/client/\$(wmiir read /client/sel/ctl)/tags" "\$(tagsmenu)" &
- +Key $MODKEY-1
- + wmiir xwrite /ctl view "nix"
- +Key $MODKEY-Shift-1
- + wmiir xwrite /client/sel/tags "nix"
- +Key $MODKEY-2
- + wmiir xwrite /ctl view "office"
- +Key $MODKEY-Shift-2
- + wmiir xwrite /client/sel/tags "office"
- +Key $MODKEY-3
- + wmiir xwrite /ctl view "swirl"
- +Key $MODKEY-Shift-3
- + wmiir xwrite /client/sel/tags "swirl"
- +Key $MODKEY-9
- + wmiir xwrite /ctl view "web"
- +Key $MODKEY-Shift-9
- + wmiir xwrite /client/sel/tags "web"
- +Key $MODKEY-0
- + wmiir xwrite /ctl view "zzz"
- +Key $MODKEY-Shift-0
- + wmiir xwrite /client/sel/tags "zzz"
- EOF
- - for i in 0 1 2 3 4 5 6 7 8 9; do
- - cat << EOF
- -Key $MODKEY-$i
- - wmiir xwrite /ctl view "$i"
- -Key $MODKEY-Shift-$i
- - wmiir xwrite /client/sel/tags "$i"
- -EOF
- - done
- }
-
- IFS=''
复制代码 |
|