[贴图]整了一下午的桌面-adesklets+conky

桌面秀,不同桌面、不同风格。
pengkuny
帖子: 231
注册时间: 2007-11-20 12:45
来自: Hefei
联系:

#16

帖子 pengkuny » 2008-06-24 2:29

强烈顶一个,非常漂亮,楼主说说怎么弄的?
scoky
帖子: 99
注册时间: 2007-07-21 9:12

#17

帖子 scoky » 2008-06-24 19:55

强烈希望楼主共享conky的配置文件
头像
drvicar
帖子: 1285
注册时间: 2007-12-17 18:07
来自: 西安

#18

帖子 drvicar » 2008-06-24 20:58

:roll: 很是漂亮呢
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
联系:

#19

帖子 hualang0929 » 2008-06-24 21:05

图标比较不和谐 :lol:
抬头望星空一片晴,我独行,夜已渐寒……
头像
c_cucumber
帖子: 123
注册时间: 2007-05-13 0:14
来自: 杭州
联系:

#20

帖子 c_cucumber » 2008-06-25 23:37

既然有朋友喜欢那么我就简单介绍一下安装和配置方法:
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
附件中压缩文件scripts.tar.gz 解压缩至用户~目录,fonts.tar.gz解压后放入~/.fonts目录。

2.Dock是装的adesklets,用源安装即可。安装完adesklets之后在终端运行:

代码: 全选

adesklets -i 
选择列表最下面的yab0.0.2,安装完成之后会在~/.desklets目录下出现
需要调整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 次
scoky
帖子: 99
注册时间: 2007-07-21 9:12

#21

帖子 scoky » 2008-06-26 0:25

感谢分享!!!学习中。。。
scoky
帖子: 99
注册时间: 2007-07-21 9:12

#22

帖子 scoky » 2008-06-26 0:34

如果我使用的Audacious该怎么修改呢
scoky
帖子: 99
注册时间: 2007-07-21 9:12

#23

帖子 scoky » 2008-06-26 0:37

我的。。。。
刚启动时很丑,过一下就好了
附件
刚启动时。。。
刚启动时。。。
screenshot2.png
很多错误信息!!!
很多错误信息!!!
头像
c_cucumber
帖子: 123
注册时间: 2007-05-13 0:14
来自: 杭州
联系:

#24

帖子 c_cucumber » 2008-06-26 8:32

对于你第三张图中的错误,请注意看scripts中gmail_check.sh这个文件,里面填写了你的用户和密码了吗?
另外也需要检查一下天气脚本的设定,我默认的是杭州,你需要改到你所在的位置。
scoky
帖子: 99
注册时间: 2007-07-21 9:12

#25

帖子 scoky » 2008-06-26 18:20

谢谢,参考了很多人的,弄成这样的,现在就是GPU的温度没法。。。。
附件
screenshot1.png
icbto
帖子: 20
注册时间: 2008-06-28 10:10

#26

帖子 icbto » 2008-07-04 19:40

求助,跟23楼一样,也是localhost [127.0.0.1] 7634 (?) : Connection refused,应该怎么解决?
头像
c_cucumber
帖子: 123
注册时间: 2007-05-13 0:14
来自: 杭州
联系:

#27

帖子 c_cucumber » 2008-07-05 13:03

ls有没有安装 hddtemp?

代码: 全选

apt-get install hddtemp
头像
blissday
帖子: 384
注册时间: 2008-05-18 14:23
系统: Win7
联系:

#28

帖子 blissday » 2008-07-05 13:12

qiang_liu8183 写了:难看 :D
我不这么想,楼主弄的蛮不错的哦。
TaRoNo
帖子: 10
注册时间: 2006-08-27 17:08

#29

帖子 TaRoNo » 2008-07-06 1:58

adesklets如何调整config可以说的详细一点么
头像
c_cucumber
帖子: 123
注册时间: 2007-05-13 0:14
来自: 杭州
联系:

#30

帖子 c_cucumber » 2008-07-06 14:54

TaRoNo 写了:adesklets如何调整config可以说的详细一点么
安装完adesklets以及相应的插件以后,对应的是你家目录下面的.desklets,里面每一个插件都包含一个配置文件。这是我的一个yab配置文件,你可以参考一下(默认有一个example配置,你在里面修改即可)。

代码: 全选

# -*- 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')]}
回复