麻烦大神看下Conky中为啥不显示网速
Tofloor
poster avatar
立青
deepin
2016-08-28 20:15
Author
配置文件是根据论坛网友修改的,其中网络的部分的Wlan0,不知道是怎么回事?需要改吗?我的网络是无线网,名称CCJ,单位是bangongshi,谢谢大家!
# set to yes if you want Conky to be forked in the background
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled 显示字体大小
xftfont Sans:size=10
own_window_argb_visual yes
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8
# on_bottom yes
# mail spool
mail_spool $MAIL
# Update interval in seconds 刷新时间
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type override
own_window_type normal
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area 边界距离
minimum_size 260 5
maximum_width 400
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders no
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors 颜色设置
default_color yellow
default_shade_color blue
default_outline_color red
# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 20
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# Add spaces to keep things from moving about?  This only affects
# certain objects.
use_spacer none
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player bmp
TEXT
${font KaiTi:pixelsize=40}${alignc}${time %H:%M:%S}
${font KaiTi:pixelsize=18}${time %Y年%b%d日 星期%a}${alignc}
##TEXT
${color blue}SYSTEM ${hr 1}${color}
${color yellow} #$alignr${time %Y年%m月%d日}$alignc       ${time %H:%M:%S}$alignr       星期 ${time %w}   
${font KaiTi:pixelsize=14}
主机名: $alignr$nodename
内核: $alignr$kernel
Machinealignr$machine
开机时间: $alignr$uptime
温度: ${alignr}${acpitemp} °C
电池alignr${battery BAT0}
#Batteryalignr${battery_percent BAT0}%  
${color green}
CPU: ${alignr}${freq dyn} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
${color red}
CPU1 ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
CPU2 ${alignr}${cpu cpu2}%
${cpubar 4 cpu2} ${color green}
内存 ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1} ${top mem 1}
${top name 2}$alignr${top cpu 2} ${top mem 2}
${top name 3}$alignr${top cpu 3} ${top mem 3}
Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3} ${top_mem mem 3}
${color blue}FILE SYSTEM ${hr 1}${color}
Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
${color blue}网络状况 ${hr 1}${color}
下载 ${downspeed wlan0} k/s ${alignr}上传 ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
#${color white}NEWS $color
#${rss http://www.linuxeden.com/plus/rss.php?tid=1 5 item_titles 2}

Reply Favorite View the author
All Replies
avatar
linyk
deepin
2016-08-28 21:15
#1
你在终端里ifconfig一下,看看你的无线网卡的名称是啥,替换掉wlan0就行啦。一般都是wlo1
Reply View the author
avatar
立青
deepin
2016-08-28 22:38
#2
本帖最后由 liqing 于 2016-8-28 14:44 编辑
https://bbs.deepin.org/post/42818
你在终端里ifconfig一下,看看你的无线网卡的名称是啥,替换掉wlan0就行啦。一般都是wlo1 ...

运行后结果如下,看不懂,麻烦看下:


wlp6s0: flags=4163  mtu 1500
     
Reply View the author
avatar
立青
deepin
2016-08-28 22:42
#3
https://bbs.deepin.org/post/42818
你在终端里ifconfig一下,看看你的无线网卡的名称是啥,替换掉wlan0就行啦。一般都是wlo1 ...

搞定了,非常感谢!!
Reply View the author
avatar
立青
deepin
2016-08-28 22:44
#4
Reply View the author
avatar
SnDream
deepin
2016-08-29 03:34
#5
你还不如直接删掉网卡型号 写成
${totaldown }
这样,我反正这边是能够正常监控网速,也不区分到底是哪个网卡在活动。
Reply View the author
avatar
153******45
deepin
2016-09-02 01:25
#6
SnDream 发表于 2016-8-28 19:34
你还不如直接删掉网卡型号 写成
${totaldown }
这样,我反正这边是能够正常监控网速,也不区分到底是哪个网 ...

上传的代码是啥
Reply View the author
avatar
SnDream
deepin
2016-09-02 06:15
#7
https://bbs.deepin.org/post/42818
上传的代码是啥

你在说啥?
Reply View the author