• 转载老外的conky


    # -*- conf -*-
    #
    # ~/.conkyrc - Conky configuration file
    #
    # By Henrik Brix Andersen <henrik@brixandersen.dk>
    #
    
    # do not fork to background
    background yes
    
    # font settings
    use_xft yes
    font Comic Sans MS-8
    uppercase no
    
    # update every 3 secs
    update_interval 2
    
    # stay running forever
    total_run_times 0
    
    # draw to root window
    own_window no
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # avoid flickering
    double_buffer yes
    
    # size
    minimum_size 400 100
    maximum_width 1280
    
    # position
    alignment top_left
    gap_x 0
    gap_y 0
    
    # colors
    default_color white
    default_shade_color black
    default_outline_color black
    color0 000000
    color1 144556
    color2 33b0dc
    
    # borders
    draw_borders no
    stippled_borders 8
    border_margin 4
    border_width 1
    
    # shades
    draw_shades no
    
    # outline
    draw_outline no
    
    # spacer
    use_spacer no
    
    # buffers
    no_buffers yes
    
    # sampling
    cpu_avg_samples 2
    net_avg_samples 2
    
    # configuration
    TEXT
    ${voffset 35}${offset 150}${color2}System
    ${offset 150}$color1 CPU: $color2 ${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
    ${offset 150}$color1 System: $color2 ${execi 99999 lsb_release -d -s -c | tr -s "\n" " "} $kernel
    ${offset 150}$color1 Uptime:$color2 $uptime $color1 Load:$color2 $loadavg
    
    ${voffset -75}${offset 655}${color2}Display (1366*768)
    ${offset 655}
    
    ${voffset 120}${offset 95}${color2}CPU 1
    ${offset 95}$color1 Usage: $color2${cpu cpu1}% $color1 Temperature:$color2 $acpitemp ${font iYaHei:size=8}℃
    ${offset 95}${font}$color1 Load: $color2$cpu% ${cpubar cpu0 6,200}
    ${offset 95}$color1 ${cpugraph cpu0 20,270 000000 33b0dc}
    ${offset 95}${color2}CPU 2
    ${offset 95}$color1 Usage: $color2${cpu cpu2}% $color1 Temperature:$color2 $acpitemp ${font iYaHei:size=8}℃
    ${offset 95}${font}$color1 Load: $color2$cpu% ${cpubar cpu1 6,200}
    ${offset 95}$color1 ${cpugraph cpu1 20,270 000000 33b0dc}
    
    ${voffset 70}${offset 45}${color2}Wireless (${wireless_essid wlan0})
    ${offset 45}$color1 IPv4: $color2${addr wlan0} ${color #144556} WLAN quality: $color2${wireless_link_qual_perc wlan0}% ${wireless_link_bar 5, 40 wlan0}
    ${offset 45}$color1 Down: $color2${downspeed wlan0} k/s $color1 ${downspeedgraph wlan0 8,100 000000 33b0dc} $color1 Up:$color2 ${upspeed wlan0} k/s $color1 ${upspeedgraph wlan0 8,100 000000 33b0dc}
    
    ${voffset -490}${offset 1100}${color1}Time&Date:${color2}${font Digital:pixelsize=30}${font Digital:pixelsize=15}
    ${offset 1152}${color2}${font Comic Sans MS:size=12} ${time %m/%d }${font iYaHei:size=9}${time %H:%M}
    
    ${voffset 440}${offset 1120}$color2 ${font}Battery: $color2 ${battery_percent BAT1}% ${battery_bar 3,50 BAT1}
    ${offset 1120}$color1 State: $color2$acpiacadapter
    
    ${voffset 30}${offset 1010}${color2}File System (${fs_type /})
    ${offset 1010}$color1 Total:$color2 ${fs_size /} $color1 Free:$color2 ${fs_free /} ${fs_used_perc /}%
    ${offset 1010}$color1 Usage:$color2 ${fs_bar 5,170 /}
    ${offset 1010}${color2}DOWN (NTFS)
    ${offset 1010}$color1 Total:$color2 ${fs_size /} $color1 Free:$color2 ${fs_free /} ${fs_used_perc /}%
    ${offset 1010}$color1 Usage:$color2 ${fs_bar 5,170 /}
    
    ${voffset -5}${offset 400}${color2}Memory ($memmax)
    ${offset 400}${color1}RAM: $color2$mem($memperc%) ${membar 5,142}
    ${offset 400}${color1}HDDTemp: $color2${hddtemp /dev/sda}
    
    ${voffset -120}${offset 120}${color2}Music Play Deamon:
    ${offset 120}$color1 State:$color2 Now $mpd_status
    ${offset 120}$color1 Title:$color2${font iYaHei:size=8} $mpd_title $color1 Artist:$color2${font iYaHei:size=8} $mpd_artist
    ${offset 120}$color1 Volume: $color2 $mpd_vol% $color1 Bitrate: $color2 $mpd_bitrate kbps
    ${offset 120}$mpd_elapsed/$mpd_length ${mpd_bar 5,165}
    

  • 相关阅读:
    Spring MVC下拉选项(Select)
    Spring MVC多项单选按钮
    Spring MVC单选按钮
    Spring MVC复选框(多项)
    Spring MVC复选框
    Spring MVC文本域
    Spring MVC密码处理
    Spring MVC页面重定向
    Spring MVC静态页面
    Spring MVC表单处理
  • 原文地址:https://www.cnblogs.com/sachie/p/1873116.html
Copyright © 2020-2023  润新知