[贴图]整了一下午的桌面-adesklets+conky
-
- 帖子: 231
- 注册时间: 2007-11-20 12:45
- 来自: Hefei
- 联系:
- hualang0929
- 帖子: 1226
- 注册时间: 2006-11-11 10:23
- 来自: Mars
- 联系:
- c_cucumber
- 帖子: 123
- 注册时间: 2007-05-13 0:14
- 来自: 杭州
- 联系:
既然有朋友喜欢那么我就简单介绍一下安装和配置方法:
1.conky配置文件:
附件中压缩文件scripts.tar.gz 解压缩至用户~目录,fonts.tar.gz解压后放入~/.fonts目录。
2.Dock是装的adesklets,用源安装即可。安装完adesklets之后在终端运行:
选择列表最下面的yab0.0.2,安装完成之后会在~/.desklets目录下出现
需要调整config文件,如果有朋友需要再展开说明。
3.圆环状态也是adeslets插件,不过在官方插件里面没有,附件中CircleMeter即是,解压缩至~/
第一次使用:
调整到你需要的位置
以后使用直接在终端
写的比较仓促,如有问题在这里讨论。
1.conky配置文件:
代码: 全选
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
#double_buffer yes
# Gap between borders of screen and text
gap_x 10
gap_y 20
# Text alignment, other possible values are commented
alignment top_right
use_xft yes
font Microsoft YaHei:size=9
xftalpha 0.9
TEXT
${font weather:size=28}${execi 600 ~/scripts/conditions.sh}${font}${voffset -10} ${execi 1200 ~/scripts/pogodynka.sh}
${font weather:size=28}x ${font}HDD ${execi 1 ~/scripts/hddmonit.sh} \u00b0C
${font weather:size=28}z ${font}CPU $acpitemp \u00b0C
${font PizzaDude Bullets:size=16}v${font} Up. ${upspeed eth1} Kb/s
${font PizzaDude Bullets:size=16}r${font} Dow. ${downspeed eth1} Kb/s
${font PizzaDude Bullets:size=16}M${font} Wys\u0142. ${totalup eth1} Kb/s
${font PizzaDude Bullets:size=16}S${font} Pobr. ${totaldown eth1} Kb/s
${font StyleBats:size=18}A${font} CPU: ${cpu} %
${font PizzaDude Bullets:size=16}J${font} $mem / $memmax
${font FreeSans:size=16}@${font} e-mail: ${texeci 1800 perl ~/scripts/check_gmail.sh}
${font StyleBats:size=18}P${font} Working: ${uptime_short}
${font StyleBats:size=18}4${font} ${time %B %d %A}
${font xspiralmental:size=17}E${font} ${kernel}
${if_running amarokapp}
${color #ffffff}Amarok\u6b63\u5728\u64ad\u653e ${hr 1}$color${color white}
\u6f14\u5531${alignc}${execi 10 ~/scripts/amarok artist} ${alignc}--\u300a${execi 10 ~/scripts/amarok title}\u300b
${execibar 1 ~/scripts/amarok progress}
\u4e13\u8f91${alignc}"${execi 10 ~/scripts/amarok album}"
${alignc}${execi 10 ~/scripts/amarok year} - ${color white}${alignc}${execi 10 ~/scripts/amarok genre}
$else
$endif
2.Dock是装的adesklets,用源安装即可。安装完adesklets之后在终端运行:
代码: 全选
adesklets -i
需要调整config文件,如果有朋友需要再展开说明。
3.圆环状态也是adeslets插件,不过在官方插件里面没有,附件中CircleMeter即是,解压缩至~/
第一次使用:
代码: 全选
python cpu_meter.py --nautilus
r #或者t 做一个测试
以后使用直接在终端
代码: 全选
adesklets --nautilus
- 附件
-
- scripts.tar.gz
- (4.46 KiB) 已下载 296 次
-
- fonts.tar.gz
- (147.17 KiB) 已下载 279 次
-
- CircleMeter.tar.gz
- (50.61 KiB) 已下载 219 次
- c_cucumber
- 帖子: 123
- 注册时间: 2007-05-13 0:14
- 来自: 杭州
- 联系:
-
- 帖子: 20
- 注册时间: 2008-06-28 10:10
- c_cucumber
- 帖子: 123
- 注册时间: 2007-05-13 0:14
- 来自: 杭州
- 联系:
ls有没有安装 hddtemp?
代码: 全选
apt-get install hddtemp
- blissday
- 帖子: 384
- 注册时间: 2008-05-18 14:23
- 系统: Win7
- 联系:
- c_cucumber
- 帖子: 123
- 注册时间: 2007-05-13 0:14
- 来自: 杭州
- 联系:
安装完adesklets以及相应的插件以后,对应的是你家目录下面的.desklets,里面每一个插件都包含一个配置文件。这是我的一个yab配置文件,你可以参考一下(默认有一个example配置,你在里面修改即可)。TaRoNo 写了:adesklets如何调整config可以说的详细一点么
代码: 全选
# -*- coding: ASCII -*-
#
#================================================================================
# This is the configuration file for the adesklets' desklet
# `Yet Another Bar' (yab).
#
# You may specify here, for each yab instance you use,
# what icons should be loaded (stored under `icons/' by default,
# but absolute path names are also valid), what commands they should trigger,
# what the captions should be, what font to use, how generating effects,
# etc.
#
# See `config.txt.minimal' in this directory for the configuration
# of the completely static (all effects turned off) version of the
# default bar with some explanations.
#
# There is no real need for a long explanation here, since
# a lot of yab configuration parameters are self explanatory.
# Let us just mention here some specific, less obvious elements:
#
# - colors are expressed as packed RGB hexadecimal on 24 bits
# (1 unsigned byte per channel), as you can use within HTML documents
# for instance: '000000' is pure black, while 'FFFFFF' is pure white.
#
# - similarily, opacities are given as unsigned one byte decimal
# integer value (hence in [0, 255])
#
# - gradient_angle is given in degree, not radians, with 0 degrees being
# vertical from top to bottom and going clockwise from there.
#
# - all parameters expressing times are in seconds. On most systems,
# resulting timing of less than 10 milliseconds are not reliable and
# should be avoided.
#
# - many parameters can be set to None, zero or similar values, resulting
# in a more frugal, less dynamic desklet - see `config.txt.minimal' for
# a more complete exemplification of this.
#
# - the 'click_effect' parameter, if not set to None, is an imlib2
# dynamic filter expression that will get applied to the icon you just
# clicked on for 'click_effect_duration' seconds before being discarded.
# See your imlib2 documentation for details.
#
# - the 'icon_maximize_threshold' specifies at what fraction of maximal
# size the icon under the pointer should be displayed as completly
# maximized (set to 90% by default). It gives a way to define a 'hot zone'
# around the icon center's x coordinate in which the pointer can move
# and the icon stay stuck on its maximum size anyway. Setting this
# to 0 would make an icon being maximized as soon as the pointer
# get over it, and setting it to 1 to never get 'pinned' on maximum
# size as long as the pointer does not reach its very center
# (thus being smoothly resized from the minimal to the maximal size).
#
# - all configuration parameters are handled the 'pythonic way', meaning
# that as few checkups as possible are performed, invalid entries leading
# to runtime exceptions being raised. For instance, building a bar
# longer than its screen width will raise a 'did not resize window' error.
#
# So, whenever you run into trouble configuring a yab instance, you should:
#
# * Kill all adesklets instances running:
#
# killall -9 adesklets
#
# * Restart the troublemaker from the console using
# (XXX being its ID number):
#
# ADESKLETS_ID=XXX python yab.py
#
# * Look at the error output to figure things out.
#
# Finally, please note that destroying this config file while no yab instances
# are running will force its repopulation with valid default
# entries on yap's desklets restart.
#
# === Special note on icons ===
#
# Only a few icons are shipped with yab (five, actually).
# In case you are wondering, they all come from the Lila theme
# resources (http://lila-theme.uni.cc/). If you go hunting
# for more iconographic artwork, http://www.kde-look.org/
# is also a good start point.
#================================================================================
#
id0 = {'bar_background_1': 'AAAAAA',
'bar_background_2': None,
'bar_foreground': 'CCCCCC',
'bar_gradient_angle': 9,
'bar_height': 32,
'bar_opacity_1': 100,
'bar_opacity_2': None,
'caption_above': True,
'caption_color': 'ffffff',
'caption_delay': 0.10000000000000001,
'caption_fade_in': True,
'caption_fade_in_duration': 0.5,
'caption_fade_in_steps': 10,
'caption_font': 'Vera',
'caption_size': 10,
'click_effect': 'tint(alpha=100,red=255,green=255,blue=255);',
'click_effect_duration': 0.10000000000000001,
'icon_max_height': 128,
'icon_max_width': 128,
'icon_maximize_threshold': 1.0,
'icon_min_height': 48,
'icon_min_width': 48,
'icon_spacing': 5,
'icons': [('user.png', 'Home', 'nautilus'),
('word.png', 'OoWriter', 'ooffice -writer'),
('gaim.png', 'gaim', 'gaim'),
('gimp.png', 'The GIMP', 'gimp'),
('amarok.png', 'Amarok', 'amarok'),
('terminal.png', 'Terminal', 'gnome-terminal'),
('firefox.png', 'firefox', 'firefox %u'),
('screenshot.png', 'screenshot', 'gnome-screenshot'),
('gthumb.png', 'gthumb', 'gthumb'),
('mail.png', 'Evolution', 'evolution --component=mail'),
('trash.png', 'Trash', 'nautilus trash:///')]}
id1 = {'bar_background_1': 'AAAAAA',
'bar_background_2': None,
'bar_foreground': 'cccccc',
'bar_gradient_angle': 0,
'bar_height': 32,
'bar_opacity_1': 100,
'bar_opacity_2': None,
'caption_above': True,
'caption_color': 'ffffff',
'caption_delay': 0.10000000000000001,
'caption_fade_in': True,
'caption_fade_in_duration': 0.5,
'caption_fade_in_steps': 10,
'caption_font': 'Vera',
'caption_size': 10,
'click_effect': 'tint(alpha=100,red=255,green=255,blue=255);',
'click_effect_duration': 0.10000000000000001,
'icon_max_height': 128,
'icon_max_width': 128,
'icon_maximize_threshold': 0.90000000000000002,
'icon_min_height': 64,
'icon_min_width': 64,
'icon_spacing': 5,
'icons': [('cd.png', 'DVD/CD-Rom', 'nautilus /media/cdrom0'),
('windows.png', 'Share driver', 'nautilus /media/sda5'),
('flash.png', 'flash', 'nautilus /media/removable')]}
id2 = {'bar_background_1': 'AAAAAA',
'bar_background_2': None,
'bar_foreground': '000000',
'bar_gradient_angle': 0,
'bar_height': 32,
'bar_opacity_1': 100,
'bar_opacity_2': None,
'caption_above': True,
'caption_color': 'AAAAAA',
'caption_delay': 0.10000000000000001,
'caption_fade_in': True,
'caption_fade_in_duration': 0.5,
'caption_fade_in_steps': 10,
'caption_font': 'Vera',
'caption_size': 20,
'click_effect': 'tint(alpha=100,red=255,green=255,blue=255);',
'click_effect_duration': 0.10000000000000001,
'icon_max_height': 128,
'icon_max_width': 128,
'icon_maximize_threshold': 0.90000000000000002,
'icon_min_height': 64,
'icon_min_width': 64,
'icon_spacing': 5,
'icons': [('firefox.png', 'Firefox', 'firefox')]}