1. # conky configuration
  2. # edited by darcon@gmail.com
  3.  
  4. # set to yes if you want Conky to be forked in the background
  5. background no
  6.  
  7. # X font when Xft is disabled, you can pick one with program xfontsel
  8. #font 5x7
  9. #font 6x10
  10. #font 7x13
  11. #font 8x13
  12. #font 9x15
  13. #font *mintsmild.se*
  14. #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
  15.  
  16.  
  17. # Use Xft?
  18. use_xft yes
  19.  
  20. # Xft font when Xft is enabled
  21. xftfont Bitstream Vera Sans Mono:size=9
  22. #xftfont Terminus:size=8
  23.  
  24. # Text alpha when using Xft
  25. xftalpha 0.8
  26.  
  27. # Print everything to console?
  28. # out_to_console no
  29.  
  30. # mail spool
  31. #mail_spool $MAIL
  32.  
  33. # Update interval in seconds
  34. update_interval 2.0
  35.  
  36. # This is the number of times Conky will update before quitting.
  37. # Set to zero to run forever.
  38. total_run_times 0
  39.  
  40. # Create own window instead of using desktop (required in nautilus)
  41. own_window no
  42.  
  43. # Use double buffering (reduces flicker, may not work for everyone)
  44. double_buffer yes
  45.  
  46. # Minimum size of text area
  47. minimum_size 1000 5
  48.  
  49. # Draw shades?
  50. draw_shades yes
  51.  
  52. # Draw outlines?
  53. draw_outline no
  54.  
  55. # Draw borders around text
  56. draw_borders no
  57.  
  58. # Stippled borders?
  59. stippled_borders 8
  60.  
  61. # border margins
  62. border_margin 4
  63.  
  64. # border width
  65. border_width 1
  66.  
  67. # Default colors and also border colors
  68. default_color white
  69. default_shade_color black
  70. default_outline_color white
  71. default_bar_size 160 5
  72.  
  73. # Text alignment, other possible values are commented
  74. alignment top_left
  75. #alignment top_right
  76. #alignment bottom_left
  77. #alignment bottom_right
  78.  
  79. # Gap between borders of screen and text
  80. # same thing as passing -x at command line
  81. gap_x 0
  82. gap_y 0
  83.  
  84. # Subtract file system buffers from used memory?
  85. no_buffers yes
  86.  
  87. # set to yes if you want all text to be in uppercase
  88. uppercase no
  89.  
  90. # number of cpu samples to average
  91. # set to 1 to disable averaging
  92. cpu_avg_samples 2
  93.  
  94. # number of net samples to average
  95. # set to 1 to disable averaging
  96. net_avg_samples 2
  97.  
  98. # Force UTF8? note that UTF8 support required XFT
  99. override_utf8_locale no
  100.  
  101.  
  102. # Add spaces to keep things from moving about?  This only affects certain objects.
  103. use_spacer yes
  104. #Note: doesn't work in conky 1.2 =(
  105.  
  106. #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
  107. #   mldonkey_port         Mldonkey port, 4001 default
  108. #   mldonkey_login        Mldonkey login, default none
  109. #   mldonkey_password     Mldonkey password, default none
  110.  
  111.  
  112. # Possible variables to be used:
  113. #
  114. #      Variable         Arguments                  Description                
  115.  
  116. #   addr              (interface)   IP address for an interface
  117. #   acpiacadapter                   ACPI ac adapter state.                  
  118. #   acpifan                         ACPI fan state                          
  119. #   acpitemp                        ACPI temperature.                        
  120. #   adt746xcpu                      CPU temperature from therm_adt746x      
  121. #   adt746xfan                      Fan speed from therm_adt746x            
  122. #   alignr            (num)         Right-justify text, with space of N
  123. #   alignc                          Align text to centre
  124. #   battery           (num)         Remaining capasity in ACPI or APM        
  125. #                   battery. ACPI battery number can be      
  126. #                   given as argument (default is BAT0).    
  127. #   buffers                         Amount of memory buffered                
  128. #   cached                          Amount of memory cached                  
  129. #   color             (color)       Change drawing color to color            
  130. #   cpu                             CPU usage in percents                    
  131. #   cpubar            (height)      Bar that shows CPU usage, height is      
  132. #                   bar's height in pixels                
  133. #   cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
  134. #                   CPU usage graph, with optional colours in hex,
  135. #                   minus the #.
  136. #   downspeed         net           Download speed in kilobytes              
  137. #   downspeedf        net           Download speed in kilobytes with one    
  138. #                   decimal                                  
  139. #   downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
  140. #                   Download speed graph, colours defined in
  141. #                   hex, minus the #.
  142. #   exec              shell command Executes a shell command and displays    
  143. #                   the output in conky. warning: this      
  144. #                   takes a lot more resources than other    
  145. #                   variables. I'd recommend coding wanted  
  146. #                   behaviour in C and posting a patch :-).  
  147. #   execbar           shell command Same as exec, except if the first value
  148. #                   return is a value between 0-100, it
  149. #                   will use that number for a bar.
  150. #                   The size for the bar is currently fixed,
  151. #                   but that may change in the future.
  152. #   execgraph         shell command Same as execbar, but graphs values
  153. #   execi             interval, shell command
  154. #                   Same as exec but with specific interval.
  155. #                   Interval can't be less than              
  156. #                   update_interval in configuration.        
  157. #   font          font      Specify a different font.  Only applies
  158. #                   to one line.
  159. #   fs_bar            (height), (fs)Bar that shows how much space is used on
  160. #                   a file system. height is the height in  
  161. #                   pixels. fs is any file on that file      
  162. #                   system.                                  
  163. #   fs_free           (fs)          Free space on a file system available    
  164. #                   for users.                              
  165. #   fs_free_perc      (fs)          Free percentage of space on a file      
  166. #                   system available for users.              
  167. #   fs_size           (fs)          File system size                        
  168. #   fs_used           (fs)          File system used space                  
  169. #   hr                (height)      Horizontal line, height is the height in
  170. #                   pixels                                  
  171. #   i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
  172. #                   may be omitted if you have only one I2C  
  173. #                   device. type is either in (or vol)      
  174. #                   meaning voltage, fan meaning fan or
  175. #                   temp/tempf (first in C, second in F)
  176. #                   meaning temperature. n is number of the  
  177. #                   sensor. See /sys/bus/i2c/devices/ on    
  178. #                   your local computer.                    
  179. #   if_running        (process)     if PROCESS is running, display
  180. #                   everything if_running and the matching $endif
  181. #   if_existing       (file)        if FILE exists, display everything between
  182. #                   if_existing and the matching $endif
  183. #   if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
  184. #                   if_mounted and the matching $endif
  185. #   else                            Text to show if any of the above are not true
  186. #   kernel                          Kernel version                          
  187. #   linkstatus        (interface)   Get the link status for wireless connections
  188. #   loadavg           (1), (2), (3) System load average, 1 is for past 1    
  189. #                   minute, 2 for past 5 minutes and 3 for  
  190. #                   past 15 minutes.                        
  191. #   machine                         Machine, i686 for example                
  192. #   mails                           Mail count in mail spool. You can use    
  193. #                   program like fetchmail to get mails from
  194. #                   some server using your favourite        
  195. #                   protocol. See also new_mails.            
  196. #   mem                             Amount of memory in use                  
  197. #   membar            (height)      Bar that shows amount of memory in use  
  198. #   memmax                          Total amount of memory                  
  199. #   memperc                         Percentage of memory in use
  200. #  
  201. #   metar_ob_time
  202. #   metar_temp
  203. #   metar_tempf                     Temp in F
  204. #   metar_windchill
  205. #   metar_dew_point                 There are a bunch of these
  206. #   metar_rh                        and they are self-explanatory
  207. #   metar_windspeed
  208. #   metar_winddir
  209. #   metar_swinddir
  210. #   metar_cloud
  211. #   metar_u2d_time
  212. #  
  213. #   ml_upload_counter               total session upload in mb
  214. #   ml_download_counter             total session download in mb
  215. #   ml_nshared_files                number of shared files
  216. #   ml_shared_counter               total session shared in mb, buggy
  217. #                   in some mldonkey versions
  218. #   ml_tcp_upload_rate              tcp upload rate in kb/s
  219. #   ml_tcp_download_rate            tcp download rate in kb/s
  220. #   ml_udp_upload_rate              udp upload rate in kb/s
  221. #   ml_udp_download_rate            udp download rate in kb/s
  222. #   ml_ndownloaded_files            number of completed files
  223. #   ml_ndownloading_files           number of downloading files
  224. #  
  225. #   mpd_artist          Artist in current MPD song
  226. #                   (must be enabled at compile)
  227. #   mpd_album           Album in current MPD song
  228. #   mpd_bar           (height)      Bar of mpd's progress
  229. #   mpd_bitrate                     Bitrate of current song
  230. #   mpd_status                      Playing, stopped, et cetera.
  231. #   mpd_title           Title of current MPD song
  232. #   mpd_vol             MPD's volume
  233. #   mpd_elapsed                     Song's elapsed time
  234. #   mpd_length                      Song's length
  235. #   mpd_percent                     Percent of song's progress
  236. #   new_mails                       Unread mail count in mail spool.        
  237. #   nodename                        Hostname                                
  238. #   outlinecolor      (color)       Change outline color                    
  239. #   pre_exec          shell command Executes a shell command one time before
  240. #                   conky displays anything and puts output
  241. #                   as text.                                
  242. #   processes                       Total processes (sleeping and running)  
  243. #   running_processes               Running processes (not sleeping),        
  244. #                   requires Linux 2.6                      
  245. #   shadecolor        (color)       Change shading color                    
  246. #   stippled_hr       (space),      Stippled (dashed) horizontal line        
  247. #           (height)        
  248. #   swapbar           (height)      Bar that shows amount of swap in use    
  249. #   swap                            Amount of swap in use                    
  250. #   swapmax                         Total amount of swap                    
  251. #   swapperc                        Percentage of swap in use                
  252. #   sysname                         System name, Linux for example          
  253. #   offset            pixels        Move text over by N pixels
  254. #   tail              logfile, lines (interval)
  255. #                   Displays last N lines of supplied text
  256. #                   text file.  If interval is not supplied,
  257. #                   Conky assumes 2x Conky's interval.
  258. #                   Max of 30 lines.
  259. #                   Max of 30 lines can be displayed.
  260. #   time              (format)      Local time, see man strftime to get more
  261. #                   information about format                
  262. #   totaldown         net           Total download, overflows at 4 GB on    
  263. #                   Linux with 32-bit arch and there doesn't
  264. #                   seem to be a way to know how many times  
  265. #                   it has already done that before conky  
  266. #                   has started.                            
  267. #   top               type, num     This takes arguments in the form:
  268. #                   top <name> <number>
  269. #                   Basically, processes are ranked from
  270. #                   highest to lowest in terms of cpu
  271. #                   usage, which is what <num> represents.
  272. #                   The types are: "name", "pid", "cpu", and
  273. #                   "mem".
  274. #                   There can be a max of 10 processes listed.
  275. #   top_mem           type, num     Same as top, except sorted by mem usage
  276. #                   instead of cpu
  277. #   totalup           net           Total upload, this one too, may overflow
  278. #   updates                         Number of updates (for debugging)        
  279. #   upspeed           net           Upload speed in kilobytes                
  280. #   upspeedf          net           Upload speed in kilobytes with one      
  281. #                   decimal                                  
  282. #   upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
  283. #                   Upload speed graph, colours defined in
  284. #                   hex, minus the #.
  285. #   uptime                          Uptime                                  
  286. #   uptime_short                    Uptime in a shorter format              
  287. #  
  288. #   seti_prog                       Seti@home current progress
  289. #   seti_progbar      (height)      Seti@home current progress bar
  290. #   seti_credit                     Seti@hoome total user credit
  291.  
  292.  
  293. # variable is given either in format $variable or in ${variable}. Latter
  294. # allows characters right after the variable and must be used in network
  295. # stuff because of an argument
  296.  
  297. # stuff after 'TEXT' will be formatted on screen
  298.  
  299. TEXT
  300.  
  301.  
  302.  
  303. ${offset 5}${color slate grey}${time %a, } ${color }${time %e %B %G}
  304. ${offset 5}${color slate grey}${time %Z,    }${color }${time %H:%M:%S}
  305. ${offset 5}${color slate grey}UpTime: ${color }$uptime
  306. ${offset 5}${color slate grey}Kern:${color }$kernel
  307. #${offset 5}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
  308. #${offset 5}${cpugraph 20,150 000000 ffffff}
  309.  
  310. ${offset 5}${color slate grey}CORE0:${color } ${freq_g 1} GHz ${execi 15 sensors | awk '/^Core 0:/{print $3}' | iconv -f UTF-8 -t ISO_8859-1}
  311. ${offset 5}${cpubar cpu0 5,160} ${cpu cpu0}%
  312. ${offset 5}${cpubar cpu1 5,160} ${cpu cpu1}%
  313.  
  314. ${offset 5}${color slate grey}CORE1:${color } ${freq_g 2} GHz ${execi 15 sensors | awk '/^Core 1:/{print $3}' | iconv -f UTF-8 -t ISO_8859-1}
  315. ${offset 5}${cpubar cpu2 5,160} ${cpu cpu2}%
  316. ${offset 5}${cpubar cpu3 5,160} ${cpu cpu3}%
  317.  
  318. ${offset 5}${color slate grey}CORE2:${color } ${freq_g 3} GHz ${execi 15 sensors | awk '/^Core 2:/{print $3}' | iconv -f UTF-8 -t ISO_8859-1}
  319. ${offset 5}${cpubar cpu4 5,160} ${cpu cpu4}%
  320. ${offset 5}${cpubar cpu5 5,160} ${cpu cpu5}%
  321.  
  322. ${offset 5}${color slate grey}CORE3:${color } ${freq_g 4} GHz ${execi 15 sensors | awk '/^Core 3:/{print $3}' | iconv -f UTF-8 -t ISO_8859-1}
  323. ${offset 5}${cpubar cpu6 5,160} ${cpu cpu6}%
  324. ${offset 5}${cpubar cpu7 5,160} ${cpu cpu7}%
  325.  
  326. ${offset 5}${color slate grey}nVidia:${color} ${nvidia gpufreq} MHz ${nvidia temp}${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C
  327.  
  328. ${offset 5}${color slate grey}Load: ${color }$loadavg
  329. ${offset 5}${color slate grey}Processes: ${color }$processes  
  330. ${offset 5}${color slate grey}Running:   ${color }$running_processes
  331.  
  332. ${offset 5}${color slate grey}Highest CPU:
  333. ${offset 5}${color #ddaa00} ${top name 1}${top_mem cpu 1}
  334. ${offset 5}${color lightgrey} ${top name 2}${top cpu 2}
  335. ${offset 5}${color lightgrey} ${top name 3}${top cpu 3}
  336. ${offset 5}${color lightgrey} ${top name 4}${top cpu 4}
  337.  
  338. ${offset 5}${color slate grey}Highest MEM:
  339. ${offset 5}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
  340. ${offset 5}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
  341. ${offset 5}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
  342. ${offset 5}${color lightgrey} ${top_mem name 4}${top_mem mem 4}
  343.  
  344. ${offset 5}${color slate grey}MEM:${color } $mem/$memmax
  345. ${offset 5}${membar 5,160} $memperc%
  346. ${offset 5}${color slate grey}SWAP:${color } $swap/$swapmax
  347. ${offset 5}${swapbar 5,160} $swapperc%
  348.  
  349. ${offset 5}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /}
  350. ${offset 5}${fs_bar 5,160 /} ${fs_used_perc /}%
  351. ${offset 5}${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
  352. ${offset 5}${fs_bar 5,160 /home} ${fs_used_perc /home}%
  353. #${offset 5}${color slate grey}SLACK:  ${color }${fs_free /mnt/slack}/${fs_size /mnt/slack}
  354. #${offset 5}${fs_bar 5,160 /mnt/slack}
  355.  
  356. ${offset 5}${color slate grey}sda: r:${color }${diskio_read sda} ${color slate grey}w:${color}${diskio_write sda}
  357. ${offset 5}${color slate grey}sdb: r:${color }${diskio_read sdb} ${color slate grey}w:${color}${diskio_write sdb}
  358.  
  359. #${offset 5}${color slate grey}Net:${color} ${addr wlp2s0} (${wireless_essid wlp2s0})
  360. ${offset 5}${color slate grey}Net:${color} ${addr eno1}
  361. ${if_running openconnect}
  362. ${offset 5}${color yellow}openconnect: ${addr tun0}${color}
  363. ${endif}
  364. ${offset 5}${color slate grey}Up: ${color }${upspeed eno1}
  365. ${offset 5}${upspeedgraph eno1 20,160 000000 ffffff}
  366. ${offset 5}${color slate grey}Down: ${color }${downspeed eno1}${color}
  367. ${offset 5}${downspeedgraph eno1 20,160 000000 ffffff}
  368.  
  369. ${offset 5}${color slate grey}Volume:${color}
  370. ${offset 5}${execibar 10 amixer -M get Master | awk '/Mono:/{print $4}' | sed -e 's/[^0-9]//g'} ${execi 10 v=`amixer -M get Master | grep Mono:` ; echo $v | grep -q "off" && echo "(MUTE)" || echo $v | awk '/Mono:/{print $4}' | tr -d '[]' }
  371. #${color slate grey}/var/log/messages.log:
  372. #${color}${exec tail -n20 /var/log/messages.log}