Closed ZjYwMj closed 6 months ago
These are all good suggestions, would you like to take a stab at writing a PR for these changes?
I am not sure I followed, but here is attempt # 1: (and why does \#1 not being escaped here?)
--- a/man.md.j2 2022-12-04 18:42:01.125761827 +0000
+++ b/man.md.j2 2022-12-04 18:56:19.598437828 +0000
@@ -91,7 +91,11 @@
An easy way to force Conky to reload your *\~/.config/conky/conky.conf*:
\"killall -SIGUSR1 conky\". Saves you the trouble of having to kill and
-then restart.
+then restart. Alternatively, depending how the conky executable was
+built, but as of 2022 this is the usual way, just replace the prevoius
+configuration file with a newer version. Write a newer version in place
+of the old one. Conky will sense that, seemingly exit, and after a short
+while will reappear. With the newer version of the configuration.
# OPTIONS
Does that close to what you had in mind? Will you accept similar patches for the other 3 items? I was close to add that a user better copy its old configuration, to get a backup. Should he, or conky, will not be satisfied.
That looks alright to me. The best thing is to open a PR so I can provide feedback on the changes there.
In order to test my understanding of creating a pull request, I submitted a pull request with only a partial fix to this issue. It can be seen in the pull request I have created 2 commits, where a single commit can suffice. However, this is probably will be seen only at my external repository. And not in conky main repository. In addition, I have hard time submitting a request to fully close this issue. Such a request seem to include the patch for pr #1343 for the 2nd time. Which is why I postpone submitting a pull request that will fully close this issue until there is a decision about pr #1343.
I think pr #1343 asks to pull one patch to doc/man.md.j2. And a 2nd patch to doc/variables.yaml. I am not getting along well with github interface. I tried to create a pull request only to the doc/man.md.j2 patch suggested in this issue. I made couple of attempts. With a feature branch in my forked repository, and with a commit to my main forked repository. Eventually, I saw my pull request here. That is, in the upstream repository pull request. Thinking I know how to create pull requests to my satisfaction, I changed the main branch of my forked repository to include one of the patches suggested here to doc/variables.yaml. Then I tried to create a 2nd pull request for that commit only. Hoping to have two pull requests, each one to a different file. Realizing my 2nd pull request also repeat the pull request for doc/man.md.j2, I though I withdraw it by not approving it. I expected the 2nd pull request not to be sent. Yet I see that there is one pull request, with two patches. Each patch for a different file. That is not what I thought I am approving. I probably had to create two separate feature branches in my repository. One branch will have only doc/man.md.j2` modified. And the 2nd branch will have only doc/variables.yaml modified. But I seemed not to be able to see pull request for a feature branch at the upstream repository pull requests. Which is why I continue modifying the main branch of my repository. I hope I manged to make myself clear.
I am not getting along well with github interface.
Or simply copy/paste the new file here. :D
The suggested new file for man.md.j2 should be obtained by the patch already reviewed at pull request #1343. It, #1343, has only a partial patch for doc/variables.yaml. A full version of the suggested doc/variables.yaml is:
# See README.md for details on doc processing.
#
# The `desc` field can be formatted with markdown, but please do not include
# headings (lines beginning with `#`) in the `desc` field.
#
# The supported fields are:
#
# * `name`: the name of the thing
# * `desc`: a markdown-formatted description of the thing
# * `args`: optional list of arguments
# * `default`: an optional default value, if applicable
---
desc: |-
To configure what Conky displays, you must supply some variables in the
`conky.text` section of your configuration. In this secton you'll find a
listing of the available variables. Some of them may require build options to
be enabled at compile time for them to work.
Colours are parsed using `XParseColor()`, there might be a list of them:
`/usr/share/X11/rgb.txt`. Colour can be also in `#rrggbb` format (hex).
Some objects may create threads, and sometimes these threads will not be
destroyed until Conky terminates. There is no way to destroy or clean up
threads while Conky is running. For example, if you use an MPD variable,
the MPD thread will keep running until Conky dies. Some threaded objects
will use one of the parameters as a `key`, so that you only have 1
relevant thread running (for example, the $curl, and $rss
objects launch one thread per URI).
Optional arguments are generally denoted with paretheses (i.e., `(optional)`).
values:
- name: acpiacadapter
desc: |-
ACPI AC adapter state. On linux, the adapter option
specifies the subfolder of `/sys/class/power_supply` containing the state
information (tries `AC` and `ADP1` if there is no argument given).
Non-linux systems ignore it.
args:
- (adapter)
- name: acpifan
desc: ACPI fan state.
- name: acpitemp
desc: ACPI temperature in C.
- name: addr
desc: |-
IP address for an interface, or "No Address" if no address
is assigned.
args:
- (interface)
- name: addrs
desc: |-
IP addresses for an interface (if one - works like addr).
Linux only.
args:
- (interface)
- name: adt746xcpu
desc: CPU temperature from therm_adt746x.
- name: adt746xfan
desc: Fan speed from therm_adt746x.
- name: alignc
default: 0
desc: |-
Align text to centre, with a shift of N (num) pixels. A
negative N (num) shifts to the right.
args:
- (num)
- name: alignr
default: 0
desc: |-
Right-justify text, with a shift of N (num) pixels. A
negative N (num) is accepted, and actually makes no
difference.
args:
- (num)
- name: apcupsd
desc: |-
Sets up the connection to apcupsd daemon. Prints nothing.
default: localhost:3551
args:
- host
- port
- name: apcupsd_cable
desc: Prints the UPS connection type.
- name: apcupsd_charge
desc: Current battery capacity in percent.
- name: apcupsd_lastxfer
desc: Reason for last transfer from line to battery.
- name: apcupsd_linev
desc: Nominal input voltage.
- name: apcupsd_load
desc: Current load in percent.
- name: apcupsd_loadbar
desc: Bar showing current load.
- name: apcupsd_loadgauge
desc: Gauge that shows current load.
args:
- (height),(width)
- name: apcupsd_loadgraph
desc: History graph of current load.
args:
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: apcupsd_model
desc: Prints the model of the UPS.
- name: apcupsd_name
desc: Prints the UPS user-defined name.
- name: apcupsd_status
desc: Prints current status (on-line, on-battery).
- name: apcupsd_temp
desc: Current internal temperature.
- name: apcupsd_timeleft
desc: Time left to run on battery.
- name: apcupsd_upsmode
desc: Prints the UPS mode (e.g. standalone).
- name: apm_adapter
desc: Display APM AC adapter status. FreeBSD, OpenBSD only.
- name: apm_battery_life
desc: Display APM battery life in percent. FreeBSD, OpenBSD only.
- name: apm_battery_time
desc: |-
Display remaining APM battery life in hh:mm:ss or "unknown"
if AC adapterstatus is on-line or charging. FreeBSD, OpenBSD only.
- name: audacious_bar
desc: Progress bar.
args:
- (height),(width)
- name: audacious_bitrate
desc: Bitrate of current tune.
- name: audacious_channels
desc: Number of audio channels of current tune.
- name: audacious_filename
desc: Full path and filename of current tune.
- name: audacious_frequency
desc: Sampling frequency of current tune.
- name: audacious_length
desc: Total length of current tune as MM:SS.
- name: audacious_length_seconds
desc: Total length of current tune in seconds.
- name: audacious_main_volume
desc: The current volume fetched from Audacious.
- name: audacious_playlist_length
desc: Number of tunes in playlist.
- name: audacious_playlist_position
desc: Playlist position of current tune.
- name: audacious_position
desc: Position of current tune (MM:SS).
- name: audacious_position_seconds
desc: Position of current tune in seconds.
- name: audacious_status
desc: Player status (Playing/Paused/Stopped/Not running).
- name: audacious_title
desc: |-
Title of current tune with optional maximum length
specifier.
args:
- (max length)
- name: battery
desc: |-
Battery status and remaining percentage capacity of ACPI or
APM battery. ACPI battery number can be given as argument.
default: BAT0
args:
- (num)
- name: battery_bar
desc: |-
Battery percentage remaining of ACPI battery in a bar. ACPI battery number
can be given as argument (use `all` to get the mean percentage remaining for
all batteries).
default: BAT0
args:
- (height),(width)
- (num)
- name: battery_percent
desc: |-
Battery percentage remaining for ACPI battery. ACPI battery
number can be given as argument (use `all` to get the
mean percentage remaining for all batteries).
default: BAT0
args:
- (num)
- name: battery_power_draw
desc: |-
Battery power draw in watts
default: BAT0
args:
- (num)
- name: battery_short
desc: |-
Battery status and remaining percentage capacity of ACPI or APM battery.
ACPI battery number can be given as argument. This mode display a short
status, which means that C is displayed instead of charging, D for
discharging, F for full, N for not present, E for empty and U for unknown.
default: BAT0
args:
- (num)
- name: battery_status
desc: |-
Battery status for ACPI battery. ACPI battery number can be
given as arguments.
default: BAT0
args:
- (num)
- name: battery_time
desc: |-
Battery charge/discharge time remaining of ACPI battery.
ACPI battery number can be given as argument.
default: BAT0
args:
- (num)
- name: blink
desc: Let 'text_and_other_conky_vars' blink on and off.
args:
- text_and_other_conky_vars
- name: buffers
desc: Amount of memory buffered.
- name: cached
desc: Amount of memory cached.
- name: cat
desc: |-
Reads a file and displays the contents in conky. This is
useful if you have an independent process generating output that you
want to include in conky.
args:
- file
- name: catp
desc: |-
Reads a file and displays the contents in conky. This is
useful if you have an independent process generating output that you
want to include in conky. This differs from $cat in that it parses the
contents of the file, so you can insert things like
`${color red}hi!${color}` in your file and have it correctly parsed by
Conky.
args:
- file
- name: cmdline_to_pid
desc: PID of the first process that has string in its commandline.
args:
- string
- name: cmus_aaa
desc: Print aaa status of cmus (all/artist/album).
- name: cmus_album
desc: Prints the album of the current cmus song.
- name: cmus_artist
desc: Prints the artist of the current cmus song.
- name: cmus_curtime
desc: Current time of the current cmus song.
- name: cmus_date
desc: Print the date of the current cmus song.
- name: cmus_file
desc: Print the file name of the current cmus song.
- name: cmus_genre
desc: Print the genre name of the current cmus song.
- name: cmus_percent
desc: Percent of song's progress.
- name: cmus_progress
desc: cmus' progress bar.
args:
- (height),(width)
- name: cmus_random
desc: Random status of cmus (on/off).
- name: cmus_repeat
desc: Repeat status of cmus (song/all/off).
- name: cmus_state
desc: Current state of cmus (playing, paused, stopped etc).
- name: cmus_timeleft
desc: Time left of the current cmus song.
- name: cmus_title
desc: Prints the title of the current cmus song.
- name: cmus_totaltime
desc: Total length of the current cmus song.
- name: cmus_track
desc: Print track number of current cmus song.
- name: color
desc: |-
Change drawing color to _color_ which is a name of a color
or a hexcode preceded with #, e.g. `#0A1B2C`. If you use ncurses only
the following colors are supported: red, green, yellow, blue, magenta,
cyan, black, and white.
args:
- (color)
- name: colorN
desc: |-
Change drawing color to colorN configuration option, where N
is a digit between 0 and 9, inclusively.
- name: combine
desc: |-
Places the lines of var2 to the right of the lines of var1
separated by the chars that are put between var1 and var2. For
example: `${combine ${head /proc/cpuinfo 2} - ${head /proc/meminfo 1}}`
gives as output `cpuinfo_line1 - meminfo_line1` on line 1 and
`cpuinfo_line2 -` on line 2. $combine vars can also be nested to place
more vars next to each other.
args:
- var1
- var2
- name: conky_build_arch
desc: CPU architecture Conky was built for.
- name: conky_build_date
desc: Date Conky was built.
- name: conky_version
desc: Conky version.
- name: cpu
desc: |-
CPU usage in percents. For SMP machines, the CPU number can
be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu
cpuX} (X >= 1) are individual CPUs.
args:
- (cpuN)
- name: cpubar
desc: |-
Bar that shows CPU usage, height is bar's height in pixels.
See $cpu for more info on SMP.
args:
- (cpuN)
- (height),(width)
- name: cpugauge
desc: |-
Elliptical gauge that shows CPU usage, height and width are
gauge's vertical and horizontal axis respectively. See $cpu for more
info on SMP.
args:
- (cpuN)
- (height),(width)
- name: cpugovernor
desc: |-
The active CPU scaling governor, defaulting to the first core.
See $cpu for more info on SMP. Linux only.
args:
- (cpuN)
- name: cpugraph
desc: |-
CPU usage graph, with optional colours in hex, minus the #.
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).
args:
- (cpuN)
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: curl
desc: |-
Download data from URI using Curl at the specified interval.
The interval may be a positive floating point value (0 is allowed),
otherwise defaults to 15 minutes. Most useful when used in conjunction
with Lua and the Lua API. This object is threaded, and once a thread
is created it can't be explicitly destroyed. One thread will run for
each URI specified. You can use any protocol that Curl supports.
args:
- url
- (interval_in_minutes)
- name: desktop
desc: |-
Number of the desktop on which conky is running or the
message "Not running in X" if this is the case.
- name: desktop_name
desc: |-
Name of the desktop on which conky is running or the message
"Not running in X" if this is the case.
- name: desktop_number
desc: |-
Number of desktops or the message "Not running in X" if this
is the case.
- name: disk_protect
desc: |-
Disk protection status, if supported (needs kernel-patch).
Prints either "frozen" or "free " (note the padding).
args:
- device
- name: diskio
desc: |-
Displays current disk IO. Device is optional, and takes the
form of sda for /dev/sda. A block device label can be specified with
label:foo and a block device partuuid can be specified with
partuuid:40000000-01.
args:
- (device)
- name: diskio_read
desc: Displays current disk IO for reads. Device as in diskio.
args:
- (device)
- name: diskio_write
desc: Displays current disk IO for writes. Device as in diskio.
args:
- (device)
- name: diskiograph
desc: |-
Disk IO graph, colours defined in hex, minus the #. If scale
is non-zero, it becomes the scale for the graph. 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).
args:
- (device)
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: diskiograph_read
desc: |-
Disk IO graph for reads, colours defined in hex, minus the
#. If scale is non-zero, it becomes the scale for the graph. Device as
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).
args:
- (device)
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: diskiograph_write
desc: |-
Disk IO graph for writes, colours defined in hex, minus the
#. If scale is non-zero, it becomes the scale for the graph. Device as
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).
args:
- (device)
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: distribution
desc: |-
The name of the distribution. It could be that some of the
untested distributions will show up wrong or as "unknown", if that's
the case post a bug on sourceforge, make sure it contains the name of
your distribution, the contents of and if there is a file that
only exists on your distribution, also add the path of that file in
the bug. If there is no such file, please add another way which we can
use to identify your distribution.
other:
filename: /proc/version
- name: downspeed
desc: Download speed in suitable IEC units.
args:
- (net)
- name: downspeedf
desc: Download speed in KiB with one decimal.
args:
- (net)
- name: downspeedgraph
desc: |-
Download speed graph, colours defined in hex, minus the #.
If scale is non-zero, it becomes the scale for the graph. 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).
args:
- (netdev)
- (height),(width)
- (gradient colour 1)
- (gradient colour 2)
- (scale)
- (-t)
- (-l)
- name: draft_mails
desc: |-
Number of mails marked as draft in the specified mailbox or
mail spool if not. Only maildir type mailboxes are supported, mbox
type will return -1.
args:
- (maildir)
- (interval)
- name: else
desc: Text to show if any of the above are not true.
- name: endif
desc: Ends an $if block.
- name: entropy_avail
desc: Current entropy available for crypto freaks.
- name: entropy_bar
desc: Normalized bar of available entropy for crypto freaks.
args:
- (height),(width)
- name: entropy_perc
desc: |-
Percentage of entropy available in comparison to the
poolsize.
- name: entropy_poolsize
desc: Total size of system entropy pool for crypto freaks.
- name: eval
desc: |-
Evaluates given string according to the rules of conky.text
interpretation, i.e. parsing any contained text object specifications
into their output, any occurring '$$' into a single '$' and so on. The
output is then being parsed again.
args:
- string
- name: exec
desc: |-
Executes a shell command and displays the output in conky.
Warning: this takes a lot more resources than other variables. I'd
recommend coding wanted behaviour in C/C++ and posting a patch.
args:
- command
- name: execbar
desc: |-
Same as exec, except if the first value returned is a value
between 0-100, it will use that number to draw a horizontal bar. The
height and width parameters are optional, and default to the
default_bar_height and default_bar_width config settings,
respectively.
args:
- (height),(width)
- command
- name: execgauge
desc: |-
Same as exec, except if the first value returned is a value
between 0-100, it will use that number to draw a round gauge (much
like a vehicle speedometer). The height and width parameters are
optional, and default to the default_gauge_height and
default_gauge_width config settings, respectively.
args:
- (height),(width)
- command
- name: execgraph
desc: |-
Draws a horizontally scrolling graph with values from 0-100 plotted on the
vertical axis. All parameters following the command are optional. Gradient
colors can be specified as hexadecimal values with no 0x or # prefix. Use
the -t switch to enable a temperature gradient, so that small values are
"cold" with color 1 and large values are "hot" with color 2. Without the -t
switch, the colors produce a horizontal gradient spanning the width of the
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.
If you need to execute a command with spaces, you have a
couple options:
1. wrap your command in double-quotes, or
2. put your command into a separate file, such as ~/bin/myscript.sh, and use
that as your execgraph command.
Remember to make your script executable!
In the following example, we set up execgraph to display seconds (0-59) on a
graph that is 50px high and 200px wide, using a temperature gradient with
colors ranging from red for small values (FF0000) to yellow for large values
(FFFF00). We set the scale to 60.
${execgraph ~/seconds.sh 50,200 FF0000 FFFF00 60 -t}
```
args:
- command
- (height),(width)
- (gradient color 1)
- (gradient color 2)
- (scale)
- (-t)
- (-l)
${color red}hi!${color}
in your script and have
it correctly parsed by Conky. Caveats: Conky parses and evaluates the
output of $execp every time Conky loops, and then destroys all the
objects. If you try to use anything like $execi within an $execp
statement, it will functionally run at the same interval that the
$execp statement runs, as it is created and destroyed at every
interval.
args:
"
character. The quote
characters are not part of the output, \w,\d,\h,\m,\s,(,) and \ are
replaced by weeks,days,hours,minutes,seconds,(,) and . If you leave out a
unit, it's value will be expressed in the highest unit lower than the one
left out. Text between ()-chars will not be visible if a replaced unit in
this text is 0. If seconds is a decimal number then you can see the
numbers behind the point by using \S followed by a number that specifies
the amount of digits behind the point that you want to see (maximum 9).
You can also place a 'x' behind \S so you have all digits behind the point
and no trailing zero's. (also maximum 9).
args:
name: hwmon desc: |- Hwmon sensor from sysfs (Linux 2.6). Parameter dev can be:
1
means hwmon1./sys/class/hwmon/*/name
file. Which might be slightly
different compared to the output of the lsmod command.
e.g. nct6793
means the first hwmon device which lsmod
reffers to as nct6775
.Omitted. Then the first hwmon device (hwmon0) will be used.
Parameter type is either in
or vol
meaning voltage; fan
meaning fan;
temp
meaning temperature. Parameter n is number of the sensor. See
/sys/class/hwmon/
on your local computer. The optional arguments factor
and offset
allow precalculation of the raw input, which is being modified
as follows: input = input * factor + offset
. Note that they have to be
given as decimal values (i.e. contain at least one decimal place).
args:
in
or vol
meaning voltage;
fan
meaning fan; temp
meaning temperature. Parameter n is number of the
sensor. See /sys/bus/i2c/devices/
on your local computer. The optional
arguments factor
and offset
allow precalculation of the raw input, which
is being modified as follows: input = input * factor + offset
. Note that
they have to be given as decimal values (i.e. contain at least one decimal
place).
args:
/proc/i8k
(translated to human-readable). Beware
that this is by default not enabled by i8k itself.name: if_match desc: |- Evaluates the given boolean expression, printing everything between $if_match and the matching $endif depending on whether the evaluation returns true or not. Valid expressions consist of a left side, an operator and a right side. Left and right sides are being parsed for contained text objects before evaluation.
Recognised left and right side types are:
double: Argument consists of only digits and a single dot.
long: Argument consists of only digits.
string: Argument is enclosed in quotation marks ("
).
Valid operands are:
<
or >
<=
or >=
==
or !=
args:
expression
/usr/bin/conky -u 5
:\n\n ${if_running conky -u 5}
or\n ${if_running\ \ conky}
\n \nIt is important not to include trailing spaces. For example,\
\ ${if_running\nconky }
will be false."
args:
name: if_updatenr desc: |- If it's the UPDATENR-th time that conky updates, display everything between $if_updatenr and the matching $endif. The counter resets when the highest UPDATENR is reached.
Example: {$if_updatenr 1}foo$endif{$if_updatenr 2}bar$endif{$if_updatenr 4}$endif
shows foo 25% of the time followed by bar 25% of the time followed
by nothing the other half of the time.
args:
/proc/sys/vm/laptop_mode
.free
program.name: nvidia desc: |- Nvidia graphics card information via the XNVCtrl library.
Temperatures are printed as float, all other values as integers.
GPU_ID: Optional parameter to choose the GPU to be used as 0,1,2,3,.. Default parameter is 0
Possible arguments:
Argument | Alias | Description |
---|---|---|
gputemp |
temp |
GPU temperature |
gputempthreshold |
threshold |
Temperature threshold where the GPU will reduce its clock speed |
ambienttemp |
ambient |
Ambient temperature outside the graphics card |
gpufreqcur |
gpufreq |
Current GPU clock speed |
gpufreqmin |
Minimum GPU clock speed | |
gpufreqmax |
Maximum GPU clock speed | |
memfreqcur |
memfreq |
Current memory clock speed |
memfreqmin |
Minimum memory clock speed | |
memfreqmax |
Maximum memory clock speed | |
mtrfreqcur |
mtrfreq |
Current memory transfer rate clock speed |
mtrfreqmin |
Minimum memory transfer rate clock speed | |
mtrfreqmax |
Maximum memory transfer rate clock speed | |
perflevelcur |
perflevel |
Current performance level |
perflevelmin |
Lowest performance level | |
perflevelmax |
Highest performance level | |
perfmode |
Performance mode | |
gpuutil |
GPU utilization % | |
membwutil |
Memory bandwidth utilization % | |
videoutil |
Video engine utilization % | |
pcieutil |
PCIe bandwidth utilization % | |
memused |
mem |
Amount of used memory |
memfree |
memavail |
Amount of free memory |
memmax |
memtotal |
Total amount of memory |
memutil |
memperc |
Memory utilization % |
fanspeed |
Fan speed | |
fanlevel |
Fan level % | |
imagequality |
Image quality | |
modelname |
Model name of the GPU card | |
driverversion |
Driver version |
args:
name: nvidiabar desc: |- Same as nvidia, except it draws its output in a horizontal bar. The height and width parameters are optional, and default to the default_bar_height and default_bar_width config settings, respectively.
GPU_ID: Optional parameter to choose the GPU to be used as 0,1,2,3,.. Default parameter is 0
Note the following arguments are incompatible:
gputempthreshold
(threshold
)gpufreqmin
gpufreqmax
memfreqmin
memfreqmax
mtrfreqmin
mtrfreqmax
perflevelmin
perflevelmax
perfmode
memtotal
(memmax
)fanspeed
args:name: nvidiagauge desc: |- Same as nvidiabar, except a round gauge (much like a vehicle speedometer). The height and width parameters are optional, and default to the default_gauge_height and default_gauge_width config settings, respectively.
GPU_ID: Optional parameter to choose the GPU to be used as 0,1,2,3,.. Default parameter is 0
For possible arguments see nvidia and nvidiabar. args:
name: nvidiagraph desc: |- Same as nvidiabar, except a horizontally scrolling graph with values from 0-100 plotted on the vertical axis. The height and width parameters are optional, and default to the default_graph_height and default_graph_width config settings, respectively.
GPU_ID: NOT optional. This parameter allows to choose the GPU to be 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. args:
name: pb_battery desc: |- If running on Apple powerbook/ibook, display information on battery status. The item parameter specifies, what information to display. Exactly one item must be specified. Valid items are:
Item | Description |
---|---|
status |
Display if battery is fully charged, charging, discharging or absent (running on AC) |
percent |
Display charge of battery in percent, if charging or discharging. Nothing will be displayed, if battery is fully charged or absent. |
time |
Display the time remaining until the battery will be fully charged or discharged at current rate. Nothing is displayed, if battery is absent or if it's present but fully charged and not discharging. |
args:
in
or vol
meaning
voltage; fan
meaning fan; temp
meaning temperature. Parameter n is
number of the sensor. See /sys/bus/platform/devices/
on your local
computer. The optional arguments factor
and offset
allow precalculation
of the raw input, which is being modified as follows: input = input * factor + offset
. Note that they have to be given as decimal values (i.e.
contain at least one decimal place).
args:
name: sip_status desc: |- Prints info regarding System Integrity Protection (SIP) on macOS. If no switch is provided, prints SIP status (enabled / disabled), else, status of the specific SIP feature corresponding to the switch provided.
Below are shown the available switches:
SWITCH | RESULT | STATUS |
---|---|---|
0 | apple internal | YES/NO |
1 | forbid untrusted kexts | YES/NO |
2 | forbid task-for-pid | YES/NO |
3 | restrict filesystem | YES/NO |
4 | forbid kernel-debugger | YES/NO |
5 | restrict dtrace | YES/NO |
6 | restrict nvram | YES/NO |
7 | forbid device-configuration | YES/NO |
8 | forbid any-recovery-os | YES/NO |
9 | forbid user-approved-kexts | YES/NO |
uses unsupported configuration?: If yes, prints "unsupported configuration, beware!" Else, prints "configuration is ok".
USAGE:
$ conky -t '${sip_status}'
# print SIP status
$ conky -t '${sip_status 0}'
# print allows apple-internal? Yes or No?
NOTES:
/sys/devices/platform/smapi
directory. ARGS are either (FILENAME)
or bat (INDEX) (FILENAME)
to
display the corresponding files' content. This is a very raw method of
accessing the smapi values. When available, better use one of the smapi_*
variables instead.
args:
name: stock desc: |- Displays the data of a stock symbol. The following data is supported:
Name | Description |
---|---|
1ytp | 1 yr Target Price |
200ma | 200-day Moving Average |
50ma | 50-day Moving Average |
52weekhigh | |
52weeklow | |
52weekrange | |
adv | Average Daily Volume |
ag | Annualized Gain |
ahcrt | After Hours Change realtime |
ask | |
askrt | ask realtime |
asksize | |
bid | |
bidrt | bid realtime |
bidsize | |
bookvalue | |
c200ma | Change From 200-day Moving Average |
c50ma | Change From 50-day Moving Average |
c52whigh | Change from 52-week high |
c52wlow | Change From 52-week Low |
change | |
changert | change realtime |
cip | change in percent |
commission | |
cprt | change percent realtime |
dayshigh | |
dayslow | |
dpd | Dividend Pay Date |
dr | day's range |
drrt | day's range realtime |
ds | dividend/share |
dvc | Day's Value Change |
dvcrt | Day's Value Change realtime |
dy | Dividend Yield |
ebitda | |
edv | Ex-Dividend Date |
ei | error indication |
epsecy | EPS Estimate Current Year |
epsenq | EPS Estimate Next Quarter |
epseny | EPS Estimate Next Year |
es | earnings/share |
floatshares | |
hg | Holdings Gain |
hgp | Holdings Gain Percent |
hgprt | Holdings Gain Percent realtime |
hgrt | Holdings Gain realtime |
hl | high limit |
hv | Holdings Value |
hvrt | Holdings Value realtime |
ll | low limit |
ltd | Last Trade Date |
ltp | last trade price |
lts | Last Trade Size |
ltt | Last Trade Time |
mc | Market Capitalization |
mcrt | Market Cap realtime |
moreinfo | |
name | |
notes | |
obrt | Order Book realtime |
open | |
pb | price/book |
pc | previous close |
pc200ma | Percent Change From 200-day Moving Average |
pc50ma | Percent Change From 50-day Moving Average |
pc52whigh | percent change from 52-week high |
pc52wlow | Percent Change From 52-week Low |
pegr | PEG Ratio |
pepsecy | Price/EPS Estimate Current Year |
pepseny | Price/EPS Estimate Next Year |
per | P/E Ratio |
perrt | P/E Ratio realtime |
pricepaid | |
ps | price/sales |
se | Stock Exchange |
sharesowned | |
shortratio | |
symbol | |
tradedate | |
tradelinks | |
tt | Ticker Trend |
volume |
args:
name: tcp_portmon desc: |- TCP port (both IPv6 and IPv4) monitor for specified local ports. Port numbers must be in the range 1 to 65535. Valid items are:
Item | Description |
---|---|
count |
Total number of connections in the range |
rip |
Remote ip address |
rhost |
Remote host name |
rport |
Remote port number |
rservice |
Remote service name from /etc/services |
lip |
Local ip address |
lhost |
Local host name |
lport |
Local port number |
lservice |
Local service name from /etc/services |
The connection index provides you with access to each connection in the
port monitor. The monitor will return information for index values from
0 to n-1 connections. Values higher than n-1 are simply ignored. For the
count
item, the connection index must be omitted. It is required for
all other items.
Examples:
Example | Description |
---|---|
${tcp_portmon 6881 6999 count} |
Displays the number of connections in the bittorrent port range |
${tcp_portmon 22 22 rip 0} |
Displays the remote host ip of the first sshd connection |
${tcp_portmon 22 22 rip 9} |
Displays the remote host ip of the tenth sshd connection |
${tcp_portmon 1 1024 rhost 0} |
Displays the remote host name of the first connection on a privileged port |
${tcp_portmon 1 1024 rport 4} |
Displays the remote host port of the fifth connection on a privileged port |
${tcp_portmon 1 65535 lservice 14} |
Displays the local service name of the fifteenth connection in the range of all ports |
Note that port monitor variables which share the same port range actually refer to the same monitor, so many references to a single port range for different items and different indexes all use the same monitor internally. In other words, the program avoids creating redundant monitors. args:
name: templateN desc: |- Evaluate the content of the templateN configuration variable (where N is a value between 0 and 9, inclusively), applying substitutions as described in the documentation of the corresponding configuration variable. The number of arguments is optional, but must match the highest referred index in the template. You can use the same special sequences in each argument as the ones valid for a template definition, e.g. to allow an argument to contain a whitespace. Also simple nesting of templates is possible this way.
Here are some examples of template definitions, note they are placed
between [[ ... ]]
instead of ...
:
template0 = [[$12]]
template1 = [[1: ${fs_used 2} / ${fs_size 2}]]
template2 = [[1 2]]
The following list shows sample usage of the templates defined above, with the equivalent syntax when not using any template at all:
Using template | Same without template |
---|---|
${template0 node name} |
$nodename |
${template1 root /} |
root: ${fs_free /} / ${fs_size /} |
${template1 ${template2 disk root} /} |
disk root: ${fs_free /} / ${fs_size /} |
--------------------------------------------- | ------------------------------------------ |
args:
I have rechecked alignr
with a negative num
, such as alignr -100
. With small values of num
, I couldn't observe a noticeable change. Which is why I assumed, in the above file, that negative values are ignored. However, with smaller values of num
, that are larger with their absolute value (|-100| == abs(-100) == 100), there seem to be an attempt to shift the string to the right. Which, in my case, resulted with a chopped string. Possibly because, in my case, it hits the window border. What is the meaning of shifting a right justified string to the right?
This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Referring to:
/sys/class/hwmon/hwmon?/name
does not always identical to the related kernel module name. I think the word module should be dropped, and a direct relation to the name, as given by/sys/class/hwmon/hwmon?/name
should be stated.