Advertisement
scadl

Conky-AntiX

Feb 20th, 2020
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.18 KB | None | 0 0
  1. # Standard antiX .conkyrc file
  2. #
  3. # Note: delete the line above to disable automatic scaling with DPI
  4. # on the live system.
  5.  
  6. # set to yes if you want Conky to be forked in the background
  7. background yes
  8.  
  9. short_units yes
  10.  
  11. cpu_avg_samples 1
  12. net_avg_samples 1
  13.  
  14. out_to_console no
  15.  
  16. # X font when Xft is disabled, you can pick one with program xfontsel
  17. #font 7x12
  18. #font 6x10
  19. #font 7x13
  20.  font 8x12
  21. #font 7x12
  22. #font *mintsmild.se*
  23. #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
  24. #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
  25.  
  26. # Use Xft?
  27. use_xft yes
  28.  
  29. # Xft font when Xft is enabled
  30. #xftfont gentium:size=12
  31. #ftfont DejaVu Sans:size=10
  32. xftfont DejaVu Sans:bold:size=9
  33. #xftfont DejaVu Sans:size=9
  34.  
  35. # Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
  36. own_window yes
  37. own_window_transparent yes
  38. own_window_hints undecorated,below,sticky,skip_taskbar
  39. own_window_type desktop
  40.  
  41. # Text alpha when using Xft
  42. xftalpha 1.0
  43.  
  44. #on_bottom no
  45.  
  46. # mail spool
  47. mail_spool $MAIL
  48.  
  49. # Update interval in seconds
  50. update_interval 1
  51.  
  52. # Use double buffering (reduces flicker, may not work for everyone)
  53. double_buffer yes
  54.  
  55. # Minimum size of text area
  56. minimum_size 5 5
  57. maximum_width 180
  58.  
  59. # Draw shades?
  60. draw_shades no
  61.  
  62. # Draw outlines?
  63. draw_outline no
  64.  
  65. # Draw borders around text
  66. draw_borders no
  67.  
  68. # Stippled borders?
  69. stippled_borders 0
  70.  
  71. # border margins
  72. #border_margin 10
  73.  
  74. # border width
  75. border_width 2
  76.  
  77. # Default colors and also border colors
  78. default_color white
  79. default_shade_color white
  80. default_outline_color white
  81.  
  82. color2 ffffff
  83. color3 ffffff
  84. color4 yellow
  85. color8 77ccff
  86. color9 5599cc
  87.  
  88. # Text alignment, other possible values are commented
  89. # alignment top_left
  90. alignment top_right
  91. #alignment bottom_left
  92. #alignment bottom_right
  93.  
  94. # Gap between borders of screen and text
  95.  
  96. gap_x 20
  97. gap_y 40
  98.  
  99. # Add spaces to keep things from moving about?  This only affects certain objects.
  100. use_spacer right
  101.  
  102. # Subtract file system buffers from used memory?
  103. no_buffers yes
  104.  
  105. # if_up_strictness link:  up | link | address
  106. if_up_strictness address
  107.  
  108. # set to yes if you want all text to be in uppercase
  109. uppercase no
  110.  
  111. # boinc (seti) dir
  112. # seti_dir /opt/seti
  113.  
  114. # Possible variables to be used:
  115. #
  116. #      Variable         Arguments                  Description                
  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. #  battery           (num)           Remaining capasity in ACPI or APM        
  123. #                                    battery. ACPI battery number can be      
  124. #                                    given as argument (default is BAT0).    
  125. #  buffers                           Amount of memory buffered                
  126. #  cached                            Amount of memory cached                  
  127. #  color             (color)         Change drawing color to color            
  128. #  cpu                               CPU usage in percents                    
  129. #  cpubar            (height)        Bar that shows CPU usage, height is      
  130. #                                    bar's height in pixels                  
  131. #  downspeed         net             Download speed in kilobytes              
  132. #  downspeedf        net             Download speed in kilobytes with one    
  133. #                                    decimal                                  
  134. #  exec              shell command   Executes a shell command and displays    
  135. #                                    the output in torsmo. warning: this      
  136. #                                    takes a lot more resources than other    
  137. #                                    variables. I'd recommend coding wanted  
  138. #                                    behaviour in C and posting a patch :-).  
  139. #  execi             interval, shell Same as exec but with specific interval.
  140. #                    command         Interval can't be less than              
  141. #                                    update_interval in configuration.        
  142. #  fs_bar            (height), (fs)  Bar that shows how much space is used on
  143. #                                    a file system. height is the height in  
  144. #                                    pixels. fs is any file on that file      
  145. #                                    system.                                  
  146. #  fs_free           (fs)            Free space on a file system available    
  147. #                                    for users.                              
  148. #  fs_free_perc      (fs)            Free percentage of space on a file      
  149. #                                    system available for users.              
  150. #  fs_size           (fs)            File system size                        
  151. #  fs_used           (fs)            File system used space                  
  152. #  hr                (height)        Horizontal line, height is the height in
  153. #                                    pixels                                  
  154. #  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
  155. #                                    may be omitted if you have only one I2C  
  156. #                                    device. type is either in (or vol)      
  157. #                                    meaning voltage, fan meaning fan or temp
  158. #                                    meaning temperature. n is number of the  
  159. #                                    sensor. See /sys/bus/i2c/devices/ on    
  160. #                                    your local computer.                    
  161. #  kernel                            Kernel version                          
  162. #  loadavg           (1), (2), (3)   System load average, 1 is for past 1    
  163. #                                    minute, 2 for past 5 minutes and 3 for  
  164. #                                    past 15 minutes.                        
  165. #  machine                           Machine, i686 for example                
  166. #  mails                             Mail count in mail spool. You can use    
  167. #                                    program like fetchmail to get mails from
  168. #                                    some server using your favourite        
  169. #                                    protocol. See also new_mails.            
  170. #  mem                               Amount of memory in use                  
  171. #  membar            (height)        Bar that shows amount of memory in use  
  172. #  memmax                            Total amount of memory                  
  173. #  memperc                           Percentage of memory in use              
  174. #  new_mails                         Unread mail count in mail spool.        
  175. #  nodename                          Hostname                                
  176. #  outlinecolor      (color)         Change outline color                    
  177. #  pre_exec          shell command   Executes a shell command one time before
  178. #                                    torsmo displays anything and puts output
  179. #                                    as text.                                
  180. #  processes                         Total processes (sleeping and running)  
  181. #  running_processes                 Running processes (not sleeping),        
  182. #                                    requires Linux 2.6                      
  183. #  shadecolor        (color)         Change shading color                    
  184. #  stippled_hr       (space),        Stippled (dashed) horizontal line        
  185. #                    (height)        
  186. #  swapbar           (height)        Bar that shows amount of swap in use    
  187. #  swap                              Amount of swap in use                    
  188. #  swapmax                           Total amount of swap                    
  189. #  swapperc                          Percentage of swap in use                
  190. #  sysname                           System name, Linux for example          
  191. #  time              (format)        Local time, see man strftime to get more
  192. #                                    information about format                
  193. #  totaldown         net             Total download, overflows at 4 GB on    
  194. #                                    Linux with 32-bit arch and there doesn't
  195. #                                    seem to be a way to know how many times  
  196. #                                    it has already done that before torsmo  
  197. #                                    has started.                            
  198. #  totalup           net             Total upload, this one too, may overflow
  199. #  updates                           Number of updates (for debugging)        
  200. #  upspeed           net             Upload speed in kilobytes                
  201. #  upspeedf          net             Upload speed in kilobytes with one      
  202. #                                    decimal                                  
  203. #  uptime                            Uptime                                  
  204. #  uptime_short                      Uptime in a shorter format              
  205. #
  206. #  seti_prog                         Seti@home current progress
  207. #  seti_progbar      (height)        Seti@home current progress bar
  208. #  seti_credit                       Seti@hoome total user credit
  209.  
  210.  
  211. ## antiX additives examples. Add below Text##
  212. ##Battery examples##
  213. ##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}%
  214. ##${color}battery:${color} ${battery}
  215. #${color}ACPI Battery: ${color}$battery
  216. #${battery_bar 11,0}
  217. ##Wireless example##
  218. #${color}Wireless:
  219. #${color}essid: ${wireless_essid wlan0}
  220. #${color}IP:${color} ${addr wlan0}
  221. #${color}speed: ${color} ${wireless_bitrate wlan0}
  222. #${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
  223.  
  224. # stuff after 'TEXT' will be formatted on screen
  225.  
  226. TEXT
  227. ${color3}${alignc}antiX
  228. ${color8}$alignc${font DejaVu Sans:size=12}${time %I:%M}   $font
  229. ${color}${alignc}${time %a %d %b}
  230. ${color}${alignc}Uptime: $uptime
  231. ${color}${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
  232. ${color}res:${alignr}${color3}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
  233. ${color}dpi:${alignr}${color3}${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
  234. ${color}Automount: ${alignr}${color3}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
  235. ${color}CPU:${alignr}${color3}${cpu}${color}%
  236. ${color}Freq:${color3}${alignr}${freq}
  237. ${color}$alignr${cpugraph cpu0 30,170 5599cc 5599cc}
  238. ${color}Disk:${alignr}${color3}${diskio}
  239. ${color}${alignr}${diskiograph 30,170 5599cc 5599cc}${if_up eth0}
  240. ${color}eth0 up: $alignr${color3} ${upspeed eth0}
  241. ${color}$alignr${upspeedgraph   eth0 30,170 5599cc 5599cc}
  242. ${color}eth0 down: $alignr${color3} ${downspeed eth0}
  243. ${color2}$alignr${downspeedgraph eth0 30,170  5599cc 5599cc}${endif}${if_up eth1}
  244. ${color}eth1 up: $alignr${color3} ${upspeed eth1}
  245. ${color}$alignr${upspeedgraph   eth1 30,170 5599cc 5599cc}
  246. ${color}eth1 down: $alignr${color3} ${downspeed eth1}
  247. ${color2}$alignr${downspeedgraph eth1 30,170  5599cc 5599cc}${endif}${if_up wlan0}
  248. ${color}wlan0 up: $alignr${color3} ${upspeed wlan0}
  249. ${color2}$alignr${upspeedgraph   wlan0 30,170 5599cc 5599cc}
  250. ${color}wlan0 down: $alignr${color3} ${downspeed wlan0}
  251. ${color2}$alignr${downspeedgraph wlan0 30,170 5599cc 5599cc}${endif}${if_up wlan1}
  252. ${color}wlan1 up: $alignr${color3} ${upspeed wlan1}
  253. ${color2}$alignr${upspeedgraph   wlan1 30,170 5599cc 5599cc}
  254. ${color}wlan1 down: $alignr${color3} ${downspeed wlan1}
  255. ${color2}$alignr${downspeedgraph wlan1 30,170 5599cc 5599cc}${endif}
  256. ${color}${alignr}${color8}Used / Total
  257. ${color}RAM:${alignr}$mem ${color3} /${color} $memmax
  258. ${color}Swap:${alignr}$swap ${color3} /${color} $swapmax
  259. ${color}/ Disk:${alignr}${fs_used /} ${color3} /${color} ${fs_size /}
  260. ${color3}${alignc}${execi 1000 persist-enabled}
  261. ${execi 1000 acpi 2>/dev/null | grep -q . && echo "Batt: "}${execi 10 acpi -b 2>/dev/null | cut -d" " -f3,4 | sed 's/,$//'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement