转blance的conky配置

来自http://www.linuxsir.org/bbs/thread323670.html

据说把aud播放器状态嵌入conkey需要单独下载conky原包才行~

因为有朋友需要,所以就单独贴配置出来共享

简单安装步骤

1,安装conky
代码:# pacman -S conky2,设定开机自动启动conky
代码:$ ln -s /usr/bin/conky ~/.kde/Autostart/conkylink3,安装 feh 包
代码:# pacman -S feh4,创建conky背景透明脚本
代码:$ nano -w ~/.kde/Autostart/fehconky5,复制以下内容到该脚本
代码:#!/bin/bash
feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`

use --bg-center if you use a centered wallpaper6,设定该脚本为可执行
代码:$ chmod +x ~/.kde/Autostart/fehconky7,创建 ~/.conkyrc 配置文件
代码:$ nano -w ~/.conkyrc8,复制以下内容到该配置文件
代码:# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
background no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*


# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans:size=11
xftfont LiHei Pro:size=11

# Text alpha when using Xft
xftalpha 0.8

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes

# If own_window is yes, you may use type normal, desktop or override
own_window_type normal

# Use pseudo transparency with own_window?
own_window_transparent yes

# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_hints undecorated,below,sticky,skip_taskbar,skip_page

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 280 5
maximum_width 308

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
stippled_borders 2

# border margins
border_margin 2

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 1350
gap_y 30

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes


# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none

# boinc (seti) dir
# seti_dir /opt/seti

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
# min_port_monitor_connections 256

# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player bmp

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

#${color red}${cpugraph 0000ff 00ff00}
#${color #88aadd}MPD: ${alignc}$mpd_artist - $mpd_title
#${color #88aadd}$mpd_bar
#${color #88aadd}${alignc}$mpd_status
#${tail /var/log/Xorg.0.log 3 30}
${exec feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`}
TEXT
${color yellow}${font eexp:size=20}*${font} ${color lightgrey} ${alignr} $kernel on Core Duo 2 E4500
$stippled_hr
${color green}${font eexp:size=12}2${font}$color电源: $color ${alignr} $uptime ${color lightgrey}
${color lightgrey} CPU1: ${cpu cpu1 }% ${color #cc2222}${cpubar cpu1 8,70} ${color lightgrey}${alignr}CPU2: ${cpu cpu2}% ${alignr}${color #cc2222}${cpubar cpu2 8,70}
${color lightgrey} MEM:$color${alignr 80} $mem/$memmax - $memperc% ${membar}
${color lightgrey} SWAP:$color${alignr 80} $swap/$swapmax - $swapperc% ${swapbar}
$color$stippled_hr
${color green}${font eexp:size=12}C${font}$color进程: $color $processes ${alignr} ${color green}${font eexp:size=12}W${font}$color运行: $color $running_processes
${color} CPU占用 ${alignr}PID U% M%
${color #ddaa00} ${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${alignr}${top pid 5} ${top cpu 5} ${top mem 5}
${color}内存占用
${color #ddaa00} ${top_mem name 1} ${alignr}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${alignr}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${alignr}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${alignr}${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${alignr}${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
$color$stippled_hr
${color green}${font eexp:size=12}^${font}$color网络:
$color${font eexp:size=12}U${font} ${color #8844ee} ${downspeed eth0} k/s$color ${offset 80}${font eexp:size=12}O${font} ${color #22ccff} ${upspeed eth0} k/s
${color #0000ff}${downspeedgraph eth0 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 22,150 0000ff ff0000}
$color ${font eexp:size=12}0${font}内网: ${tcp_portmon 1 32767 count} ${alignc -15} ${font eexp:size=12}1${font}外网: ${tcp_portmon 32768 61000 count}${alignr}总共: ${tcp_portmon 1 65535 count}
${color #ddaa00}本地链接 ${alignr} 本地服务/端口$color
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${color #ddaa00}外部链接 ${alignr} 远程服务/端口$color
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
$stippled_hr
${color green}${font eexp:size=14}&${font}$color磁盘
$color / ${alignr 100}${fs_used /}/${fs_size /} ${fs_bar /}
$color /tmp ${alignr 100}${fs_used /tmp}/${fs_size /tmp} ${fs_bar /tmp}
$color /boot ${alignr 100}${fs_used /boot}/${fs_size /boot} ${fs_bar /boot}
$color /home ${alignr 100}${fs_used /home}/${fs_size /home} ${fs_bar /home}
$color 应用软件 ${alignr 100}${fs_used /mnt/sda7}/${fs_size /mnt/sda7} ${fs_bar /mnt/sda7}
$color 文档资料 ${alignr 100}${fs_used /mnt/sda8}/${fs_size /mnt/sda8} ${fs_bar /mnt/sda8}
$color 系统备份 ${alignr 100}${fs_used /mnt/sda9}/${fs_size /mnt/sda9} ${fs_bar /mnt/sda9}注意:
1,我的屏幕是22寸宽的分辨率,如果看不到conky请修改
gap_x 1350
gap_y 30
2,磁盘的监视设置请自行按自己需求修改~
3,附件提供的字体必须安装,否则图标失效!
4,显卡3D加速必须开启,否则可能出现屏幕闪的问题~(本人是ati卡用的是fglrx驱动此配置无问题)

如有conky设置比较好的建议和发现,希望大家都共享出来~

作者: jarryson# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

#gap_x 1350
gap_y 30

这样就没有说不是宽屏不能用的问题 ^ ^而且认为这样效率比较好

你可能感兴趣的:(#linux下的软件推荐)