conky的配置
conky这东西不错,但是以前好像是叫torsmo的,不知道什么时候改名了!呵呵。在网上找了一下它的配置,发现这篇文章还不错,E文的原文在:http://conky.sourceforge.net/gnome.html
转一下:
| 引用: |
| Conky and Gnome How to configure gnome and conky to work together.1) Overview 1)概述The purpose of this document is to give a basic understanding of how to use Conky with the Gnome Window Manager. Gnome uses, by default, a file manager called nautilus, which also manages the icons on the desktop. For some reason, the way nautilus draws the icons to the desktop, conflicts with conky drawing to the desktop, usually causing the icons to disappear, or causing conky to show, then quickly disappear until it's next update. Here, I will present a few ways to get around this. 这篇文档的目的是给一些关于如何在Gnome管理器中使用Conky的基本理解。Gnome下默认的文件管理器叫nautilus,它同样也用来管理图标和桌面。通常由于某些原因,nautilus在桌面上描绘图标与conky冲突,通常会造成桌面上图标消失不见,或者是conky消失,然后在更新时又迅速出现。这儿,我将要介绍一些关于这个的方法。 2) First Solution - Conky and devilspie By default, conky will draw to the "root" window (your desktop). This is what causes the conflict with nautilus. That being said, conky can operate fairly well with just it's -o (own window) option. NOTE: In order to get conky to draw it's own window, you must either run conky as `conky -o` or set "own_window yes" in your .conkyrc The only problem with telling conky to draw it's own window in gnome, is that it will appear on only a single virtual desktop, and it will show on the pager and takbar. In order to fix this, you must use a Window Management program (some examples include wmctrl and devilspie). For this example, I will show you how to configure devilspie (versions <=0.12 and >=0.13) to spread conky across all desktops and hide it from the pager and taskbar. First, Install devilspie. (This may vary by distribution) Homepage: http://www.burtonini.com/blog/computers/devilspie Next, you will have to configure devilspie. Please make sure you configure it for the CORRECT VERSION. The configuration CHANGED as of devilspie version 0.13, and it is NOT compatible with previous configurations. Version 0.12 and below: Create a file called .devilspie.xml in your user's home (~) directory. A basic configuration of devilspie is as follows: Code: <?xml version="1.0"?> Version 0.13 and later: Create a file called conky.ds in a directory called .devilspie your user's home (~) directory (to create the directory, use `mkdir .devilspie` and to create the file, `touch .devilspie/conky.ds`). A basic configuration of devilspie is as follows: Code: (if (matches (window_name) ".*conky") (begin pin (skip_pager) (skip_tasklist))) Configuring Gnome Once conky and devilspie are properly configured, you can make them both automatically start when Gnome starts. 3) Second Solution - Disabling Nautilus Rather than installing devilspie (or another window management application), some users may find it helpful to instead keep nautilus from drawing to the root window. To do this, run gconf-editor and uncheck show_desktop in Apps/Nautilus/Preferences/. The downside of disabling nautilus from drawing to the root window is that you will no longer have icons on the desktop, or be able to right-click on the desktop. This project is also generously hosted by sourceforge. SourceForge.net Logo Valid XHTML 1.0 Strict Valid CSS! |
下面是我的配置文件:
| 代码: |
| # 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? # Set conky on the bottom of all other applications # Xft font when Xft is enabled # Text alpha when using Xft # Print everything to stdout? # MPD host/port # Print everything to console? # mail spool # Update interval in seconds # This is the number of times Conky will update before quitting. # Create own window instead of using desktop (required in nautilus) # If own_window is yes, you may use type normal, desktop or override # Use pseudo transparency with own_window? # If own_window_transparent is set to no, you can set the background colour here # If own_window is yes, these window manager hints may be used # Use double buffering (reduces flicker, may not work for everyone) # Minimum size of text area # Draw shades? # Draw outlines? # Draw borders around text # Draw borders around graphs # Stippled borders? # border margins # border width # Default colors and also border colors # Text alignment, other possible values are commented # Gap between borders of screen and text # Subtract file system buffers from used memory? # set to yes if you want all text to be in uppercase # number of cpu samples to average # number of net samples to average # Force UTF8? note that UTF8 support required XFT # Add spaces to keep things from moving about? This only affects certain objects. # mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost # boinc (seti) dir # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256) # none, xmms, bmp, audacious, infopipe (default is none) # variable is given either in format $variable or in ${variable}. Latter # stuff after 'TEXT' will be formatted on screen TEXT ${color DeepPink1}$nodename - $sysname $kernel on $machine |
附效果图:

左倾45度 在 1月 4th, 2008 8:38 说 【 引用 】
不喜欢这东东,麻烦..........不过做的好看的确很赞!