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

View File

@ -30,7 +30,13 @@ conky.config = {
background = false, background = false,
border_width = 1, border_width = 1,
cpu_avg_samples = 2, 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_outline_color = 'white',
default_shade_color = 'white', default_shade_color = 'white',
draw_borders = false, draw_borders = false,
@ -59,55 +65,91 @@ conky.config = {
stippled_borders = 0, stippled_borders = 0,
update_interval = 1.0, update_interval = 1.0,
uppercase = false, uppercase = false,
use_spacer = 'none', use_spacer = 'left',
show_graph_scale = false, show_graph_scale = false,
show_graph_range = false show_graph_range = false
} }
conky.text = [[ conky.text = [[
${color 3a2a59}\ ${color2}\
--\ --\
${color3}\
${lua_parse sub_space 0 ${top pid 1}}\ ${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}}\ ${lua_parse sub_space 0 ${top cpu 1}}\
${color2}\
::: :::
${color 32244D}\ ${color1}\
--\ --\
${color2}\
${lua_parse sub_space 0 ${top pid 2}}\ ${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}}\ ${lua_parse sub_space 0 ${top cpu 2}}\
${color1}\
::: :::
${color 2B1F42}\ ${color0}\
--\ --\
${color1}\
${lua_parse sub_space 0 ${top pid 3}}\ ${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}}\ ${lua_parse sub_space 0 ${top cpu 3}}\
${color0}\
::: :::
${color 251a38}\ $color\
--\ --\
${color0}\
${lua_parse sub_space 0 ${top pid 4}}\ ${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}}\ ${lua_parse sub_space 0 ${top cpu 4}}\
$color\
::: :::
]] ]]

View File

@ -31,8 +31,8 @@ conky.config = {
background = false, background = false,
border_width = 1, border_width = 1,
cpu_avg_samples = 2, cpu_avg_samples = 2,
default_color = '6470a1', default_color = '917c7c',
default_outline_color = 'white', default_outline_color = '000000',
default_shade_color = 'white', default_shade_color = 'white',
draw_borders = false, draw_borders = false,
draw_graph_borders = true, draw_graph_borders = true,
@ -41,7 +41,7 @@ conky.config = {
use_xft = true, use_xft = true,
font = 'xos4 Terminus:size=22', font = 'xos4 Terminus:size=22',
gap_x = 6, gap_x = 6,
gap_y = 147, gap_y = 125,
net_avg_samples = 2, net_avg_samples = 2,
double_buffer = true, double_buffer = true,
no_buffers = 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 ) function conky_pad(char, length, text )
return string.rep(char, length - string.len(conky_parse(text))) return string.rep(char, length - string.len(conky_parse(text)))
end end