1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00
conky/src
Qu Wenruo 14e3b80c45 conky: Allow hwmon command to accept hwmon device name
[PROBLEM]
Some hwmon device number may change due to module load sequence.
E.g:
One boot would cause the following layout:
hwmon0->acpitz
hwmon1->pch_skylake
hwmon2->thinkpad
hwmon3->coretemp
hwmon4->iwlwifi

While another boot could lead to:
hwmon0->acpitz
hwmon1->pch_skylake
hwmon2->coretemp
hwmon3->thinkpad
hwmon4->iwlwifi

[ENHANCEMENT]
This patch will enhance the hwmon command to accept hwmon device name as
first parameter instead of number.

Now "hwmon 3 temp 1" can be converted to "hwmon coretemp temp 1", which
is more readable and user won't ever need to bother the hwmon sequence
number change.

Signed-off-by: Qu Wenruo <wqu@suse.com>
2019-02-17 09:24:15 -05:00
..
algebra.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
algebra.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
apcupsd.cc Fix an FD leak in APCUPSD. 2018-12-31 09:27:33 -05:00
apcupsd.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
audacious.cc Unwrap audacious C macros. 2018-08-08 15:54:47 -04:00
audacious.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
bsdapm.cc These changes are required to make it build on FreeBSD i386 (x86/32) 2019-01-07 19:38:04 -05:00
bsdapm.h These changes are required to make it build on FreeBSD i386 (x86/32) 2019-01-07 19:38:04 -05:00
build.h.in - Comment out NetBSD/SanOS garbage 2006-08-12 06:10:18 +00:00
c++wrap.cc Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
c++wrap.hh Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
ccurl_thread.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
ccurl_thread.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
CMakeLists.txt Install libconky_core, too, if wanted. 2019-01-08 20:02:53 -05:00
cmus.cc Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
cmus.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
colours.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
colours.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
combine.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
combine.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
common.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
common.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
conky.cc Fix build with BUILD_BUILTIN_CONFIG=OFF. 2019-01-09 09:42:54 -05:00
conky.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
core.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
core.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
cpu.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
cpu.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
darwin_sip.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
darwin.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
darwin.mm update copyright year to 2019 2019-01-05 11:15:36 -06:00
data-source.cc Get rid of silly if (not ... exp. (#713) 2018-12-20 10:22:08 -05:00
data-source.hh Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
diskio.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
diskio.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
dragonfly.cc Conky for mac os master (#579) 2018-08-07 11:54:01 -04:00
dragonfly.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
entropy.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
entropy.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
exec.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
exec.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
fonts.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
fonts.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
freebsd.cc Fix update_total_processes() missing return val. 2019-01-07 20:26:24 -05:00
freebsd.h FreeBSD build fix. 2019-01-13 12:45:20 -05:00
fs.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
fs.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
haiku.cc Fix update_total_processes() missing return val. 2019-01-07 20:26:24 -05:00
haiku.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
hddtemp.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
hddtemp.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
i8k.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
i8k.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
i18n.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
ibm.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
ibm.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
ical.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
ical.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
iconv_tools.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
iconv_tools.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
imlib2.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
imlib2.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
irc.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
irc.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
journal.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
journal.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
libmpdclient.cc More build fixes. 2018-12-22 15:42:46 -05:00
libmpdclient.h Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
libtcp-portmon.cc Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
libtcp-portmon.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
linux.cc conky: Allow hwmon command to accept hwmon device name 2019-02-17 09:24:15 -05:00
linux.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
llua.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
llua.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
logging.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
lua-config.cc Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
lua-config.hh Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
luamm.cc Add some basic unit tests. 2018-12-24 02:02:01 -05:00
luamm.hh Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
mail.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
mail.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
main.cc Include missing FreeBSD header. 2019-01-12 11:50:50 -05:00
main.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
mboxscan.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
mboxscan.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
misc.cc Fix compiler warnings. 2018-12-20 21:20:43 -05:00
misc.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
mixer.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
mixer.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
moc.cc Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
moc.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
mpd.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
mpd.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
mysql.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
mysql.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
nc.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
nc.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
net_stat.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
net_stat.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
netbsd.cc Fix update_total_processes() missing return val. 2019-01-07 20:26:24 -05:00
netbsd.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
nvidia.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
nvidia.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
openbsd.cc Fix update_total_processes() missing return val. 2019-01-07 20:26:24 -05:00
openbsd.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
prioqueue.cc Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
prioqueue.h Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
proc.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
proc.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
prss.cc Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
prss.h Build improvements (external libs, enable more options). (#498) 2018-05-13 13:33:18 -04:00
pulseaudio.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
pulseaudio.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
read_tcpip.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
read_tcpip.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
rss.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
rss.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
scroll.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
scroll.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
semaphore.hh Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
setting.cc Get rid of silly if (not ... exp. (#713) 2018-12-20 10:22:08 -05:00
setting.hh Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
smapi.cc Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
smapi.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
solaris.cc Fix update_total_processes() missing return val. 2019-01-07 20:26:24 -05:00
solaris.h Add formatting/static analysis (#486) 2018-05-12 12:03:00 -04:00
sony.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
sony.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
specials.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
specials.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
tailhead.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
tailhead.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
tcp-portmon.cc Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
tcp-portmon.h Use unsigned int for p_max_size in obj_cb.print 2018-08-08 15:54:47 -04:00
temphelper.cc Add new text objects to retrieve the currently used keyboard layout and mouse speed in percentage and generate random password of chosen length and get the cpu clock speed from assembly (#550) 2018-08-04 15:01:28 -04:00
temphelper.h Add new text objects to retrieve the currently used keyboard layout and mouse speed in percentage and generate random password of chosen length and get the cpu clock speed from assembly (#550) 2018-08-04 15:01:28 -04:00
template.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
template.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
text_object.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
text_object.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
timeinfo.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
timeinfo.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
top.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
top.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
update-cb.cc Apply fixes from sonar. 2018-12-22 19:10:10 -05:00
update-cb.hh Build improvements: clang-tidy, sonar, Dockerfile. (#488) 2018-05-12 19:26:31 -04:00
user.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
user.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
users.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
users.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
weather.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
weather.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
x11.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
x11.h update copyright year to 2019 2019-01-05 11:15:36 -06:00
xmms2.cc update copyright year to 2019 2019-01-05 11:15:36 -06:00
xmms2.h update copyright year to 2019 2019-01-05 11:15:36 -06:00