From 26d828b216da33ab02da8448f55c753e7e8ff4e6 Mon Sep 17 00:00:00 2001 From: donutAnees Date: Tue, 23 Jul 2024 20:54:18 +0530 Subject: [PATCH 1/4] Implemented Invert X Axis Flag Feature --- src/conky.cc | 57 +++++++++++++++++++++++++++++++------------------ src/specials.cc | 24 ++++++++++++++++----- src/specials.h | 2 ++ 3 files changed, 57 insertions(+), 26 deletions(-) diff --git a/src/conky.cc b/src/conky.cc index 71a19816b..509940c79 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -995,6 +995,33 @@ static inline void set_foreground_color(Colour c) { for (auto output : display_outputs()) output->set_foreground_color(c); } +static inline void draw_graph_bars(special_node *current, std::unique_ptr& tmpcolour, + conky::vec2i& text_offset, int i, int &j, int w, + int colour_idx, int cur_x, int by, int h) { + if (current->colours_set) { + if (current->tempgrad != 0) { + set_foreground_color(tmpcolour[static_cast( + static_cast(w - 2) - + current->graph[j] * (w - 2) / + std::max(static_cast(current->scale), + 1.0F))]); + } else { + set_foreground_color(tmpcolour[colour_idx++]); + } + } + /* this is mugfugly, but it works */ + if (display_output()) { + display_output()->draw_line( + text_offset.x() + cur_x + i + 1, text_offset.y() + by + h, + text_offset.x() + cur_x + i + 1, + text_offset.y() + + round_to_positive_int(static_cast(by) + h - + current->graph[j] * (h - 1) / + current->scale)); + } + ++j; +} + static void draw_string(const char *s) { int i; int i2; @@ -1293,29 +1320,17 @@ int draw_each_line_inner(char *s, int special_index, int last_special_applied) { delete factory; } colour_idx = 0; - for (i = w - 2; i > -1; i--) { - if (current->colours_set) { - if (current->tempgrad != 0) { - set_foreground_color(tmpcolour[static_cast( - static_cast(w - 2) - - current->graph[j] * (w - 2) / - std::max(static_cast(current->scale), - 1.0F))]); - } else { - set_foreground_color(tmpcolour[colour_idx++]); - } + if(current->invertx){ + for (i = 0; i <= w- 2; i++) { + draw_graph_bars(current, tmpcolour, text_offset, + i, j, w, colour_idx, cur_x, by, h); } - /* this is mugfugly, but it works */ - if (display_output()) { - display_output()->draw_line( - text_offset.x() + cur_x + i + 1, text_offset.y() + by + h, - text_offset.x() + cur_x + i + 1, - text_offset.y() + - round_to_positive_int(static_cast(by) + h - - current->graph[j] * (h - 1) / - current->scale)); + } + else{ + for (i = w - 2; i > -1; i--) { + draw_graph_bars(current, tmpcolour, text_offset, + i, j, w, colour_idx, cur_x, by, h); } - ++j; } } if (h > cur_y_add && h > font_h) { cur_y_add = h; } diff --git a/src/specials.cc b/src/specials.cc index 1b73f09ad..84bb12425 100644 --- a/src/specials.cc +++ b/src/specials.cc @@ -83,6 +83,9 @@ conky::simple_config_setting console_graph_ticks( #define SF_SCALED (1 << 0) #define SF_SHOWLOG (1 << 1) +/* special flag for inverting axis */ +#define SF_INVERTX (1 << 0) + /* * Special data typedefs */ @@ -108,6 +111,7 @@ struct graph { double scale; char tempgrad; char speedgraph; /* If the current graph is a speed graph */ + char invertflag; /* If the axis needs to be inverted */ }; struct stippled_hr { @@ -245,6 +249,7 @@ std::pair scan_command(const char *s) { * * -l will set the showlog flag, enabling logarithmic graph scales * -t will set the tempgrad member to true, enabling temperature gradient colors + * -x will set the invertx flag to true, inverting the x axis * * @param[out] obj struct in which to save width, height and other options * @param[in] args argument string to parse @@ -269,11 +274,10 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch g->last_colour = Colour(); g->scale = defscale; g->tempgrad = FALSE; - + g->invertflag = FALSE; if (speedGraph) { g->speedgraph = TRUE; } - if (argstr == nullptr) return false; /* set tempgrad to true if '-t' specified. @@ -288,6 +292,12 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch strncmp(argstr, LOGGRAPH, strlen(LOGGRAPH)) == 0) { g->flags |= SF_SHOWLOG; } + /* set invertx to true if '-x' specified. + * It doesn't matter where the argument is exactly. */ + if ((strstr(argstr, " " INVERTX) != nullptr) || + strncmp(argstr, INVERTX, strlen(INVERTX)) == 0) { + g->invertflag |= SF_INVERTX; + } /* all the following functions try to interpret the beginning of a * a string with different format strings. If successful, they return from @@ -313,7 +323,8 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch if (sscanf(argstr, "%d,%d %s %s", &g->height, &g->width, first_colour_name, last_colour_name) == 4 && strcmp(last_colour_name, TEMPGRAD) != 0 && - strcmp(last_colour_name, LOGGRAPH) != 0) { + strcmp(last_colour_name, LOGGRAPH) != 0 && + strcmp(last_colour_name, INVERTX) != 0) { apply_graph_colours(g, first_colour_name, last_colour_name); return true; } @@ -355,7 +366,8 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch * therfore we ensure last_colour_name is not TEMPGRAD or LOGGRAPH */ if (sscanf(argstr, "%s %s", first_colour_name, last_colour_name) == 2 && strcmp(last_colour_name, TEMPGRAD) != 0 && - strcmp(last_colour_name, LOGGRAPH) != 0) { + strcmp(last_colour_name, LOGGRAPH) != 0 && + strcmp(last_colour_name, INVERTX) != 0) { apply_graph_colours(g, first_colour_name, last_colour_name); return true; } @@ -632,7 +644,9 @@ void new_graph(struct text_object *obj, char *buf, int buf_max_size, s->scale = log10(s->scale + 1); } #endif - + if ((g->invertflag & SF_INVERTX) != 0){ + s->invertx = 1; + } if (g->speedgraph) { s->speedgraph = TRUE; } diff --git a/src/specials.h b/src/specials.h index 2bdc86036..03015f672 100644 --- a/src/specials.h +++ b/src/specials.h @@ -39,6 +39,7 @@ // don't use spaces in LOGGRAPH or NORMGRAPH if you change them #define LOGGRAPH "-l" #define TEMPGRAD "-t" +#define INVERTX "-x" enum class text_node_t : uint32_t { NONSPECIAL = 0, @@ -81,6 +82,7 @@ struct special_node { short font_added; char tempgrad; char speedgraph; + char invertx; struct special_node *next; }; From a47285fd808afd994cf7495bcaeb226c7a593bd2 Mon Sep 17 00:00:00 2001 From: donutAnees Date: Tue, 23 Jul 2024 21:02:32 +0530 Subject: [PATCH 2/4] Updated documentation --- doc/variables.yaml | 43 ++++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/doc/variables.yaml b/doc/variables.yaml index 4bbba72eb..c4c1e55b2 100644 --- a/doc/variables.yaml +++ b/doc/variables.yaml @@ -97,6 +97,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: apcupsd_model desc: Prints the model of the UPS. - name: apcupsd_name @@ -328,7 +329,8 @@ values: See $cpu for more info on SMP. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending - on the amplitude of a particular graph value (try it and see). + on the amplitude of a particular graph value (try it and see). The flag + '-x' inverts the x axis of the graph. args: - (cpuN) - (height),(width) @@ -337,6 +339,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: curl desc: |- Download data from URI using Curl at the specified interval. @@ -389,7 +392,7 @@ values: scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it - and see). + and see). The flag '-x' inverts the x axis of the graph. args: - (device) - (height),(width) @@ -398,6 +401,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: diskiograph_read desc: |- Disk IO graph for reads, colours defined in hex, minus the @@ -405,7 +409,8 @@ values: in diskio. Uses a logarithmic scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a - particular graph value (try it and see). + particular graph value (try it and see). The flag '-x' inverts the x + axis of the graph. args: - (device) - (height),(width) @@ -414,6 +419,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: diskiograph_write desc: |- Disk IO graph for writes, colours defined in hex, minus the @@ -421,7 +427,8 @@ values: in diskio. Uses a logarithmic scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a - particular graph value (try it and see). + particular graph value (try it and see). The flag '-x' inverts the x + axis of the graph. args: - (device) - (height),(width) @@ -430,6 +437,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: distribution desc: |- The name of the distribution. It could be that some of the @@ -456,7 +464,7 @@ values: per second). Uses a logarithmic scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular - graph value (try it and see). + graph value (try it and see). The flag '-x' inverts the x axis of the graph. args: - (netdev) - (height),(width) @@ -465,6 +473,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: draft_mails desc: |- Number of mails marked as draft in the specified mailbox or @@ -535,7 +544,8 @@ values: graph. The scale parameter defines the maximum value of the graph. Use the -l switch to enable a logarithmic scale, which helps to see small values. The default size for graphs can be controlled via the default_graph_height - and default_graph_width config settings. + and default_graph_width config settings. The flag '-x' inverts the x axis + of the graph. If you need to execute a command with spaces, you have a couple options: @@ -562,6 +572,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: execi desc: |- Same as exec, but with a specific interval in seconds. The @@ -593,6 +604,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: execp desc: |- Executes a shell command and displays the output in conky. @@ -1111,7 +1123,8 @@ values: in hex, minus the #. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the - amplitude of a particular graph value (try it and see). + amplitude of a particular graph value (try it and see). The flag + '-x' inverts the x axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1119,6 +1132,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: lowercase desc: Converts all letters into lowercase. args: @@ -1173,6 +1187,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: lua_parse desc: |- Executes a Lua function with given parameters as per $lua, @@ -1232,7 +1247,8 @@ values: Memory usage graph. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending - on the amplitude of a particular graph value (try it and see). + on the amplitude of a particular graph value (try it and see). The flag + '-x' inverts the x axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1240,6 +1256,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: meminactive desc: Amount of inactive memory. FreeBSD only. - name: memlaundry @@ -1266,7 +1283,8 @@ values: and cache. Uses a logarithmic scale (to see small numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the - amplitude of a particular graph value (try it and see). + amplitude of a particular graph value (try it and see). The flag + '-x' inverts the x axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1274,6 +1292,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: mixer desc: |- Prints the mixer value as reported by the OS. On Linux, this @@ -1529,7 +1548,7 @@ values: used as 0,1,2,3,.. For possible arguments see nvidia and nvidiabar. To learn more about the - -t -l and gradient color options, see execgraph. + -t -l -x and gradient color options, see execgraph. args: - argument - (height),(width) @@ -1538,6 +1557,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - GPU_ID - name: offset desc: Move text over by N pixels. See also $voffset. @@ -2328,7 +2348,7 @@ values: numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value - (try it and see). + (try it and see). The flag '-x' inverts the x axis of the graph. args: - (netdev) - (height),(width) @@ -2337,6 +2357,7 @@ values: - (scale) - (-t) - (-l) + - (-x) - name: uptime desc: Uptime. - name: uptime_short From b021007a5b20f542eb3b6580a4b401ff3b7f6d69 Mon Sep 17 00:00:00 2001 From: donutAnees Date: Wed, 24 Jul 2024 00:08:02 +0530 Subject: [PATCH 3/4] Implemented Invert Y Axis Flag Feature --- src/conky.cc | 16 +++++++++------- src/specials.cc | 19 +++++++++++++------ src/specials.h | 2 ++ 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/conky.cc b/src/conky.cc index 509940c79..a4df7318a 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -1009,15 +1009,17 @@ static inline void draw_graph_bars(special_node *current, std::unique_ptrinverty ? by : by + h; + int offsety2 = current->inverty ? by + current->graph[j] * (h - 1) / current->scale + : round_to_positive_int(static_cast(by) + h - + current->graph[j] * (h - 1) / + current->scale); /* this is mugfugly, but it works */ if (display_output()) { display_output()->draw_line( - text_offset.x() + cur_x + i + 1, text_offset.y() + by + h, - text_offset.x() + cur_x + i + 1, - text_offset.y() + - round_to_positive_int(static_cast(by) + h - - current->graph[j] * (h - 1) / - current->scale)); + text_offset.x() + cur_x + i + 1, text_offset.y() + offsety1, + text_offset.x() + cur_x + i + 1, text_offset.y() + offsety2); } ++j; } @@ -1321,7 +1323,7 @@ int draw_each_line_inner(char *s, int special_index, int last_special_applied) { } colour_idx = 0; if(current->invertx){ - for (i = 0; i <= w- 2; i++) { + for (i = 0; i <= w - 2; i++) { draw_graph_bars(current, tmpcolour, text_offset, i, j, w, colour_idx, cur_x, by, h); } diff --git a/src/specials.cc b/src/specials.cc index 84bb12425..0a80cb379 100644 --- a/src/specials.cc +++ b/src/specials.cc @@ -85,6 +85,7 @@ conky::simple_config_setting console_graph_ticks( /* special flag for inverting axis */ #define SF_INVERTX (1 << 0) +#define SF_INVERTY (1 << 1) /* * Special data typedefs @@ -250,6 +251,7 @@ std::pair scan_command(const char *s) { * -l will set the showlog flag, enabling logarithmic graph scales * -t will set the tempgrad member to true, enabling temperature gradient colors * -x will set the invertx flag to true, inverting the x axis + * -y will set the invertx flag to true, inverting the y axis * * @param[out] obj struct in which to save width, height and other options * @param[in] args argument string to parse @@ -298,6 +300,12 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch strncmp(argstr, INVERTX, strlen(INVERTX)) == 0) { g->invertflag |= SF_INVERTX; } + /* set inverty to true if '-y' specified. + * It doesn't matter where the argument is exactly. */ + if ((strstr(argstr, " " INVERTY) != nullptr) || + strncmp(argstr, INVERTY, strlen(INVERTY)) == 0) { + g->invertflag |= SF_INVERTY; + } /* all the following functions try to interpret the beginning of a * a string with different format strings. If successful, they return from @@ -322,9 +330,7 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch * therfore we ensure last_colour_name is not TEMPGRAD or LOGGRAPH */ if (sscanf(argstr, "%d,%d %s %s", &g->height, &g->width, first_colour_name, last_colour_name) == 4 && - strcmp(last_colour_name, TEMPGRAD) != 0 && - strcmp(last_colour_name, LOGGRAPH) != 0 && - strcmp(last_colour_name, INVERTX) != 0) { + strchr(last_colour_name,'-') == NULL) { apply_graph_colours(g, first_colour_name, last_colour_name); return true; } @@ -365,9 +371,7 @@ bool scan_graph(struct text_object *obj, const char *argstr, double defscale, ch * This could match as [scale] [-l | -t], * therfore we ensure last_colour_name is not TEMPGRAD or LOGGRAPH */ if (sscanf(argstr, "%s %s", first_colour_name, last_colour_name) == 2 && - strcmp(last_colour_name, TEMPGRAD) != 0 && - strcmp(last_colour_name, LOGGRAPH) != 0 && - strcmp(last_colour_name, INVERTX) != 0) { + strchr(last_colour_name,'-') == NULL) { apply_graph_colours(g, first_colour_name, last_colour_name); return true; } @@ -647,6 +651,9 @@ void new_graph(struct text_object *obj, char *buf, int buf_max_size, if ((g->invertflag & SF_INVERTX) != 0){ s->invertx = 1; } + if ((g->invertflag & SF_INVERTY) != 0){ + s->inverty = 1; + } if (g->speedgraph) { s->speedgraph = TRUE; } diff --git a/src/specials.h b/src/specials.h index 03015f672..a54c3f2c3 100644 --- a/src/specials.h +++ b/src/specials.h @@ -40,6 +40,7 @@ #define LOGGRAPH "-l" #define TEMPGRAD "-t" #define INVERTX "-x" +#define INVERTY "-y" enum class text_node_t : uint32_t { NONSPECIAL = 0, @@ -83,6 +84,7 @@ struct special_node { char tempgrad; char speedgraph; char invertx; + char inverty; struct special_node *next; }; From 127f1a7ccd17b183b008042e38e11bf509540e7c Mon Sep 17 00:00:00 2001 From: donutAnees Date: Wed, 24 Jul 2024 00:16:01 +0530 Subject: [PATCH 4/4] Updated documentation --- doc/variables.yaml | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/doc/variables.yaml b/doc/variables.yaml index c4c1e55b2..12521c4f2 100644 --- a/doc/variables.yaml +++ b/doc/variables.yaml @@ -98,6 +98,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: apcupsd_model desc: Prints the model of the UPS. - name: apcupsd_name @@ -330,7 +331,7 @@ values: numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag - '-x' inverts the x axis of the graph. + '-x' inverts the x axis and '-y' inverts the y axis of the graph. args: - (cpuN) - (height),(width) @@ -340,6 +341,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: curl desc: |- Download data from URI using Curl at the specified interval. @@ -392,7 +394,8 @@ values: scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it - and see). The flag '-x' inverts the x axis of the graph. + and see). The flag '-x' inverts the x axis and '-y' inverts the y axis + of the graph. args: - (device) - (height),(width) @@ -402,6 +405,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: diskiograph_read desc: |- Disk IO graph for reads, colours defined in hex, minus the @@ -410,7 +414,7 @@ values: use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag '-x' inverts the x - axis of the graph. + axis and '-y' inverts the y axis of the graph. args: - (device) - (height),(width) @@ -420,6 +424,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: diskiograph_write desc: |- Disk IO graph for writes, colours defined in hex, minus the @@ -428,7 +433,7 @@ values: use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag '-x' inverts the x - axis of the graph. + axis and '-y' inverts the y axis of the graph. args: - (device) - (height),(width) @@ -438,6 +443,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: distribution desc: |- The name of the distribution. It could be that some of the @@ -464,7 +470,8 @@ values: per second). Uses a logarithmic scale (to see small numbers) when you use -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular - graph value (try it and see). The flag '-x' inverts the x axis of the graph. + graph value (try it and see). The flag '-x' inverts the x axis and '-y' + inverts the y axis of the graph. args: - (netdev) - (height),(width) @@ -474,6 +481,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: draft_mails desc: |- Number of mails marked as draft in the specified mailbox or @@ -545,7 +553,7 @@ values: -l switch to enable a logarithmic scale, which helps to see small values. The default size for graphs can be controlled via the default_graph_height and default_graph_width config settings. The flag '-x' inverts the x axis - of the graph. + and '-y' inverts the y axis of the graph. If you need to execute a command with spaces, you have a couple options: @@ -573,6 +581,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: execi desc: |- Same as exec, but with a specific interval in seconds. The @@ -605,6 +614,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: execp desc: |- Executes a shell command and displays the output in conky. @@ -1124,7 +1134,7 @@ values: when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag - '-x' inverts the x axis of the graph. + '-x' inverts the x axis and '-y' inverts the y axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1133,6 +1143,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: lowercase desc: Converts all letters into lowercase. args: @@ -1178,7 +1189,8 @@ values: values change depending on the amplitude of a particular graph value (try it and see). Conky puts 'conky_' in front of function_name to prevent accidental calls to the wrong function unless you put you - place 'conky_' in front of it yourself. + place 'conky_' in front of it yourself. The flag '-x' inverts the + x axis and '-y' inverts the y axis of the graph. args: - function_name - (height),(width) @@ -1188,6 +1200,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: lua_parse desc: |- Executes a Lua function with given parameters as per $lua, @@ -1248,7 +1261,7 @@ values: numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag - '-x' inverts the x axis of the graph. + '-x' inverts the x axis and '-y' inverts the y axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1257,6 +1270,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: meminactive desc: Amount of inactive memory. FreeBSD only. - name: memlaundry @@ -1284,7 +1298,7 @@ values: use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value (try it and see). The flag - '-x' inverts the x axis of the graph. + '-x' inverts the x axis and '-y' inverts the y axis of the graph. args: - (height),(width) - (gradient colour 1) @@ -1293,6 +1307,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: mixer desc: |- Prints the mixer value as reported by the OS. On Linux, this @@ -1548,7 +1563,7 @@ values: used as 0,1,2,3,.. For possible arguments see nvidia and nvidiabar. To learn more about the - -t -l -x and gradient color options, see execgraph. + -t -l -x -y and gradient color options, see execgraph. args: - argument - (height),(width) @@ -1558,6 +1573,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - GPU_ID - name: offset desc: Move text over by N pixels. See also $voffset. @@ -2348,7 +2364,8 @@ values: numbers) when you use the -l switch. Takes the switch '-t' to use a temperature gradient, which makes the gradient values change depending on the amplitude of a particular graph value - (try it and see). The flag '-x' inverts the x axis of the graph. + (try it and see). The flag '-x' inverts the x axis and '-y' + inverts the y axis of the graph. args: - (netdev) - (height),(width) @@ -2358,6 +2375,7 @@ values: - (-t) - (-l) - (-x) + - (-y) - name: uptime desc: Uptime. - name: uptime_short