From 7b283093d77b256368d4baa92e0dcf1647eee364 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 10 Aug 2020 12:28:14 +0200 Subject: i3/conky: Migrate to new config syntax Signed-off-by: Florian Pritz --- .i3/conkyrc-perl | 49 +++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/.i3/conkyrc-perl b/.i3/conkyrc-perl index 56a560f..e465e11 100644 --- a/.i3/conkyrc-perl +++ b/.i3/conkyrc-perl @@ -1,25 +1,29 @@ -out_to_x no -own_window no -out_to_console yes -background no -max_text_width 0 -update_interval 0.5 -total_run_times 0 -short_units yes -if_up_strictness link -use_spacer none -override_utf8_locale no -cpu_avg_samples 6 -net_avg_samples 6 - -mpd_host localhost -mpd_port 6600 - -TEXT - -${if_match "${mpd_status}" == "Playing"} -COLOR: \#d466138 -FULLTEXT: ${mpd_artist} - ${mpd_title} (${mpd_vol}%) +conky.config = { +out_to_x = false, +own_window = false, +out_to_console = true, +background = false, +max_text_width = 0, +update_interval = 0.5, +total_run_times = 0, +short_units = true, +if_up_strictness = 'link', +use_spacer = 'none', +override_utf8_locale = false, +cpu_avg_samples = 6, +net_avg_samples = 6, +mpd_host = 'localhost', +mpd_port = 6600, +} + +conky.text = [[ + +COLOR: \#FF0000 +FULLTEXT: ${if_up tun_rz01} RZ01${endif}${if_up tun_inso} INSO${endif}${if_up tun_gemkon} GEMKON${endif} + +${if_up ens8u1u2} +COLOR: \#00FF00 +FULLTEXT: ens8u1u2 ${upspeed ens8u1u2}↑ ${downspeed ens8u1u2}↓ ${addr ens8u1u2} ${endif} ${if_up intern0} @@ -75,3 +79,4 @@ SHORTTEXT: ${time %F %H:%M:%S} FULLTEXT: ${time %a %F %H:%M:%S END_BLOCK +]] -- cgit v1.2.3-24-g4f1b