由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

Conky - the best plug for desktop

reference:aikunzhe

  1. sudo apt-get install conky
  2. conky
  1. sudo apt-get install hddtemp curl lm-sensors conky-all
  2. sudo chmod u+s /usr/sbin/hddtemp
  3. sudo sensors-detect
  4. sudo reboot
  1. cp /etc/conky/conky.conf /home/$USER/.conkyrc

You can editing /home/$USER/.conkyrc to personize it.

conky.config

  1. gap_x # initial place
  2. gap_y # initial place

Theme from github

  1. git clone https://github.com/aikunzhe/conky_colors.git
  2. cd conky_colors
  3. make
  4. sudo make install
  5. ## test
  6. conky-colors --theme=custom --default-color=black --color0=cyan --color1=green --color2=orange --color3=red --ubuntu --cpu=2--updates --proc=3--clock=default --calendar --nvidia --hd=default --hdtemp1=sda --photo --photord --network --unit=C --side=right --bbcweather=1586--weather=CHXX0100 --rhythmbox=cd
  7. conky -c /home/$USER/.conkycolors/conkyrc

效果:
Conky - the best plug for desktop - 图1

具體配置:
from: aikunzhe

  1. 快捷键 Ctrl Alt T 打开一个终端运行以下命令查看帮助,
  2. 代码:
  3. conky-colors --help
  4. 部份conky-colors命令参数选项介绍:
  5. --lang 语言,5.1.2 版没有cn 中文选项,只能用默认的en 英语。
  6. --theme 面板主题,
  7. brave|carbonite|dust|human|noble|tribute|wine|wise|
  8. ambiance|radiance|elementary|
  9. cyan|blue|orange|red|green|purple|black|white|
  10. custom
  11. --side 面板在桌面的位置 left 左, right 右(默认)
  12. --ubuntu 显示LOGO,有9LOGO可选,还可以在配置文件里自定义更多的LOGO
  13. --Fedora,--openSUSE,--debian,--arch,--gentoo,--pardus,--xfce,--gnome
  14. --cpu 显示CPU信息,双核CPU2,四核用4,单核用1
  15. --cputemp 显示CPU温度
  16. --swap 显示swap缓存分区的信息
  17. --updates 显示系统需要升级的软件包信息
  18. --proc 显示资源占用情况排在前列的进程,3 显示3个进程(最多为10
  19. --clock 显示时钟和日期,有7种形式可选defaultclassicslimmodernluckydigitaloff
  20. --calendar 显示月历
  21. --nvidia 显示Nidia显卡信息,抱歉没有ATI 的选项
  22. --hd 显示硬盘信息,有4中形式可选defaultmeerkatmixsimple
  23. --hdtemp1 显示第一个硬盘的温度,第2sata硬盘为 --hdtemp2=sdb
  24. --photord 随机显示幻灯片相册,默认使用的是系统桌面背景图片文件夹,可以在脚本 ~/.conkycolors/bin/conkyPhotoRandom 中把 source="/usr/share/backgrounds/" 修改为自定义的图片目录
  25. --photo 仅固定显示一张图片,放在 /usr/share/backgrounds/
  26. --network 显示网络信息,可以指定使用 --eth 网卡设备,--wlan 无线设备,--ppp 拨号设备 (默认都是0
  27. --battery 显示电池信息
  28. --unit 温度单位 C 摄氏 F 华氏
  29. --rhythmbox 在多媒体栏显示Ubuntu自带的rhythmbox播放器的曲目信息。
  30. 7中形式可选:defaultcdcaseglassyvinyloldvinylsimple
  31. 还支持其他播放器:--covergloobus,--banshee,--exaile
  32. --pidgin 可显示pidgin在线的聊天好友
  33. 按自己需要实现的功能选择相应参数,然后运行conky-colors生成.conkycolors目录和相关文件,
  34. 你至少需要运行一次这个命令!否则没有.conkycolors这个目录,或者缺少某些程序文件。例如:
  35. 代码:
  36. conky-colors --theme=custom --default-color=black --color0=cyan --color1=green --color2=orange --color3=red --ubuntu --cpu=2--updates --proc=3--clock=default --calendar --nvidia --hd=default --hdtemp1=sda --photo --photord --network --unit=C --side=right --bbcweather=1586--weather=CHXX0100 --rhythmbox=cd
  37. 然后生成conkyrc配置文件,存放在 /home/用户名/.conkycolors 目录下,
  38. 如果没有.conkycolors这个目录,可以自己创建。
  39. 提示:在Linux中,凡是名称以点号开头的文件或文件夹,默认都是隐藏不见的。
  40. 在窗口中,按下 Ctrl H 键即可显示隐藏文件。
  41. 在终端下,可以用 ls -a 命令查看隐藏文件。
  1. ./conky-colors <options>
  2. options:
  3. -------------- LANGUAGES --------------
  4. --lang=<language> - Set default language
  5. Languages: bg|de|el|en*|et|fr|it|pl|pt|ru|es|uk
  6. -------------- THEMES --------------
  7. --theme=<theme> - Set default theme color
  8. Themes: brave|carbonite|dust|human*|noble|tribute|wine|wise|
  9. ambiance|radiance|elementary|
  10. cyan|blue|orange|red|green|purple|black|white|
  11. custom
  12. Work only with --theme=custom
  13. --default-color=<value>
  14. --color0=<value>
  15. --color1=<value>
  16. --color2=<value>
  17. --color3=<value>
  18. --dark - Set Dark Brightness
  19. -------------- DEFAULT MODE --------------
  20. --<logo> - Replace computer icon for distro Logo
  21. Logos: ubuntu|fedora|opensuse|debian|arch|gentoo|pardus|xfce|gnome
  22. --cpu=<number> - Set number of cpu cores
  23. --cputemp - Enable CPU temperature
  24. --swap - Enable SWAP
  25. --battery - Enable battery
  26. --battery-value=<number> - Change battery device number </proc/acpi/battery>
  27. --updates - Show updates for Debian/Ubuntu
  28. --proc=<number> - Enable processes [Max = 10]
  29. --clock=<default|modern|digital|off>
  30. --nodata - disable Data
  31. --calendar - Enable calendar
  32. --calendarm - Enable calendar with monday as first day
  33. --calendarzim - Enable calendar with Zim support
  34. --nvidia - Enable nvidia gpu
  35. --task - Enable Task [type "ct help" in terminal for info]
  36. --hd=<default|meerkat|mix|simple> - Enable HD
  37. --hdtemp1=<device> - Enable HD temperature [Ex: --hdtemp1=sda]
  38. --hdtemp2=<device> - Enable HD temperature [Ex: --hdtemp2=sdb]
  39. --hdtemp3=<device> - Enable HD temperature [Ex: --hdtemp3=sdc]
  40. --hdtemp4=<device> - Enable HD temperature [Ex: --hdtemp4=sdd]
  41. --photo - Enable Photo
  42. --photord - Enable Photo in random mode
  43. --mpd - Enable MPD
  44. --banshee=<default|cd|case|glassy|vinyl|oldvinyl|simple>
  45. --clementine=<default|cd|case|glassy|vinyl|oldvinyl|simple>
  46. --rhythmbox=<default|cd|case|glassy|vinyl|oldvinyl|simple>
  47. --covergloobus - Enable CoverGloobus
  48. --gmail - Enable gmail notify
  49. --user=<username> - Type your username
  50. --passwd=<password> - Type your password
  51. --network - Enable network
  52. --eth=<number> - Change ethernet device [Default=0]
  53. --wlan=<number> - Change wireless device [Default=0]
  54. --ppp=<number> - Change 3g modem device [Default=0]
  55. --unit=<C|F>- Force output temperature either in Celius or Fahrenheit
  56. --weather=<AreaID> - Enable weather[Ex: --weather=BRXX0043]
  57. --bbcweather=<AreaID> - Enable weather[Ex: --bbcweather=3849]
  58. --side=<left|right*> - Set the side of conky in your screem
  59. -------------- CAIRO/RING MODE --------------
  60. --cairo - Enable cairo-conky mode.
  61. --ring - Enable ring-conky mode.
  62. --cpu=<number> - Set number of cpu cores
  63. --swap - Enable SWAP [cairo-mode only]
  64. --clock=<cairo|bigcairo> - Enable/disable clock [cairo-mode only]
  65. --banshee=<cairo|cairo-case|cairo-cd|cairo-glassy|lua> [cairo-mode only]
  66. --clementine=<cairo|cairo-case|cairo-cd|cairo-glassy|lua> [cairo-mode only]
  67. --rhythmbox=<cairo|cairo-case|cairo-cd|cairo-glassy|lua> [cairo-mode only]
  68. --banshee=<ring|ring-case|ring-cd|ring-glassy> [ring-mode only]
  69. --clementine=<ring|ring-case|ring-cd|ring-glassy> [ring-mode only]
  70. --rhythmbox=<ring|ring-case|ring-cd|ring-glassy> [ring-mode only]
  71. --network - Enable network
  72. --unit=<C|F>- Force output temperature either in Celius or Fahrenheit
  73. -------------- BOARD/SLIM MODE --------------
  74. --board - Enable board-conky mode.
  75. --slim - Enable slim-conky mode.
  76. --w=<width> - Set your screen width
  77. --h=<height> - Set your screen height
  78. --nobg - Remove background
  79. --posfix=<number> - fix ring position
  80. --weather=<AreaID> - Enable weather[Ex: --weather=BRXX0043]
  81. --unit=<C|F>- Force output temperature either in Celius or Fahrenheit
  82. -------------- SLS MODE --------------
  83. --sls - Enable SLS-conky mode.
  84. --nobg - Remove background
  85. --weather=<AreaID> - Enable weather[Ex: --weather=BRXX0043]
  86. --user=<username> - Type your gmail username
  87. --passwd=<password> - Type your gmail password
  88. -------------- EXTRA OPTIONS --------------
  89. --datadir=/path/to/datadir - it overrides default datadir
  90. --createlocalcopy - it copies the content of system datadir to /home/ken/.conkycolors
  91. --nofilecheck - disables checking the presence of files
  92. --default_datadir - prints the order of default datadirs in which files are searched by default.
  93. --finddir=FILE - this option makes this program find and print out a directory where FILE is located.
  94. --argb-value=0-255 - Set the value of own_window_argb_value, the default is 200
  95. --install=local(*), system, or custom - install generated configuration files to a chosen datadir.
  96. --systemdir - displays the system directory for conkycolors.
  97. --localdir - displays the local directory for conkycolors.
  98. (*)default values

task 文件在 /home/$USER/.conkycolors/tasks

conky-colors --theme=blue  --default-color=black --color0=cyan --color1=green  \
--color2=orange --color3=red \ # basic thmeme
--debian --updates    \   # system $ update information
--cpu=8 --cputemp    \   # cpu and cmp tmp
--nvidia            \    # gpu infor
--swap               \   # Ram
--battery            \    # Battery inf
--proc=10           \    #task
--clock=digital  --calendarm  \    # Date
--task              \    # personal task, stort at /home/$USER/.conkycolors/tasks
--hd=default --hdtemp1=sda  --hdtemp2=sda2  \   #hard drive Tm
--banshee=simple --clementine=default --rhythmbox=default  \    #Media player
##--network          \    # fail to show on my computer
## --board/--slim    \    # fail to show on my computer
## --weather=BRXX0043\    # fail to request the Tm
conky-colors --theme=blue  --default-color=black --color0=cyan --color1=green  \
--color2=orange --color3=red \
--debian --updates    \
--cpu=8 --cputemp    \
--nvidia            \
--swap               \
--battery            \
--proc=10           \
--clock=digital  --calendarm  \
--task              \
--hd=default --hdtemp1=sda  --hdtemp2=sda2  \
--banshee=simple --clementine=default --rhythmbox=default

开机启动

reference:Micr067
创建启动文件并加入以下配置
locate autostart 查找系统启动文件目录

我的栗子:

sudo vim /etc/xdg/autostart/conky.desktop

输入一下文本

[Desktop Entry]
Name=conky
Type=Application
Exec=/usr/bin/conky

保存(:wq!)并退出 reboot

conky主题网站

reference:潘哒mate
https://www.deviantart.com/customization/skins/linuxutil/applications/conky/newest/

tutorial:https://www.cnblogs.com/MineLSG/p/10413608.html


Enjoy~

本文由Python腳本GitHub/語雀自動更新

由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

GitHub: Karobben
Blog:Karobben
BiliBili:史上最不正經的生物狗