Commit 0e6a8753 authored by github-pop's avatar github-pop

arch / cinnamon compatibility

parent ed51bb07
......@@ -46,6 +46,7 @@ conky.config = {
draw_borders = false,
draw_graph_borders = false,
--default_color gray
default_shade_color = 'red',
default_outline_color = 'green',
......@@ -53,7 +54,7 @@ conky.config = {
-- Text settings #
use_xft = true,
override_utf8_locale = true,
font = 'Play:normal:size=7.5',
font = 'Play:normal:size=7,5',
xftalpha = 0.9,
uppercase = false,
......@@ -84,12 +85,12 @@ ${goto 50}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${color1}${top name 3}${alignr 306}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 4}CPU
## MEMORY ################
${font Michroma:size=10}${color0}${goto 394}${voffset 46}MEMORY
${font Michroma:size=10}${color0}${goto 394}${voffset 42}MEMORY
${font}${goto 324}${voffset -4}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${voffset 18}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${voffset 3}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}
${voffset 12}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${voffset 2}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}
## FILESYSTEMS #################
#{{ FILESYSTEM }}
## INTERNET ################
......
......@@ -43,8 +43,8 @@ dest_conky = './conky_gen.conkyrc'
## brown | d7bd4c
default_fg_color = '0x34cdff'
color0 = 'd70751'
color1 = '323232'
color0 = '34cdff'
color1 = 'efefef'
# for conky
ccolor0 = '#'+color0
ccolor1 = '#'+color1
......@@ -285,7 +285,7 @@ def write_fsconf_conky(fs):
""" Prepare conky config for CPU
"""
conf = []
voffset = -65
voffset = -72
fs_max = 3
for cpt in range (len(fs)):
......@@ -350,15 +350,15 @@ def write_cpuconf_conky(cpunb):
# Testing
#cpunb = 8
cpuconf = []
voffset = 3
voffset = 2
max_cpu_display = 8
# bring lines closer if many cpus
if cpunb > 4:
if cpunb > 6:
voffset = 0.5
voffset = 0
else:
voffset = 1.5
voffset = 1
print('We have {} CPUs'.format(cpunb))
if cpunb >= max_cpu_display:
......@@ -375,7 +375,7 @@ def write_cpuconf_conky(cpunb):
cpuconf.append(new_block)
print('adjusting voffset for top cpu processes...')
adjust = 34 - (voffset * cpunb)
adjust = 28 - (voffset * cpunb)
new_block = "${{goto 50}}${{voffset {0}}}${{color1}}${{top name 1}}${{alignr 306}}${{top cpu 1}}%".format(adjust)
cpuconf.append(new_block)
......
${font}${color1}${alignr}${goto 310}NO DEFAULT ROUTE!
${image ~/conky/conky-grappes/tachi_conky1.png -s 80x60 -p 380,360 -f 86400}
${voffset 20}
${image ./tachi_conky1.png -s 80x60 -p 380,360 -f 86400}
${voffset 8}
......@@ -3,4 +3,4 @@ ${goto 298}${voffset 6}Up${goto 370}${color1}${totalup INTERFACE} / ${color1}${u
${goto 298}${color1}Down${goto 370}${color1}${totaldown INTERFACE} / ${color1}${downspeed INTERFACE}
${goto 300}${voffset 2}Local IP${goto 370}${addr INTERFACE}
${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${voffset -17}
${voffset -32}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment