This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
forked from EricAtNRD/ConkyInfinitySVG
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.conkyrc
365 lines (328 loc) · 17.4 KB
/
.conkyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
###############################################################################
# Conky Theme : InfinitySVG
#
# Updates and SVG by: Pablo Angelani
# Original Updates Infinity and SVG: Eric Weik
# Original Infinity theme by: Harshit Yadav
# Includes lua code: Clock Rings by londonali1010 (2009)
# Feel Free to distribute
# For Installation Instructions see README
#
# Colors from haunted .lua and .conkyrc:
# b7b7b7 (light grey)
# 6f6f6f (medium grey)
# 2c2c2c (dark grey)
#
# 4a89a7 (blue) hardware / memory / root
# 468626 (blue alt)
# e83737 (red) swap
# 46a646 (green) user / cpu / home
# f4732d (orange) network
# ebff46 (yellow) network
# FFA300 (br. orange) text highlights
#
# Changelog:
# + v1.0.1: Initial version by Harshit Yadav
# + [All further changes tracked in the git repository.]
###############################################################################
#########################################
############# Conky settings ############
#########################################
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
##
#########################################
######### Window specifications #########
#########################################
# Allow conky to handle transparency -- all or nothing
#own_window yes
#own_window_type conky
#own_window_transparent yes
# Allow compiz to handle transparency manually (you will need to add Conky to compiz)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# Allow conky to handle transparency (with percentages) with a compositor
# From http://blog.mmassonnet.info/2011/08/xfce-48-with-conky.html)
#own_window yes
#window_own_type desktop
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # make it behave like it belongs to the desktop
#own_window_argb_visual yes # true transparency, a compositor has to be active
#own_window_argb_value 70 # make the background semi-transparent
## This Resolution is set according to the sreen resolution of 1360x768
## Adjust Accoring to yours
minimum_size 1360 576
maximum_width 1366
#alignment top_left
alignment top_right
gap_x 0
gap_y 0
#########################################
########### Graphics settings ###########
#########################################
border_inner_margin 0
border_outer_margin 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
## Text settings
use_spacer yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
#temperature_unit fahrenheit
temperature_unit celsius
# Color settings
default_color eaeaea
color1 b7b7b7 #(light grey)
color2 6f6f6f #(medium grey)
color2 2c2c2c #(dark grey)
color3 4a89a7 #(teal / blue)
color4 e83737 #(red)
color5 ebff46 #(yellow)
color6 46a646 #(green)
color7 f4732d #(orange)
color8 ffa300 #(bright orange)
## Lua: load clock rings.
lua_load ~/.conky/scripts/haunted.lua
lua_draw_hook_pre clock_rings
## Possible variables to be used:
#
# Variable Arguments Description
# addr (interface) IP address for an interface
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# alignr (num) Right-justify text, with space of N
# alignc Align text to centre
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# cpugraph (height),(width) (gradient colour 1) (gradient colour 2)
# CPU usage graph, with optional colours in hex,
# minus the #.
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# downspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Download speed graph, colours defined in
# hex, minus the #.
# exec shell command Executes a shell command and displays
# the output in conky. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execbar shell command Same as exec, except if the first value
# return is a value between 0-100, it
# will use that number for a bar.
# The size for the bar is currently fixed,
# but that may change in the future.
# execgraph shell command Same as execbar, but graphs values
# execi interval, shell command
# Same as exec but with specific interval.
# Interval can't be less than
# update_interval in configuration.
# font font Specify a different font. Only applies
# to one line.
# fs_bar (height), (fs)Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or
# temp/tempf (first in C, second in F)
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# if_running (process) if PROCESS is running, display
# everything if_running and the matching $endif
# if_existing (file) if FILE exists, display everything between
# if_existing and the matching $endif
# if_mounted (mountpoint) if MOUNTPOINT is mounted, display everything between
# if_mounted and the matching $endif
# else Text to show if any of the above are not true
# kernel Kernel version
# linkstatus (interface) Get the link status for wireless connections
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
#
# metar_ob_time
# metar_temp
# metar_tempf Temp in F
# metar_windchill
# metar_dew_point There are a bunch of these
# metar_rh and they are self-explanatory
# metar_windspeed
# metar_winddir
# metar_swinddir
# metar_cloud
# metar_u2d_time
#
# ml_upload_counter total session upload in mb
# ml_download_counter total session download in mb
# ml_nshared_files number of shared files
# ml_shared_counter total session shared in mb, buggy
# in some mldonkey versions
# ml_tcp_upload_rate tcp upload rate in kb/s
# ml_tcp_download_rate tcp download rate in kb/s
# ml_udp_upload_rate udp upload rate in kb/s
# ml_udp_download_rate udp download rate in kb/s
# ml_ndownloaded_files number of completed files
# ml_ndownloading_files number of downloading files
#
# mpd_artist Artist in current MPD song
# (must be enabled at compile)
# mpd_album Album in current MPD song
# mpd_bar (height) Bar of mpd's progress
# mpd_bitrate Bitrate of current song
# mpd_status Playing, stopped, et cetera.
# mpd_title Title of current MPD song
# mpd_vol MPD's volume
# mpd_elapsed Song's elapsed time
# mpd_length Song's length
# mpd_percent Percent of song's progress
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# conky displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dfontashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
# Conky assumes 2x Conky's interval.
# Max of 30 lines.
# Max of 30 lines can be displayed.
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before conky
# has started.
# top type, num This takes arguments in the form:
# top <name> <number>
# Basically, processes are ranked from
# highest to lowest in terms of cpu
# usage, which is what <num> represents.
# The types are: "name", "pid", "cpu", and
# "mem".
# There can be a max of 10 processes listed.
# top_mem type, num Same as top, except sorted by mem usage
# instead of cpu
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# upspeedgraph net (height),(width) (gradient colour 1) (gradient colour 2)
# Upload speed graph, colours defined in
# hex, minus the #.
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@home total user credit
#
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
## Adjust these fields according to the your screen size i have modded them for 1366X768
TEXT
## Date
${offset 600}${color}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color8}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color}${font GE Inspira:pixelsize=22}${exec echo $(echo $(date +%B) | cut -c1 | tr '[a-z]' '[A-Z]')$(echo $(date +%B) | cut -c2-)} ${time %Y}${font}
${voffset 124}${offset 350}${font GE Inspira:pixelsize=54}${exec echo $(echo $(date +%A) | cut -c1 | tr '[a-z]' '[A-Z]')$(echo $(date +%A) | cut -c2-)}${font}
##
${offset 620}${voffset -100}${font Ubuntu:pixelsize=12}${color8}HD ${offset 9}${color 4a89a7}${exec df -h | grep "/dev/sd*" | awk '{ SUM += $3} END { print SUM "Gib" }'} / ${exec df -h | grep "/dev/sd*" | awk '{ SUM += $2} END { print SUM "Gib" }'}${offset 30}${color8}RAM ${offset 9}${color 4a89a7}$mem / $memmax${offset 30}${color8}CPU1 ${offset 9}${color3}${cpu cpu0}%
${offset 955}${color8}CPU2 ${offset 9}${color3}${cpu cpu1}%
${offset 980}${color8}CPU3 ${offset 9}${color3}${cpu cpu2}%
${voffset -5}${offset 290}${color}${hr 2}
${image ~/.conky/background.png}
##WEATHER
${voffset -90}
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=12813015&u=c" -o ~/.cache/weather.xml}
${offset 1110}${font Open Sans Light:size=15}${color 000000}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
${font Open Sans Light:size=70}${color}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset -35}
${execi 300 cp -f ~/.conky/scripts/weather/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}
${offset 1055}${font Ubuntu:pixelsize=14}${color}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | ~/.conky/scripts/weather/traductor.py | tr '[a-z]' '[A-Z]'}
${voffset -25}
${offset 1085}${font Ubuntu:pixelsize=12}${color}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${offset 1085}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%
${image ~/.cache/weather.png -p 1055,190 -s 60x60}
${image ~/.conky/scripts/weather/wind.png -p 1055,285 -s 15x15}
${image ~/.conky/scripts/weather/humidity.png -p 1055,305 -s 15x15}
${voffset -175}
###
##FILE SYSTEM
${offset 120}${voffset 198}${font Monospace:size=11:style=Bold}${color 4a89a7}root:${tab 4}${font Santana:size=11}${color}${fs_used /}/${fs_size /}
${offset 120}${voffset 7}${color6}${font Monospace:size=11:style=Bold}home:${tab 4}${font Santana:size=11}${color}${fs_used /home}/${fs_size /home}$font
${offset 120}${voffset 7}${color4}${font Monospace:size=11:style=Bold}swap:${tab 4}${font Santana:size=10}${color} ${swap}/${swapfree}
${offset 500}${voffset -110}${font Santana:size=10}${color}Linux ${kernel} kernel
${offset 500}${font Monospace:size=9}${color 4a89a7}Uptime:${color}${uptime}
${offset 755}${voffset -110}${font Santana:size=12:style=Bold}${color}${exec whoami}@${nodename}
${offset 755}${font Monospace:size=9}${color6} Top (CPU):${tab 2}${offset 9}${color}${top name 5} ${top cpu 5}
${offset 755}${font Monospace:size=9}${color6} Top (RAM):${tab 2}${offset 9}${color}${top_mem name 5} ${top_mem mem 5}
${offset 635}${voffset 150}${color}${font Santana:size=11:style=Bold}IP Address : ${addr eth0}
${offset 635}${color}${font Monospace:size=9}TCP Connections: ${tcp_portmon 1 65535 count}
${offset 635}${font Monospace:size=9}${color4}Down: ${offset 9}${color}${downspeed eth0}/s ${tab 4}${color4}Up:${tab 4}${color}${upspeed eth0} /s
${offset 830}${voffset -155}${color}${font Santana:size=11:style=Bold}Gmail:${color} 'YOUR EMAIL DOMAIN HERE'
${offset 830}${font Monospace:size=9}${color7}${execi 150 ~/.conky/scripts/mail/gmail.py}
# Positioning eset for static text examples below
${voffset 60}
# Static text example: Logo
${offset 120}${color}${font Ubuntu:pixelsize=20}${color7}'YOUR OS'${color} 'YOUR OS VERSION'
# Static text example: Multi-line
#${offset 120}$font${color 6f6f6f}random text can go here
#${offset 120}and here...
#${offset 120}and here...