特殊:Badtitle/NS100:AdeskletsHowto/zh:修订间差异
第28行: | 第28行: | ||
获取到后您应该把它们放在您认为固定的位置(至少存到您卸载adesklets),然后解压缩,选中按右键选择解压缩到这里. | 获取到后您应该把它们放在您认为固定的位置(至少存到您卸载adesklets),然后解压缩,选中按右键选择解压缩到这里. | ||
==== | ==== 设置 ==== | ||
Desklets 起初要手动运行.因为它们通常是python脚本(通常文件名以".py"结尾),可以在[https://help.ubuntu.com/community/BasicCommands 终端] 运行使用命令 "python filename.py" ( 这里的 filename.py 是desklet的脚本,通常跟文档名相近).运行每个desklet都有两种方法,一种是"测试"模式,另一种是"注册",当您运行desklet时.它会提示您选择哪种模式(按相应的键,回车).刚开始您最好选择测试模式,这样您可以看看它长什么样,是否把它放到桌面上.按ctrl-C 可以结束测试模式(这是结束在终端运行程序的标准方法). | |||
Desklets | |||
The desklets are controlled with text files, usually called config.txt, which you can open with any text editor (don't open it if the desklet is running, since your changes may be overwritten). Since every desklet is different it would be impossible to explain how to configure them all, but the text files are usually straightforward. For example, here is a configuration file I use for the "modubar" desklet, which is similar to MacOSX's dock (the thing across the bottom of the screen with the icons in it), but without the extensive comments at the top. The layout is the same as the original and you can see how easy it is to tweak the settings (this desklet looks for icons in a folder called "icons" inside it's directory, and this is where I stored my icon images): | The desklets are controlled with text files, usually called config.txt, which you can open with any text editor (don't open it if the desklet is running, since your changes may be overwritten). Since every desklet is different it would be impossible to explain how to configure them all, but the text files are usually straightforward. For example, here is a configuration file I use for the "modubar" desklet, which is similar to MacOSX's dock (the thing across the bottom of the screen with the icons in it), but without the extensive comments at the top. The layout is the same as the original and you can see how easy it is to tweak the settings (this desklet looks for icons in a folder called "icons" inside it's directory, and this is where I stored my icon images): |
2007年7月16日 (一) 15:00的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AdeskletsHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/af | • {{#if: UbuntuHelp:AdeskletsHowto|Afrikaans| [[::AdeskletsHowto/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ar | • {{#if: UbuntuHelp:AdeskletsHowto|العربية| [[::AdeskletsHowto/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/az | • {{#if: UbuntuHelp:AdeskletsHowto|azərbaycanca| [[::AdeskletsHowto/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/bcc | • {{#if: UbuntuHelp:AdeskletsHowto|جهلسری بلوچی| [[::AdeskletsHowto/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/bg | • {{#if: UbuntuHelp:AdeskletsHowto|български| [[::AdeskletsHowto/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/br | • {{#if: UbuntuHelp:AdeskletsHowto|brezhoneg| [[::AdeskletsHowto/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ca | • {{#if: UbuntuHelp:AdeskletsHowto|català| [[::AdeskletsHowto/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/cs | • {{#if: UbuntuHelp:AdeskletsHowto|čeština| [[::AdeskletsHowto/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/de | • {{#if: UbuntuHelp:AdeskletsHowto|Deutsch| [[::AdeskletsHowto/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/el | • {{#if: UbuntuHelp:AdeskletsHowto|Ελληνικά| [[::AdeskletsHowto/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/es | • {{#if: UbuntuHelp:AdeskletsHowto|español| [[::AdeskletsHowto/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/fa | • {{#if: UbuntuHelp:AdeskletsHowto|فارسی| [[::AdeskletsHowto/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/fi | • {{#if: UbuntuHelp:AdeskletsHowto|suomi| [[::AdeskletsHowto/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/fr | • {{#if: UbuntuHelp:AdeskletsHowto|français| [[::AdeskletsHowto/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/gu | • {{#if: UbuntuHelp:AdeskletsHowto|ગુજરાતી| [[::AdeskletsHowto/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/he | • {{#if: UbuntuHelp:AdeskletsHowto|עברית| [[::AdeskletsHowto/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/hu | • {{#if: UbuntuHelp:AdeskletsHowto|magyar| [[::AdeskletsHowto/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/id | • {{#if: UbuntuHelp:AdeskletsHowto|Bahasa Indonesia| [[::AdeskletsHowto/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/it | • {{#if: UbuntuHelp:AdeskletsHowto|italiano| [[::AdeskletsHowto/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ja | • {{#if: UbuntuHelp:AdeskletsHowto|日本語| [[::AdeskletsHowto/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ko | • {{#if: UbuntuHelp:AdeskletsHowto|한국어| [[::AdeskletsHowto/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ksh | • {{#if: UbuntuHelp:AdeskletsHowto|Ripoarisch| [[::AdeskletsHowto/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/mr | • {{#if: UbuntuHelp:AdeskletsHowto|मराठी| [[::AdeskletsHowto/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ms | • {{#if: UbuntuHelp:AdeskletsHowto|Bahasa Melayu| [[::AdeskletsHowto/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/nl | • {{#if: UbuntuHelp:AdeskletsHowto|Nederlands| [[::AdeskletsHowto/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/no | • {{#if: UbuntuHelp:AdeskletsHowto|norsk| [[::AdeskletsHowto/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/oc | • {{#if: UbuntuHelp:AdeskletsHowto|occitan| [[::AdeskletsHowto/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/pl | • {{#if: UbuntuHelp:AdeskletsHowto|polski| [[::AdeskletsHowto/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/pt | • {{#if: UbuntuHelp:AdeskletsHowto|português| [[::AdeskletsHowto/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ro | • {{#if: UbuntuHelp:AdeskletsHowto|română| [[::AdeskletsHowto/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/ru | • {{#if: UbuntuHelp:AdeskletsHowto|русский| [[::AdeskletsHowto/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/si | • {{#if: UbuntuHelp:AdeskletsHowto|සිංහල| [[::AdeskletsHowto/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/sq | • {{#if: UbuntuHelp:AdeskletsHowto|shqip| [[::AdeskletsHowto/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/sr | • {{#if: UbuntuHelp:AdeskletsHowto|српски / srpski| [[::AdeskletsHowto/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/sv | • {{#if: UbuntuHelp:AdeskletsHowto|svenska| [[::AdeskletsHowto/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/th | • {{#if: UbuntuHelp:AdeskletsHowto|ไทย| [[::AdeskletsHowto/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/tr | • {{#if: UbuntuHelp:AdeskletsHowto|Türkçe| [[::AdeskletsHowto/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/vi | • {{#if: UbuntuHelp:AdeskletsHowto|Tiếng Việt| [[::AdeskletsHowto/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/yue | • {{#if: UbuntuHelp:AdeskletsHowto|粵語| [[::AdeskletsHowto/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/zh | • {{#if: UbuntuHelp:AdeskletsHowto|中文| [[::AdeskletsHowto/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/zh-hans | • {{#if: UbuntuHelp:AdeskletsHowto|中文(简体)| [[::AdeskletsHowto/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AdeskletsHowto | UbuntuHelp:AdeskletsHowto | {{#if: | :}}AdeskletsHowto/zh}}/zh-hant | • {{#if: UbuntuHelp:AdeskletsHowto|中文(繁體)| [[::AdeskletsHowto/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AdeskletsHowto|:AdeskletsHowto/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AdeskletsHowto/zh/zh | | {{#ifexist: AdeskletsHowto/zh/zh | | {{#ifeq: {{#titleparts:AdeskletsHowto/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AdeskletsHowto/zh|1|-1|}} | zh | | }}
Adesklets 是一个可以让许多小监控器和实用程序放置在桌面的软件.您可能也会提及 Karamba, SuperKaramba, Gkrellm 和 GDesklets. 这些工具安装过程都太简单了, 而Adesklets 需要一点小小的设置, 因此就有了本文.
简介
桌面是个非常无聊的地方,特别是Ubuntu使用了更少的图标.即使加了一些图标,一些常用的任务诸如阅读新闻,查看新邮件,监控系统资源也需要点几下鼠标或按几下键盘,程序然后才运行,等等这些问题.
Desklets 致力于解决这些问题,它们把图形化的迷你程序(通常叫"实用程序")放置在桌面上,也可以不时从新源提供一些信息,如系统监控器,邮件帐户等更多.正是其时不时更新(但相对不明显),获得信息的速度显然快多了.
Adesklets 提供了供应许多信息相对应的desklets的途径 (X session 在使用中,就是root window[背景]),允许每个desklets 可以单独工作.
安装
Adesklets
Adesklets 可容易安装.它在 Universe 库里, 您要做的就是安装 adesklets
包.
The Desklets Themselves
获取
自从adesklets与desklets区分之后,您需要搜索一些您喜欢的desklets.这里收集了一些desklets.
获取到后您应该把它们放在您认为固定的位置(至少存到您卸载adesklets),然后解压缩,选中按右键选择解压缩到这里.
设置
Desklets 起初要手动运行.因为它们通常是python脚本(通常文件名以".py"结尾),可以在终端 运行使用命令 "python filename.py" ( 这里的 filename.py 是desklet的脚本,通常跟文档名相近).运行每个desklet都有两种方法,一种是"测试"模式,另一种是"注册",当您运行desklet时.它会提示您选择哪种模式(按相应的键,回车).刚开始您最好选择测试模式,这样您可以看看它长什么样,是否把它放到桌面上.按ctrl-C 可以结束测试模式(这是结束在终端运行程序的标准方法).
The desklets are controlled with text files, usually called config.txt, which you can open with any text editor (don't open it if the desklet is running, since your changes may be overwritten). Since every desklet is different it would be impossible to explain how to configure them all, but the text files are usually straightforward. For example, here is a configuration file I use for the "modubar" desklet, which is similar to MacOSX's dock (the thing across the bottom of the screen with the icons in it), but without the extensive comments at the top. The layout is the same as the original and you can see how easy it is to tweak the settings (this desklet looks for icons in a folder called "icons" inside it's directory, and this is where I stored my icon images):
id0 = {'bar_background_1': '202020', 'bar_background_2': None, 'bar_foreground': '000000', 'bar_gradient_angle': 0, 'bar_height': 48, '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.29999999999999999, 'caption_fade_in_steps': 10, 'caption_font': 'Vera', 'caption_size': 20, 'click_effect': 'tint(alpha=75,red=75,green=75,blue=125);', 'click_effect_duration': 0.10000000000000001, 'icon_max_height': 148, 'icon_max_width': 148, 'icon_maximize_threshold': 1.0, 'icon_min_height': 96, 'icon_min_width': 96, 'icon_spacing': 5, 'icons': [('terminal.png', 'Terminal', 'gnome-terminal --working-directory /home/chris'), ('home.png', 'Files', 'nautilus /home/chris/Files'), ('evolution.png', 'EMail', 'evolution --component=mail'), ('amarok.png', 'Amarok', 'amarok'), ('listen.png', 'Listen', 'listen'), ('xmms.png', 'XMMS', 'xmms'), ('gimp.png', 'The GIMP', 'gimp'), ('inkscape.png', 'Inkscape', 'inkscape'), ('moho.png', 'Moho', 'moho'), ('abiword.png', 'Abiword', 'abiword'), ('sancho.png', 'Sancho', 'sancho'), ('gtk-gnutella.png', 'Gnutella', 'gtk-gnutella')], 'mod_background_1': 'AAAAAA', 'mod_background_2': None, 'mod_clock_font': 'Vera', 'mod_clock_size': 16, 'mod_font_color': '000000', 'mod_font_opacity': 'FF', 'mod_foreground_1': '000000', 'mod_foreground_2': None, 'mod_gradient_angle': 0, 'mod_opacity_1': 100, 'mod_opacity_2': None, 'module_height': 32, 'modules': [('clock', 1)], 'modules_on': False}
After changing the configuration you can restart the desklet in test mode to try it out. If there is no config.txt or similar file (if there is a README then check in there for what the configuration file is called) then try running the desklet in test mode then killing it (ctrl-C) to see if the file has been created.
Registering Them
When you are happy with a desklet running in test mode you can tell adesklets to run it for you by registering it. This is usually done by running the desklet script, but instead of choosing test you should choose register. Once the desklet has been registered it will be started when you run the adesklets
command. You can register many desklets which will all be run when you run adesklets
, and it is a good idea to put that command in the session startup (in GNOME this is System->Preferences->Sessions and go on the Startup Programs tab and add it).
链接标题
Some Final Notes
To kill running desklets (which are registered) you can use:
adesklets -k
To remove desklets which you have registered, but which have been deleted, you can "clean up" the configuration file with:
adesklets -c
Desklets will usually appear in the top left corner of the screen. You can move them by right clicking on them and selecting Move, then left clicking when you are happy with the placement. Adesklets will remember the position of the desklet, so it will start in that location next time it is run.
Many desklets use "fake transparency", which means they take a screenshot of the desktop background and use this as the desklet's background, hence pretending that desktop is visible through the desklet (as opposed to "true transparency", often referred to as translucency, which is achieved by compositing programs like xcompmgr and the Compiz window manager). This means that any changing desktop (for example, if you run xscreensaver as your background "image") will not display correctly in the desklets. I personally use ChBg to cycle through different wallpapers, and I have found that my desklets briefy flash above any other windows whilst they are taking their new screenshots. This is annoying, especially when watching video files.