color scheme change, fix formatting

This commit is contained in:
ray 2019-07-04 22:07:35 +01:00
parent efee0fbea2
commit b3c56aba5d
4 changed files with 108 additions and 66 deletions

View File

@ -30,7 +30,9 @@ conky.config = {
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = '4B0D56',
default_color = '544647',
color0 = '705d5e',
color1 = '8c7476',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
@ -59,21 +61,19 @@ conky.config = {
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_spacer = 'left',
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
-----::\
${lua_parse pad - 3 ${processes}}\
$processes\
${lua_parse sub_space 0 ${processes}}\
:\
${lua_parse pad - 3 ${running_processes}}\
$running_processes\
${lua_parse sub_space 0 ${running_processes}}\
:\
${lua_parse pad - 3 ${cpu}}\
${color 701461}\
${color0}\
$cpu\
$color\
::\
@ -81,65 +81,63 @@ $color\
$memmax\
$color\
-\
${color A82283}\
${color1}\
$mem\
$color\
=\
${color 701461}\
${color0}\
$memeasyfree\
${color}\
|$memfree.\
[\
${color 701461}\
$swap\
${color0}\
${lua_parse sub_space 0 ${swap}}\
$color]\
${color 701461}\
${color0}\
$color\
::\
\
/\
${color A82283}\
${fs_free /}\
${color1}\
${lua_parse sub_space 0 ${fs_free /}}\
$color\
:\
m/\
${color 701461}\
${fs_free /mnt/manjaro}\
${color0}\
${lua_parse sub_space 0 ${fs_free /mnt/manjaro}}\
$color\
:\
4/\
${color 701461}\
${fs_free /mnt/4tb}\
${color0}\
${lua_parse sub_space 0 ${fs_free /mnt/4tb}}\
$color\
:\
4_2/\
${color 701461}\
${fs_free /mnt/4tb_2}\
${color0}\
${lua_parse sub_space 0 ${fs_free /mnt/4tb_2}}\
$color\
:\
i/\
${color 701461}\
${fs_free /mnt/int_data}\
${color0}\
${lua_parse sub_space 0 ${fs_free /mnt/int_data}}\
$color\
::\
\
${lua_parse pad - 6 ${upspeed enp3s0}}\
${color 701461}\
${upspeed enp3s0}\
${color0}\
${lua_parse sub_space 0 ${upspeed enp3s0}}\
$color\
-\
${color A82283}\
${downspeed enp3s0}\
${color1}\
${lua_parse sub_space 0 ${downspeed enp3s0}}\
$color\
${lua_parse pad - 6 ${downspeed enp3s0}}\
-\
${color 701461}\
${color0}\
$nodename\
$color\
:\
$sysname\
:\
${color 701461}\
${color0}\
$kernel\
$color\
[\
@ -148,23 +146,23 @@ $machine\
::\
$color\
--\
${color 701461}\
${color0}\
${time %Y.%m.%d}\
$color\
:\
${color A82283}\
${color1}\
${time %H:%M}\
$color\
::\
${color 701461}\
$uptime_short\
$color\
${lua_parse sub_space 0 ${uptime_short}}\
$color\
::\
${color 701461}\
${hwmon temp 1}\
${color0}\
${lua_parse sub_space 0 ${hwmon temp 1}}\
$color\
:\
${hwmon fan 1}\
${lua_parse sub_space 0 ${hwmon fan 1}}\
:::---
]]

View File

@ -30,7 +30,13 @@ conky.config = {
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = '2B1F42',
default_color = '332b2b',
color0 = '403536',
color1 = '4f4243',
color2 = '544647',
color3 = '635353',
color4 = '705d5e',
color5 = '8c7476',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
@ -59,55 +65,91 @@ conky.config = {
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_spacer = 'left',
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
${color 3a2a59}\
${color2}\
--\
${color3}\
${lua_parse sub_space 0 ${top pid 1}}\
${color2}\
:\
${color5}\
${lua_parse sub_space . ${top name 1}}\
${color4}\
.\
${color3}\
.\
${color2}\
.\
${lua_parse sub_space 0 ${top mem_res 1}}\
${color2}\
:\
${color 553D82}\
${lua_parse sub_space . ${top name 1}}.\
${lua_parse pad . 8 ${top mem_res 1}}\
${color 3a2a59}\
${top mem_res 1}:\
${lua_parse sub_space 0 ${top cpu 1}}\
${color2}\
:::
${color 32244D}\
${color1}\
--\
${color2}\
${lua_parse sub_space 0 ${top pid 2}}\
${color1}\
:\
${color4}\
${lua_parse sub_space . ${top name 2}}\
${color3}\
.\
${color2}\
.\
${color1}\
.\
${lua_parse sub_space 0 ${top mem_res 2}}\
${color1}\
:\
${color 433066}\
${lua_parse sub_space . ${top name 2}}.\
${lua_parse pad . 8 ${top mem_res 2}}\
${color 3a2a59}\
${top mem_res 2}:\
${lua_parse sub_space 0 ${top cpu 2}}\
${color1}\
:::
${color 2B1F42}\
${color0}\
--\
${color1}\
${lua_parse sub_space 0 ${top pid 3}}\
${color0}\
:\
${color3}\
${lua_parse sub_space . ${top name 3}}\
${color2}\
.\
${color1}\
.\
${color0}\
.\
${lua_parse sub_space 0 ${top mem_res 3}}\
${color0}\
:\
${color 32244D}\
${lua_parse sub_space . ${top name 3}}.\
${lua_parse pad . 8 ${top mem_res 3}}\
${color 3a2a59}\
${top mem_res 3}:\
${lua_parse sub_space 0 ${top cpu 3}}\
${color0}\
:::
${color 251a38}\
$color\
--\
${color0}\
${lua_parse sub_space 0 ${top pid 4}}\
$color\
:\
${color2}\
${lua_parse sub_space . ${top name 4}}\
${color1}\
.\
${color0}\
.\
$color\
.\
${lua_parse sub_space 0 ${top mem_res 4}}\
$color\
:\
${color 2B1F42}\
${lua_parse sub_space . ${top name 4}}.\
${lua_parse pad . 8 ${top mem_res 4}}\
${color 3a2a59}\
${top mem_res 4}:\
${lua_parse sub_space 0 ${top cpu 4}}\
$color\
:::
]]

View File

@ -31,8 +31,8 @@ conky.config = {
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = '6470a1',
default_outline_color = 'white',
default_color = '917c7c',
default_outline_color = '000000',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,
@ -41,7 +41,7 @@ conky.config = {
use_xft = true,
font = 'xos4 Terminus:size=22',
gap_x = 6,
gap_y = 147,
gap_y = 125,
net_avg_samples = 2,
double_buffer = true,
no_buffers = true,

View File

@ -1,3 +1,5 @@
-- not working - why???
-- same text input returns different length strings!
function conky_pad(char, length, text )
return string.rep(char, length - string.len(conky_parse(text)))
end