美文网首页
Conky的配置

Conky的配置

作者: NorthCity | 来源:发表于2017-02-22 16:50 被阅读0次
# set to yes if you want Conky to be forked in the background
background yes
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=11
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 360 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 white
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 35
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
ppercase no
# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player bmp


TEXT
${color green}系统 ${hr 1}
Time:$alignr${time %Y年%m月%d日}$alignc   ${time %H:%M:%S}$alignr   Week:${time %A}
Hostname: $alignr$nodename
Kernel: $alignr$kernel
Machine:$alignr$machine
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp} °C
Battery:$alignr${battery_percent BAT0}%
###############

${color green}网络 ${hr 1}
ppp0 IP: ${alignr} ${addr ppp0}
# enp3s0f1 IP: ${alignr} ${addr enp3s0f1}
GateWay: ${alignr} $gw_ip
Down   ${downspeed ppp0} /S ${alignr} Total ${totaldown ppp0}
${downspeedgraph ppp0 60}
Up     ${upspeed ppp0} /S ${alignr}Total ${totalup ppp0}
${upspeedgraph ppp0 60}
WIFI     ${upspeed wlp2s0} /S ${alignr}Total ${totalup wlp2s0}
${upspeedgraph wlp2s0 60}

${color green}核心状态${hr 1}
${color green}Core 1: ${freq_g 1}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu1 8}
${color green}Core 2: ${freq_g 2}GHz (${cpu cpu2}%)${color 9932CC} ${alignr 180}${cpubar cpu2 8}
${color green}Core 3: ${freq_g 3}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu3 8}
${color green}Core 4: ${freq_g 4}GHz (${cpu cpu1}%)${color 9932CC} ${alignr 180}${cpubar cpu4 8}
${color green}本机内存:$memperc%${color} $alignr$mem/$memmax
${color 9932CC} ${membar 8}
${color green} 系统分区:$fs_used_perc% ${color} $alignr${fs_used /}/${fs_size /}
${color 9932CC} ${fs_bar 8 /}
${color green} 交换分区:  $swapperc% ${alignr} ${color}$swap / $swapmax
${color 9932CC} ${swapbar 8}

${color green} 文件系统 ${hr 1}
${color green} Disk  I/O: ${alignr}$diskio
${color green} Root: ${alignr}${fs_free /} / ${fs_size /}
${color 9932CC} ${fs_bar 8 /}
${color green} Home: ${alignr}${fs_free /home} / ${fs_size /home}
${color 9932CC} ${fs_bar 8 /home}


# WEATHER ${hr 2}
# ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=866625&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
# ${font Open Sans Light:size=70}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset -35}
# ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,355 -s 60x60}
# ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
# ${image ~/.conky-google-now/wind.png -p 0,427 -s 15x15}${goto 23}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
# ${image ~/.conky-google-now/humidity.png -p 0,443 -s 15x15}${goto 23}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%${voffset 15}
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 78}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 148}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 208}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}
# ${voffset 10}
# ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 0,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 70,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 140,483 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 200,483 -s 30x30}
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 80}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 150}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 215}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°
# ${goto 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 80}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 150}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 215}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}


# # Highest MEM $alignr MEM
# ${top_mem name 1}$alignr ${top_mem mem 1}%
# ${top_mem name 2}$alignr ${top_mem mem 2}%
# ${top_mem name 3}$alignr ${top_mem mem 3}%
# ${top_mem name 4}$alignr ${top_mem mem 4}%
# ${top_mem name 5}$alignr ${top_mem mem 5}%
# ${top_mem name 6}$alignr ${top_mem mem 6}%


#############
##############
# ${color #ffd700}CPU ${hr 1}
# Frequency: ${alignr}${freq dyn} MHz
# Processes: ${alignr}$processes ($running_processes running)
# Load: ${alignr}$loadavg
# CPU1 ${alignr}${cpu cpu1}%
# ${cpubar 4 cpu1}
# CPU2 ${alignr}${cpu cpu2}%
# ${cpubar 4 cpu2}
# # Highest CPU $alignr CPU%
# # ${top name 1}$alignr${top cpu 1}
# ${top name 2}$alignr${top cpu 2}
# ${top name 3}$alignr${top cpu 3}
##############

#############

# Highest MEM $alignr MEM
# ${top_mem name 1}$alignr ${top_mem mem 1}%
# ${top_mem name 2}$alignr ${top_mem mem 2}%
# ${top_mem name 3}$alignr ${top_mem mem 3}%
# ${top_mem name 4}$alignr ${top_mem mem 4}%
# ${top_mem name 5}$alignr ${top_mem mem 5}%
# ${top_mem name 6}$alignr ${top_mem mem 6}%

相关文章

  • conky 配置文件

    安装conky监控系统cpu ,内存等 添加配置文件 .conkyrc conky.config={backgr...

  • conky配置

    conky 使用软件conky可以在linux上看到系统的运行状态,效果如下: 先安装conky:sudo apt...

  • conky配置

    配置是网上找的,然后进行了最基础的修改 字体文件需要复制到 /usr/share/fonts/TTF/conky ...

  • Conky的配置

  • conky

    之前参考大神的配置文件修改的,已找不到了出处。 配置文件 配置文件名“.conkyrc”,启动时conky -c ...

  • 我的conky配置 .conkyrc

    在reber的配置基础上做了些许修改: 使conky不会因使用了显示桌面的快捷键而隐藏 更新了新版本Linux下网...

  • Ubuntu 之 Conky

    Conky 介绍 Conky是一种自由软件,用于X视窗系统的系统监视,可以在FreeBSD、OpenBSD和各种L...

  • fedora 安装conky

    title: fedora 安装conkyid: 123categories: linux的学习记录date: 2...

  • 分享一个简洁的conky配置文件

  • kali下配置conky,实现桌面美化监控系统

    更多参考:1、https://bbs.deepin.org/forum.php?mod=viewthread&ti...

网友评论

      本文标题:Conky的配置

      本文链接:https://www.haomeiwen.com/subject/tfymwttx.html