From 56a6e890dd38bcf0d803cbdc3912bb25b31e663c Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Sun, 26 Sep 2021 12:37:28 -0400 Subject: [PATCH] Colorized sensor temperatures --- conky.conf | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/conky.conf b/conky.conf index c966804..cab03b9 100644 --- a/conky.conf +++ b/conky.conf @@ -7,7 +7,7 @@ -- Please see LICENSE for details --- Copyright (c) 2020-10-23 Trey Blancher +-- Copyright (c) 2021 Trey Blancher -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -32,18 +32,24 @@ conky.config = { no_buffers = true, update_interval = 1.0, uppercase = false, - use_spacer = false, + use_spacer = "none", pad_percents = 3, short_units = false, }; -conky.text = -[[\ +conky.text = [[\ +${lua_parse printf %-20s ${nodename_short}} \ RAM:${lua_parse printf %3.0f%% ${memperc}} \ Swap:${lua_parse printf %3.0f%% ${swapperc}} \ CPU:${lua_parse printf %3.0f%% ${cpu cpu0}} \ -/ ${fs_used /}/${fs_size /} \ +/ ${lua_parse printf %10s/%10s ${fs_used /} ${fs_size /}} \ ${loadavg} \ -${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} \ +${lua_parse printf %-20s ${top name 1}} \ +${lua_parse printf %8d ${top pid 1}} \ +${lua_parse printf %6.2f ${top cpu 1}} \ +${lua_parse printf %6.2f ${top mem 1}} \ Net: ${lua_parse printf %10s▲%10s▼ ${upspeed wlp4s0} ${downspeed wlp4s0}} \ +${exec ~/bin/core_temp.sh}${lua_parse printf %9s ${exec ~/bin/core_temp.sh -t}}^fg(\#ebdbb2) \ +${exec ~/bin/nvme_temp.sh}${lua_parse printf %9s ${exec ~/bin/nvme_temp.sh -t}}^fg(\#ebdbb2) \ +${exec ~/bin/virt_temp.sh}${lua_parse printf %9s ${exec ~/bin/virt_temp.sh -t}}^fg(\#ebdbb2) \ ]];