I don't think you can change the color variables, but you can just write/draw from within lua and use any colors you like. (https://github.com/brndnmtthws/conky/wiki/Using-Lua-scripts-(Part-01)%3A-How-does-a-lua-script-work)
> change the conky configuration with sed
That sounds like a truelly horrible hack.
Not at my system at the moment, but based on the code posted in your OP I'd guess the reason for the not working is a syntax incompatibility. Your paste looks like old systax, but they're now using lua syntax as of a recent major version change. Relevant linkage: https://github.com/brndnmtthws/conky/wiki/Configuration-Settings (sec. 1.10).
I was able to do this using a separate bash script and AWK: https://hastebin.com/kugugivobe.bash
Then called the whole function using ${exec sh ./script.sh gpu-status}
However in your case I suppose from within a .conkyrc you could try this:
${execbar nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t|awk '{print 100*$1/4096}'|cut -d. -f1}
Note that I have appended a truncated version of your command with: |awk '{print 100*$1/4096}'|cut -d. -f1
Which will take the UsedDedicatedGPUMemory value ($1) and multiply it by 100, then divide by 4096(total video memory, this should be adjusted to match your total video memory for that GPU), then cut truncates out the decimal. I hope this has been informative.
use new convert.lua file to convert, they fixed that nil value error.
https://github.com/brndnmtthws/conky/blob/master/extras/convert.lua
For the image:
According to the conky variables manual leaving away the <> would be a good start: taken from github conky variables: >Example: ${image /home/brenden/cheeseburger.jpg -p 20,20 -s 200x200} will render 'cheeseburger.jpg' at (20,20) scaled to 200x200 pixels. Conky does not make any attempt to adjust the position (or any other formatting) of images, they are just rendered as per the arguments passed.
For a Ryzen CPU.
Finding hwmon (because ../hwmon(n) can change after a upgrad/update)
#$ find /sys/devices -type f -name "temp?_label" -exec grep -H . "{}" ";" 2>/dev/null /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp4_label:AUXTIN1 /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp8_label:PCH_CHIP_CPU_MAX_TEMP /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp1_label:SYSTIN /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp5_label:AUXTIN2 /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp9_label:PCH_CHIP_TEMP /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp2_label:CPUTIN /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp6_label:AUXTIN3 /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp3_label:AUXTIN0 /sys/devices/platform/nct6775.2592/hwmon/hwmon2/temp7_label:SMBUSMASTER 0 /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_label:Tctl /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp2_label:Tdie /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon0/temp1_label:Composite /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon0/temp2_label:Sensor 1 /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon0/temp3_label:Sensor 2
${color1}Tdie:{alignr}${color green}${hwmon 1 temp 2}°C ${color1}Tdie:{alignr}${color green}${execi 2 sensors -f| awk ' /^Tdie/ { printf "%3d°F" ,$2 ;exit}'}
https://www.gnu.org/software/gawk/manual/html_node/Format-Modifiers.html
I'm not sure why it's not returning anything, but maybe try:
1) This HTC weather conky setup
2) The conky weather python script
I've used both and they work. If you use number 1, be sure to update your path appropriately in the script
hello reddit,
my conky configuration file executes the following command and prints the result:
${color3}NordVPN ${alignr}${execp nordvpn status }
I think this is due to the command which is executed. if I execute the command manually, I see that kind of a loading indicator is executed before the result is printed on the shell.
Does anyone have any idea how to easily remove those weird characters in the third last line of the screenshot? Either exec
nor execp
help (tbh: I still do not fully understand the difference).
And my second question is: If I execute nordvpn status
, does anyone have any experience how resource consuming this statement is? Should I better use an interval exec?
Thank you very much for helpful answers.
Best regards