代码: 全选
${exec echo bw_stats | nc -q 1 localhost 4000|grep -a -o ^Down.*Shared|sed -e "s/Down/电驴下载/" -e "s/Up/电驴上传/" -e "s/ *| */\n/g"|head -n 2}
代码: 全选
${exec echo bw_stats | nc -q 1 localhost 4000|grep -a -o ^Down.*Shared|sed -e "s/Down/电驴下载/" -e "s/Up/电驴上传/" -e "s/ *| */\n/g"|head -n 2}
代码: 全选
☎ tail -n 25 ~/.conkyrc
# ${alignr}
TEXT
${execi 1000 cal|sed "s/\<`date '+%d'`\>/█/"}
$hr
${color yellow}时钟${alignr}${time %H:%M}${color}
开机${alignr}${uptime}
电池${alignr}${battery}-${battery_time}
音量${alignr}${execi 4 ~/应用/脚本/conky-echo-vol.bash}
$hr
芯片1 ${cpubar cpu1 10}
芯片2 ${cpubar cpu2 10}
内存 ${mem}${alignr}${memperc}%
交换${alignr}${swapperc}%
$hr
${color yellow}磁盘${color}
/home ${alignr}${fs_free /home} ${fs_free_perc /home}%
/ ${alignr}${fs_free /} ${fs_free_perc /}%
/home/media ${alignr}${fs_free /home/media} ${fs_free_perc /home/media}%
$hr
${color yellow}无线 ${wireless_essid eth1}${alignr}${wireless_link_qual_perc eth1}${color}
下载 ${downspeedf eth1} ${downspeedgraph eth1 000000 00ff00}
上传 ${upspeedf eth1} ${upspeedgraph eth1 000000 ff0000}
${color yellow}mlnet${color}
${exec echo bw_stats | nc -q 1 localhost 4000|grep -a -o ^Down.*Shared|sed -e "s/Down/下载/" -e "s/Up/上传/" -e "s/ *| */\n/g"|head -n 2}
音量和alsamixer显示不一样?eexpress 写了:我上面的没贴。基本就是字体设置。我用unicode全集的字体。没有的字符,你自己改成有的。比如█
xftfont Vera Sans YuanTi Mono:size=9
我上面的第一行,是CLI。你怎么也复制进去了哦。
音量${alignr}${execi 4 ~/应用/脚本/conky-echo-vol.bash}
这里少了个bash,你直接改成这样就是。
音量${alignr}${execi 4 echo "MAIN: `amixer get Master|grep -o -m 1 [0-9]*%` PCM: `amixer get PCM|grep -o -m 1 [0-9]*%`"}
干脆打包给你看。