How is this color being accomplished in this gauge please?

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Logansfury
Level 8
Level 8
Posts: 2372
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

How is this color being accomplished in this gauge please?

Post by Logansfury »

Hello everyone,

I am trying to make a stand-alone gauge conky replicating the multicolored gauge in this conky:
Image
This conky's gauge has what is called a "warning" setting where a different color can be set for the extreme end of the gauge:

Code: Select all

  color6 = 'yellow1',       -- warning (hi cpu temp)
  color7 = 'green3',        -- stock ticker "up"
  color8 = 'red3',          -- stock ticker "down"
The templates that I have for building gauges are in this format:

Code: Select all

{
    name='cpu 0',               arg='',
    max_value=95,                 max_rpm=100,
    x=50,                          y=50,
    graph_radius=35,
    graph_thickness=8,
    graph_start_angle=225,
    graph_unit_angle=2.84,         graph_unit_thickness=2.7,
    graph_bg_colour=0xFFEEEE,      graph_bg_alpha=0.1,
    graph_fg_colour=0x00FF00,      graph_fg_alpha=1.0,
    hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=0,
    txt_weight=1,                  txt_size=23.0,
    txt_fg_colour=0x00d0FF,        txt_fg_alpha=1.0,
    graduation_radius=14,
    graduation_thickness=28,       graduation_mark_thickness=0,
    graduation_unit_angle=72,
    graduation_fg_colour=0xAAAAAA, graduation_fg_alpha=0.2,
    caption='CPU 0',
    caption_weight=1,              caption_size=14,
    caption_fg_colour=0xFFA300,    caption_fg_alpha=100,
},
I see here where I can set the entire background of the gauge green, but how do I get the last 1/4 of it yellow as in the danuesx Conky? Also, in my configuration of .lua, how do I make the red needle?

Thank you for reading,

Logan
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 8
Level 8
Posts: 2077
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How is this color being accomplished in this gauge please?

Post by Koentje »

These 2 things you ask, are not programmed into the lua code of my lua... i asume you're using mine.
Image
User avatar
Logansfury
Level 8
Level 8
Posts: 2372
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: How is this color being accomplished in this gauge please?

Post by Logansfury »

Koentje wrote: Thu Jun 13, 2024 1:17 pm These 2 things you ask, are not programmed into the lua code of my lua... i asume you're using mine.
I am indeed using your files, they are the only good templates I have at present for custom gauge creation.

Does anything in your files preclude adding code for dual color rings and needles?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”