mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-06 14:09:29 +00:00
Compare commits
2 Commits
5ee7bd1185
...
ae8f1fa847
Author | SHA1 | Date | |
---|---|---|---|
|
ae8f1fa847 | ||
|
342f07b8ca |
@ -66,80 +66,80 @@ set(conky_sources
|
|||||||
${conky_sources}
|
${conky_sources}
|
||||||
c++wrap.cc
|
c++wrap.cc
|
||||||
c++wrap.hh
|
c++wrap.hh
|
||||||
colour-settings.cc
|
lua/colour-settings.cc
|
||||||
colour-settings.h
|
lua/colour-settings.hh
|
||||||
colours.cc
|
content/colours.cc
|
||||||
colours.h
|
content/colours.hh
|
||||||
combine.cc
|
content/combine.cc
|
||||||
combine.h
|
content/combine.h
|
||||||
common.cc
|
common.cc
|
||||||
common.h
|
common.h
|
||||||
conky.cc
|
conky.cc
|
||||||
conky.h
|
conky.h
|
||||||
core.cc
|
core.cc
|
||||||
core.h
|
core.h
|
||||||
cpu.cc
|
data/hardware/cpu.cc
|
||||||
cpu.h
|
data/hardware/cpu.h
|
||||||
diskio.cc
|
data/hardware/diskio.cc
|
||||||
diskio.h
|
data/hardware/diskio.h
|
||||||
entropy.cc
|
data/entropy.cc
|
||||||
entropy.h
|
data/entropy.h
|
||||||
exec.cc
|
data/exec.cc
|
||||||
exec.h
|
data/exec.h
|
||||||
fs.cc
|
data/fs.cc
|
||||||
fs.h
|
data/fs.h
|
||||||
gradient.cc
|
content/gradient.cc
|
||||||
gradient.h
|
content/gradient.hh
|
||||||
mail.cc
|
data/network/mail.cc
|
||||||
mail.h
|
data/network/mail.h
|
||||||
misc.cc
|
data/misc.cc
|
||||||
misc.h
|
data/misc.h
|
||||||
net_stat.cc
|
data/network/net_stat.cc
|
||||||
net_stat.h
|
data/network/net_stat.h
|
||||||
template.cc
|
content/template.cc
|
||||||
template.h
|
content/template.h
|
||||||
mboxscan.cc
|
data/network/mboxscan.cc
|
||||||
mboxscan.h
|
data/network/mboxscan.h
|
||||||
read_tcpip.cc
|
data/network/read_tcpip.cc
|
||||||
read_tcpip.h
|
data/network/read_tcpip.h
|
||||||
scroll.cc
|
content/scroll.cc
|
||||||
scroll.h
|
content/scroll.h
|
||||||
specials.cc
|
content/specials.cc
|
||||||
specials.h
|
content/specials.h
|
||||||
tailhead.cc
|
data/tailhead.cc
|
||||||
tailhead.h
|
data/tailhead.h
|
||||||
temphelper.cc
|
content/temphelper.cc
|
||||||
temphelper.h
|
content/temphelper.h
|
||||||
text_object.cc
|
content/text_object.cc
|
||||||
text_object.h
|
content/text_object.h
|
||||||
timeinfo.cc
|
data/timeinfo.cc
|
||||||
timeinfo.h
|
data/timeinfo.h
|
||||||
top.cc
|
data/top.cc
|
||||||
top.h
|
data/top.h
|
||||||
algebra.cc
|
content/algebra.cc
|
||||||
algebra.h
|
content/algebra.h
|
||||||
prioqueue.cc
|
prioqueue.cc
|
||||||
prioqueue.h
|
prioqueue.h
|
||||||
proc.cc
|
data/proc.cc
|
||||||
proc.h
|
data/proc.h
|
||||||
user.cc
|
data/user.cc
|
||||||
user.h
|
data/user.h
|
||||||
luamm.cc
|
lua/luamm.cc
|
||||||
luamm.hh
|
lua/luamm.hh
|
||||||
data-source.cc
|
data/data-source.cc
|
||||||
data-source.hh
|
data/data-source.hh
|
||||||
display-output.cc
|
output/display-output.cc
|
||||||
display-output.hh
|
output/display-output.hh
|
||||||
display-console.cc
|
output/display-console.cc
|
||||||
display-console.hh
|
output/display-console.hh
|
||||||
display-file.cc
|
output/display-file.cc
|
||||||
display-file.hh
|
output/display-file.hh
|
||||||
lua-config.cc
|
lua/lua-config.cc
|
||||||
lua-config.hh
|
lua/lua-config.hh
|
||||||
setting.cc
|
lua/setting.cc
|
||||||
setting.hh
|
lua/setting.hh
|
||||||
llua.cc
|
lua/llua.cc
|
||||||
llua.h
|
lua/llua.h
|
||||||
update-cb.cc
|
update-cb.cc
|
||||||
update-cb.hh
|
update-cb.hh
|
||||||
logging.h
|
logging.h
|
||||||
@ -148,122 +148,152 @@ set(conky_sources
|
|||||||
|
|
||||||
# Platform specific sources
|
# Platform specific sources
|
||||||
if(OS_LINUX)
|
if(OS_LINUX)
|
||||||
set(linux linux.cc linux.h users.cc users.h sony.cc sony.h i8k.cc i8k.h)
|
set(linux_sources
|
||||||
set(optional_sources ${optional_sources} ${linux})
|
data/os/linux.cc
|
||||||
|
data/os/linux.h
|
||||||
|
data/users.cc
|
||||||
|
data/users.h
|
||||||
|
data/hardware/sony.cc
|
||||||
|
data/hardware/sony.h
|
||||||
|
data/hardware/i8k.cc
|
||||||
|
data/hardware/i8k.h
|
||||||
|
)
|
||||||
|
set(optional_sources ${optional_sources} ${linux_sources})
|
||||||
endif(OS_LINUX)
|
endif(OS_LINUX)
|
||||||
|
|
||||||
if(OS_FREEBSD)
|
if(OS_FREEBSD)
|
||||||
set(freebsd freebsd.cc freebsd.h bsdapm.cc bsdapm.h)
|
set(freebsd_sources
|
||||||
set(optional_sources ${optional_sources} ${freebsd})
|
data/os/freebsd.cc
|
||||||
|
data/os/freebsd.h
|
||||||
|
data/hardware/bsdapm.cc
|
||||||
|
data/hardware/bsdapm.h
|
||||||
|
)
|
||||||
|
set(optional_sources ${optional_sources} ${freebsd_sources})
|
||||||
endif(OS_FREEBSD)
|
endif(OS_FREEBSD)
|
||||||
|
|
||||||
if(OS_DRAGONFLY)
|
if(OS_DRAGONFLY)
|
||||||
set(dragonfly dragonfly.cc dragonfly.h bsdapm.cc bsdapm.h)
|
set(dragonfly_sources
|
||||||
set(optional_sources ${optional_sources} ${dragonfly})
|
data/os/dragonfly.cc
|
||||||
|
data/os/dragonfly.h
|
||||||
|
data/hardware/bsdapm.cc
|
||||||
|
data/hardware/bsdapm.h
|
||||||
|
)
|
||||||
|
set(optional_sources ${optional_sources} ${dragonfly_sources})
|
||||||
endif(OS_DRAGONFLY)
|
endif(OS_DRAGONFLY)
|
||||||
|
|
||||||
if(OS_OPENBSD)
|
if(OS_OPENBSD)
|
||||||
set(openbsd openbsd.cc openbsd.h bsdapm.cc bsdapm.h)
|
set(openbsd_sources
|
||||||
set(optional_sources ${optional_sources} ${openbsd})
|
data/os/openbsd.cc
|
||||||
|
data/os/openbsd.h
|
||||||
|
data/hardware/bsdapm.cc
|
||||||
|
data/hardware/bsdapm.h
|
||||||
|
)
|
||||||
|
set(optional_sources ${optional_sources} ${openbsd_sources})
|
||||||
endif(OS_OPENBSD)
|
endif(OS_OPENBSD)
|
||||||
|
|
||||||
# These below are not actually supported. No idea what their status is.
|
# These below are not actually supported. No idea what their status is.
|
||||||
if(OS_SOLARIS)
|
if(OS_SOLARIS)
|
||||||
set(solaris solaris.cc solaris.h)
|
set(solaris_sources data/os/solaris.cc data/os/solaris.h)
|
||||||
set(optional_sources ${optional_sources} ${solaris})
|
set(optional_sources ${optional_sources} ${solaris_sources})
|
||||||
endif(OS_SOLARIS)
|
endif(OS_SOLARIS)
|
||||||
|
|
||||||
if(OS_NETBSD)
|
if(OS_NETBSD)
|
||||||
set(netbsd netbsd.cc netbsd.h bsdcommon.cc bsdcommon.h)
|
set(netbsd_sources data/os/netbsd.cc data/os/netbsd.h data/os/bsdcommon.cc data/os/bsdcommon.h)
|
||||||
set(optional_sources ${optional_sources} ${netbsd})
|
set(optional_sources ${optional_sources} ${netbsd_sources})
|
||||||
endif(OS_NETBSD)
|
endif(OS_NETBSD)
|
||||||
|
|
||||||
if(OS_HAIKU)
|
if(OS_HAIKU)
|
||||||
set(haiku haiku.cc haiku.h)
|
set(haiku_sources data/os/haiku.cc data/os/haiku.h)
|
||||||
set(optional_sources ${optional_sources} ${haiku})
|
set(optional_sources ${optional_sources} ${haiku_sources})
|
||||||
endif(OS_HAIKU)
|
endif(OS_HAIKU)
|
||||||
|
|
||||||
if(OS_DARWIN)
|
if(OS_DARWIN)
|
||||||
set(darwin darwin.mm darwin.h darwin_sip.h i18n.h)
|
set(darwin_sources data/os/darwin.mm data/os/darwin.h data/os/darwin_sip.h i18n.h)
|
||||||
set(optional_sources ${optional_sources} ${darwin})
|
set(optional_sources ${optional_sources} ${darwin_sources})
|
||||||
endif(OS_DARWIN)
|
endif(OS_DARWIN)
|
||||||
|
|
||||||
# Optional sources
|
# Optional sources
|
||||||
if(HAVE_SOUNDCARD_H)
|
if(HAVE_SOUNDCARD_H)
|
||||||
set(mixer mixer.cc mixer.h)
|
set(mixer data/audio/mixer.cc data/audio/mixer.h)
|
||||||
set(optional_sources ${optional_sources} ${mixer})
|
set(optional_sources ${optional_sources} ${mixer})
|
||||||
endif(HAVE_SOUNDCARD_H)
|
endif(HAVE_SOUNDCARD_H)
|
||||||
|
|
||||||
if(BUILD_AUDACIOUS)
|
if(BUILD_AUDACIOUS)
|
||||||
set(audacious audacious.cc audacious.h)
|
set(audacious data/audio/audacious.cc data/audio/audacious.h)
|
||||||
set(optional_sources ${optional_sources} ${audacious})
|
set(optional_sources ${optional_sources} ${audacious})
|
||||||
endif(BUILD_AUDACIOUS)
|
endif(BUILD_AUDACIOUS)
|
||||||
|
|
||||||
if(BUILD_IBM)
|
if(BUILD_IBM)
|
||||||
set(ibm ibm.cc ibm.h smapi.cc smapi.h)
|
set(ibm data/hardware/ibm.cc data/hardware/ibm.h data/hardware/smapi.cc data/hardware/smapi.h)
|
||||||
set(optional_sources ${optional_sources} ${ibm})
|
set(optional_sources ${optional_sources} ${ibm})
|
||||||
endif(BUILD_IBM)
|
endif(BUILD_IBM)
|
||||||
|
|
||||||
if(BUILD_MPD)
|
if(BUILD_MPD)
|
||||||
set(mpd mpd.cc mpd.h libmpdclient.cc libmpdclient.h)
|
set(mpd data/audio/mpd.cc data/audio/mpd.h data/audio/libmpdclient.cc data/audio/libmpdclient.h)
|
||||||
set(optional_sources ${optional_sources} ${mpd})
|
set(optional_sources ${optional_sources} ${mpd})
|
||||||
endif(BUILD_MPD)
|
endif(BUILD_MPD)
|
||||||
|
|
||||||
if(BUILD_MYSQL)
|
if(BUILD_MYSQL)
|
||||||
set(mysql mysql.cc mysql.h)
|
set(mysql data/mysql.cc data/mysql.h)
|
||||||
set(optional_sources ${optional_sources} ${mysql})
|
set(optional_sources ${optional_sources} ${mysql})
|
||||||
endif(BUILD_MYSQL)
|
endif(BUILD_MYSQL)
|
||||||
|
|
||||||
if(BUILD_MOC)
|
if(BUILD_MOC)
|
||||||
set(moc moc.cc moc.h)
|
set(moc data/audio/moc.cc data/audio/moc.h)
|
||||||
set(optional_sources ${optional_sources} ${moc})
|
set(optional_sources ${optional_sources} ${moc})
|
||||||
endif(BUILD_MOC)
|
endif(BUILD_MOC)
|
||||||
|
|
||||||
if(BUILD_CMUS)
|
if(BUILD_CMUS)
|
||||||
set(cmus cmus.cc cmus.h)
|
set(cmus data/audio/cmus.cc data/audio/cmus.h)
|
||||||
set(optional_sources ${optional_sources} ${cmus})
|
set(optional_sources ${optional_sources} ${cmus})
|
||||||
endif(BUILD_CMUS)
|
endif(BUILD_CMUS)
|
||||||
|
|
||||||
if(BUILD_JOURNAL)
|
if(BUILD_JOURNAL)
|
||||||
set(journal journal.cc journal.h)
|
set(journal data/os/journal.cc data/os/journal.h)
|
||||||
set(optional_sources ${optional_sources} ${journal})
|
set(optional_sources ${optional_sources} ${journal})
|
||||||
endif(BUILD_JOURNAL)
|
endif(BUILD_JOURNAL)
|
||||||
|
|
||||||
if(BUILD_XMMS2)
|
if(BUILD_XMMS2)
|
||||||
set(xmms2 xmms2.cc xmms2.h)
|
set(xmms2 data/audio/xmms2.cc data/audio/xmms2.h)
|
||||||
set(optional_sources ${optional_sources} ${xmms2})
|
set(optional_sources ${optional_sources} ${xmms2})
|
||||||
endif(BUILD_XMMS2)
|
endif(BUILD_XMMS2)
|
||||||
|
|
||||||
if(BUILD_PORT_MONITORS)
|
if(BUILD_PORT_MONITORS)
|
||||||
add_library(tcp-portmon libtcp-portmon.cc libtcp-portmon.h)
|
add_library(tcp-portmon
|
||||||
|
data/network/libtcp-portmon.cc
|
||||||
|
data/network/libtcp-portmon.h
|
||||||
|
)
|
||||||
set(conky_libs ${conky_libs} tcp-portmon)
|
set(conky_libs ${conky_libs} tcp-portmon)
|
||||||
set(port_monitors tcp-portmon.cc tcp-portmon.h)
|
set(port_monitors
|
||||||
|
data/network/tcp-portmon.cc
|
||||||
|
data/network/tcp-portmon.h
|
||||||
|
)
|
||||||
set(optional_sources ${optional_sources} ${port_monitors})
|
set(optional_sources ${optional_sources} ${port_monitors})
|
||||||
endif(BUILD_PORT_MONITORS)
|
endif(BUILD_PORT_MONITORS)
|
||||||
|
|
||||||
if(BUILD_HTTP)
|
if(BUILD_HTTP)
|
||||||
set(http
|
set(http
|
||||||
display-http.cc
|
output/display-http.cc
|
||||||
display-http.hh
|
output/display-http.hh
|
||||||
)
|
)
|
||||||
set(optional_sources ${optional_sources} ${http})
|
set(optional_sources ${optional_sources} ${http})
|
||||||
endif(BUILD_HTTP)
|
endif(BUILD_HTTP)
|
||||||
|
|
||||||
if(BUILD_X11)
|
if(BUILD_X11)
|
||||||
set(x11
|
set(x11
|
||||||
display-x11.cc
|
output/display-x11.cc
|
||||||
display-x11.hh
|
output/display-x11.hh
|
||||||
x11-settings.cc
|
lua/x11-settings.cc
|
||||||
x11-settings.h
|
lua/x11-settings.h
|
||||||
x11-color.cc
|
output/x11-color.cc
|
||||||
x11.cc
|
output/x11.cc
|
||||||
x11.h
|
output/x11.h
|
||||||
)
|
)
|
||||||
set(optional_sources ${optional_sources} ${x11})
|
set(optional_sources ${optional_sources} ${x11})
|
||||||
endif(BUILD_X11)
|
endif(BUILD_X11)
|
||||||
|
|
||||||
if(BUILD_GUI)
|
if(BUILD_GUI)
|
||||||
set(gui fonts.cc fonts.h gui.cc gui.h)
|
set(gui lua/fonts.cc lua/fonts.h output/gui.cc output/gui.h)
|
||||||
set(optional_sources ${optional_sources} ${gui})
|
set(optional_sources ${optional_sources} ${gui})
|
||||||
|
|
||||||
if(BUILD_MOUSE_EVENTS OR BUILD_XINPUT)
|
if(BUILD_MOUSE_EVENTS OR BUILD_XINPUT)
|
||||||
@ -274,10 +304,10 @@ endif(BUILD_GUI)
|
|||||||
|
|
||||||
if(BUILD_WAYLAND)
|
if(BUILD_WAYLAND)
|
||||||
set(wl_sources
|
set(wl_sources
|
||||||
wl.cc
|
output/wl.cc
|
||||||
wl.h
|
output/wl.h
|
||||||
display-wayland.cc
|
output/display-wayland.cc
|
||||||
display-wayland.hh
|
output/display-wayland.hh
|
||||||
xdg-shell-protocol.c
|
xdg-shell-protocol.c
|
||||||
wlr-layer-shell-protocol.c
|
wlr-layer-shell-protocol.c
|
||||||
)
|
)
|
||||||
@ -340,22 +370,30 @@ if(BUILD_WAYLAND)
|
|||||||
endif(BUILD_WAYLAND)
|
endif(BUILD_WAYLAND)
|
||||||
|
|
||||||
if(BUILD_HDDTEMP)
|
if(BUILD_HDDTEMP)
|
||||||
set(hddtemp hddtemp.cc hddtemp.h)
|
set(hddtemp data/hardware/hddtemp.cc data/hardware/hddtemp.h)
|
||||||
set(optional_sources ${optional_sources} ${hddtemp})
|
set(optional_sources ${optional_sources} ${hddtemp})
|
||||||
endif(BUILD_HDDTEMP)
|
endif(BUILD_HDDTEMP)
|
||||||
|
|
||||||
if(BUILD_CURL)
|
if(BUILD_CURL)
|
||||||
set(ccurl_thread ccurl_thread.cc ccurl_thread.h)
|
set(ccurl_thread
|
||||||
|
data/network/ccurl_thread.cc
|
||||||
|
data/network/ccurl_thread.h
|
||||||
|
)
|
||||||
set(optional_sources ${optional_sources} ${ccurl_thread})
|
set(optional_sources ${optional_sources} ${ccurl_thread})
|
||||||
endif(BUILD_CURL)
|
endif(BUILD_CURL)
|
||||||
|
|
||||||
if(BUILD_RSS)
|
if(BUILD_RSS)
|
||||||
set(rss rss.cc rss.h prss.cc prss.h)
|
set(rss
|
||||||
|
data/network/rss.cc
|
||||||
|
data/network/rss.h
|
||||||
|
data/network/prss.cc
|
||||||
|
data/network/prss.h
|
||||||
|
)
|
||||||
set(optional_sources ${optional_sources} ${rss})
|
set(optional_sources ${optional_sources} ${rss})
|
||||||
endif(BUILD_RSS)
|
endif(BUILD_RSS)
|
||||||
|
|
||||||
if(BUILD_NVIDIA)
|
if(BUILD_NVIDIA)
|
||||||
set(nvidia nvidia.cc nvidia.h)
|
set(nvidia data/hardware/nvidia.cc data/hardware/nvidia.h)
|
||||||
set(optional_sources ${optional_sources} ${nvidia})
|
set(optional_sources ${optional_sources} ${nvidia})
|
||||||
endif(BUILD_NVIDIA)
|
endif(BUILD_NVIDIA)
|
||||||
|
|
||||||
@ -365,42 +403,42 @@ if(BUILD_IMLIB2)
|
|||||||
endif(BUILD_IMLIB2)
|
endif(BUILD_IMLIB2)
|
||||||
|
|
||||||
if(BUILD_APCUPSD)
|
if(BUILD_APCUPSD)
|
||||||
set(apcupsd apcupsd.cc apcupsd.h)
|
set(apcupsd data/hardware/apcupsd.cc data/hardware/apcupsd.h)
|
||||||
set(optional_sources ${optional_sources} ${apcupsd})
|
set(optional_sources ${optional_sources} ${apcupsd})
|
||||||
endif(BUILD_APCUPSD)
|
endif(BUILD_APCUPSD)
|
||||||
|
|
||||||
if(BUILD_ICAL)
|
if(BUILD_ICAL)
|
||||||
set(ical ical.cc ical.h)
|
set(ical data/ical.cc data/ical.h)
|
||||||
set(optional_sources ${optional_sources} ${ical})
|
set(optional_sources ${optional_sources} ${ical})
|
||||||
endif(BUILD_ICAL)
|
endif(BUILD_ICAL)
|
||||||
|
|
||||||
if(BUILD_IRC)
|
if(BUILD_IRC)
|
||||||
set(irc irc.cc irc.h)
|
set(irc data/network/irc.cc data/network/irc.h)
|
||||||
set(optional_sources ${optional_sources} ${irc})
|
set(optional_sources ${optional_sources} ${irc})
|
||||||
endif(BUILD_IRC)
|
endif(BUILD_IRC)
|
||||||
|
|
||||||
if(BUILD_ICONV)
|
if(BUILD_ICONV)
|
||||||
set(iconv iconv_tools.cc iconv_tools.h)
|
set(iconv data/iconv_tools.cc data/iconv_tools.h)
|
||||||
set(optional_sources ${optional_sources} ${iconv})
|
set(optional_sources ${optional_sources} ${iconv})
|
||||||
endif(BUILD_ICONV)
|
endif(BUILD_ICONV)
|
||||||
|
|
||||||
if(BUILD_NCURSES)
|
if(BUILD_NCURSES)
|
||||||
set(ncurses_srcs
|
set(ncurses_srcs
|
||||||
nc.cc
|
output/nc.cc
|
||||||
nc.h
|
output/nc.h
|
||||||
display-ncurses.cc
|
output/display-ncurses.cc
|
||||||
display-ncurses.hh
|
output/display-ncurses.hh
|
||||||
)
|
)
|
||||||
set(optional_sources ${optional_sources} ${ncurses_srcs})
|
set(optional_sources ${optional_sources} ${ncurses_srcs})
|
||||||
endif(BUILD_NCURSES)
|
endif(BUILD_NCURSES)
|
||||||
|
|
||||||
if(BUILD_PULSEAUDIO)
|
if(BUILD_PULSEAUDIO)
|
||||||
set(pulseaudio pulseaudio.cc pulseaudio.h)
|
set(pulseaudio data/audio/pulseaudio.cc data/audio/pulseaudio.h)
|
||||||
set(optional_sources ${optional_sources} ${pulseaudio})
|
set(optional_sources ${optional_sources} ${pulseaudio})
|
||||||
endif(BUILD_PULSEAUDIO)
|
endif(BUILD_PULSEAUDIO)
|
||||||
|
|
||||||
if(BUILD_INTEL_BACKLIGHT)
|
if(BUILD_INTEL_BACKLIGHT)
|
||||||
set(intel_backlight intel_backlight.cc intel_backlight.h)
|
set(intel_backlight data/hardware/intel_backlight.cc data/hardware/intel_backlight.h)
|
||||||
set(optional_sources ${optional_sources} ${intel_backlight})
|
set(optional_sources ${optional_sources} ${intel_backlight})
|
||||||
endif(BUILD_INTEL_BACKLIGHT)
|
endif(BUILD_INTEL_BACKLIGHT)
|
||||||
|
|
||||||
|
@ -47,14 +47,14 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "conky.h"
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "fs.h"
|
#include "data/fs.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "misc.h"
|
#include "data/misc.h"
|
||||||
#include "net_stat.h"
|
#include "data/network/net_stat.h"
|
||||||
#include "specials.h"
|
#include "content/specials.h"
|
||||||
#include "temphelper.h"
|
#include "content/temphelper.h"
|
||||||
#include "timeinfo.h"
|
#include "data/timeinfo.h"
|
||||||
#include "top.h"
|
#include "data/top.h"
|
||||||
|
|
||||||
#if defined(_POSIX_C_SOURCE) && !defined(__OpenBSD__) && !defined(__HAIKU__)
|
#if defined(_POSIX_C_SOURCE) && !defined(__OpenBSD__) && !defined(__HAIKU__)
|
||||||
#include <wordexp.h>
|
#include <wordexp.h>
|
||||||
@ -62,23 +62,23 @@
|
|||||||
|
|
||||||
/* check for OS and include appropriate headers */
|
/* check for OS and include appropriate headers */
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "linux.h"
|
#include "data/os/linux.h"
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include "freebsd.h"
|
#include "data/os/freebsd.h"
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__)
|
||||||
#include "dragonfly.h"
|
#include "data/os/dragonfly.h"
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include "openbsd.h"
|
#include "data/os/openbsd.h"
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
#include "netbsd.h"
|
#include "data/os/netbsd.h"
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
#include "darwin.h" // strings.h
|
#include "data/os/darwin.h" // strings.h
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "update-cb.hh"
|
#include "update-cb.hh"
|
||||||
|
|
||||||
#ifdef BUILD_CURL
|
#ifdef BUILD_CURL
|
||||||
#include "ccurl_thread.h"
|
#include "data/network/ccurl_thread.h"
|
||||||
#endif /* BUILD_CURL */
|
#endif /* BUILD_CURL */
|
||||||
|
|
||||||
/* folds a string over top of itself, like so:
|
/* folds a string over top of itself, like so:
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
#include <optional>
|
#include <optional>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "setting.hh"
|
#include "lua/setting.hh"
|
||||||
#include "text_object.h"
|
#include "content/text_object.h"
|
||||||
|
|
||||||
char *readfile(const char *filename, int *total_read, char showerror);
|
char *readfile(const char *filename, int *total_read, char showerror);
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
#include "conky-imlib2.h"
|
#include "conky-imlib2.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "display-output.hh"
|
#include "output/display-output.hh"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "text_object.h"
|
#include "content/text_object.h"
|
||||||
|
|
||||||
#include <Imlib2.h>
|
#include <Imlib2.h>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
@ -35,8 +35,8 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
#include "x11-settings.h"
|
#include "lua/x11-settings.h"
|
||||||
#include "x11.h"
|
#include "output/x11.h"
|
||||||
|
|
||||||
struct image_list_s {
|
struct image_list_s {
|
||||||
char name[1024];
|
char name[1024];
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#ifndef _CONKY_IMBLI2_H_
|
#ifndef _CONKY_IMBLI2_H_
|
||||||
#define _CONKY_IMBLI2_H_
|
#define _CONKY_IMBLI2_H_
|
||||||
|
|
||||||
#include "setting.hh"
|
#include "lua/setting.hh"
|
||||||
#include "text_object.h"
|
#include "content/text_object.h"
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
64
src/conky.cc
64
src/conky.cc
@ -66,15 +66,15 @@
|
|||||||
#endif /* HAVE_DIRENT_H */
|
#endif /* HAVE_DIRENT_H */
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "text_object.h"
|
#include "content/text_object.h"
|
||||||
|
|
||||||
#ifdef BUILD_WAYLAND
|
#ifdef BUILD_WAYLAND
|
||||||
#include "wl.h"
|
#include "output/wl.h"
|
||||||
#endif /* BUILD_WAYLAND */
|
#endif /* BUILD_WAYLAND */
|
||||||
|
|
||||||
#ifdef BUILD_X11
|
#ifdef BUILD_X11
|
||||||
#include "x11-settings.h"
|
#include "lua/x11-settings.h"
|
||||||
#include "x11.h"
|
#include "output/x11.h"
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wvariadic-macros"
|
#pragma GCC diagnostic ignored "-Wvariadic-macros"
|
||||||
@ -101,57 +101,57 @@
|
|||||||
#endif /* BUILD_RSS */
|
#endif /* BUILD_RSS */
|
||||||
|
|
||||||
/* local headers */
|
/* local headers */
|
||||||
#include "colours.h"
|
#include "content/colours.hh"
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
#include "diskio.h"
|
#include "data/exec.h"
|
||||||
#include "exec.h"
|
#include "data/hardware/diskio.h"
|
||||||
#ifdef BUILD_GUI
|
#ifdef BUILD_GUI
|
||||||
#include "fonts.h"
|
#include "lua/fonts.h"
|
||||||
#include "gui.h"
|
#include "output/gui.h"
|
||||||
#endif /* BUILD_GUI */
|
#endif /* BUILD_GUI */
|
||||||
#include "fs.h"
|
#include "data/fs.h"
|
||||||
#ifdef BUILD_ICONV
|
#ifdef BUILD_ICONV
|
||||||
#include "iconv_tools.h"
|
#include "data/iconv_tools.h"
|
||||||
#endif /* BUILD_ICONV */
|
#endif /* BUILD_ICONV */
|
||||||
#include "llua.h"
|
#include "content/specials.h"
|
||||||
|
#include "content/temphelper.h"
|
||||||
|
#include "content/template.h"
|
||||||
|
#include "data/network/mail.h"
|
||||||
|
#include "data/network/net_stat.h"
|
||||||
|
#include "data/timeinfo.h"
|
||||||
|
#include "data/top.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "mail.h"
|
#include "lua/llua.h"
|
||||||
#include "nc.h"
|
#include "output/nc.h"
|
||||||
#include "net_stat.h"
|
|
||||||
#include "specials.h"
|
|
||||||
#include "temphelper.h"
|
|
||||||
#include "template.h"
|
|
||||||
#include "timeinfo.h"
|
|
||||||
#include "top.h"
|
|
||||||
|
|
||||||
#ifdef BUILD_MYSQL
|
#ifdef BUILD_MYSQL
|
||||||
#include "mysql.h"
|
#include "data/mysql.h"
|
||||||
#endif /* BUILD_MYSQL */
|
#endif /* BUILD_MYSQL */
|
||||||
#ifdef BUILD_NVIDIA
|
#ifdef BUILD_NVIDIA
|
||||||
#include "nvidia.h"
|
#include "data/hardware/nvidia.h"
|
||||||
#endif /* BUILD_NVIDIA */
|
#endif /* BUILD_NVIDIA */
|
||||||
#ifdef BUILD_CURL
|
#ifdef BUILD_CURL
|
||||||
#include "ccurl_thread.h"
|
#include "data/network/ccurl_thread.h"
|
||||||
#endif /* BUILD_CURL */
|
#endif /* BUILD_CURL */
|
||||||
|
|
||||||
#include "display-output.hh"
|
#include "lua/lua-config.hh"
|
||||||
#include "lua-config.hh"
|
#include "lua/setting.hh"
|
||||||
#include "setting.hh"
|
#include "output/display-output.hh"
|
||||||
|
|
||||||
/* check for OS and include appropriate headers */
|
/* check for OS and include appropriate headers */
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "linux.h"
|
#include "data/os/linux.h"
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include "freebsd.h"
|
#include "data/os/freebsd.h"
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__)
|
||||||
#include "dragonfly.h"
|
#include "data/os/dragonfly.h"
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include "openbsd.h"
|
#include "data/os/openbsd.h"
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
#include "netbsd.h"
|
#include "data/os/netbsd.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gradient.h"
|
#include "content/gradient.hh"
|
||||||
|
|
||||||
#ifdef BUILD_OLD_CONFIG
|
#ifdef BUILD_OLD_CONFIG
|
||||||
#include "convertconf.h"
|
#include "convertconf.h"
|
||||||
|
20
src/conky.h
20
src/conky.h
@ -41,9 +41,9 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "colours.h"
|
#include "content/colours.hh"
|
||||||
#include "common.h" /* at least for struct dns_data */
|
#include "common.h" /* at least for struct dns_data */
|
||||||
#include "luamm.hh"
|
#include "lua/luamm.hh"
|
||||||
|
|
||||||
#if defined(HAS_MCHECK_H)
|
#if defined(HAS_MCHECK_H)
|
||||||
#include <mcheck.h>
|
#include <mcheck.h>
|
||||||
@ -76,35 +76,35 @@ char *strndup(const char *s, size_t n);
|
|||||||
struct text_object;
|
struct text_object;
|
||||||
|
|
||||||
#ifdef BUILD_HDDTEMP
|
#ifdef BUILD_HDDTEMP
|
||||||
#include "hddtemp.h"
|
#include "data/hardware/hddtemp.h"
|
||||||
#endif /* BUILD_HDDTEMP */
|
#endif /* BUILD_HDDTEMP */
|
||||||
|
|
||||||
#ifdef BUILD_MOC
|
#ifdef BUILD_MOC
|
||||||
#include "moc.h"
|
#include "data/audio/moc.h"
|
||||||
#endif /* BUILD_MOC */
|
#endif /* BUILD_MOC */
|
||||||
|
|
||||||
#ifdef BUILD_MPD
|
#ifdef BUILD_MPD
|
||||||
#include "mpd.h"
|
#include "data/audio/mpd.h"
|
||||||
#endif /* BUILD_MPD */
|
#endif /* BUILD_MPD */
|
||||||
|
|
||||||
#ifdef BUILD_MYSQL
|
#ifdef BUILD_MYSQL
|
||||||
#include "mysql.h"
|
#include "data/mysql.h"
|
||||||
#endif /* BUILD_MYSQL */
|
#endif /* BUILD_MYSQL */
|
||||||
|
|
||||||
#ifdef BUILD_PORT_MONITORS
|
#ifdef BUILD_PORT_MONITORS
|
||||||
#include "tcp-portmon.h"
|
#include "data/network/tcp-portmon.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_XMMS2
|
#ifdef BUILD_XMMS2
|
||||||
#include "xmms2.h"
|
#include "data/audio/xmms2.h"
|
||||||
#endif /* BUILD_XMMS2 */
|
#endif /* BUILD_XMMS2 */
|
||||||
|
|
||||||
#ifdef BUILD_APCUPSD
|
#ifdef BUILD_APCUPSD
|
||||||
#include "apcupsd.h"
|
#include "data/hardware/apcupsd.h"
|
||||||
#endif /* BUILD_APCUPSD */
|
#endif /* BUILD_APCUPSD */
|
||||||
|
|
||||||
/* sony support */
|
/* sony support */
|
||||||
#include "sony.h"
|
#include "data/hardware/sony.h"
|
||||||
|
|
||||||
/* A size for temporary, static buffers to use when
|
/* A size for temporary, static buffers to use when
|
||||||
* one doesn't know what to choose. Defaults to 256. */
|
* one doesn't know what to choose. Defaults to 256. */
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
/* find the operand in the given expression
|
/* find the operand in the given expression
|
||||||
* returns the index of the first op character or -1 on error
|
* returns the index of the first op character or -1 on error
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
struct rgb {
|
struct rgb {
|
||||||
const char *name;
|
const char *name;
|
@ -27,9 +27,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "colours.h"
|
#include "colours.hh"
|
||||||
|
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <optional>
|
#include <optional>
|
@ -29,8 +29,8 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "core.h"
|
#include "../core.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "text_object.h"
|
#include "text_object.h"
|
||||||
|
|
||||||
struct combine_data {
|
struct combine_data {
|
@ -26,10 +26,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "gradient.h"
|
#include "gradient.hh"
|
||||||
#include "colours.h"
|
#include "../conky.h"
|
||||||
#include "conky.h"
|
#include "../logging.h"
|
||||||
#include "logging.h"
|
#include "colours.hh"
|
||||||
|
|
||||||
namespace conky {
|
namespace conky {
|
||||||
gradient_factory::gradient_factory(int width, Colour first_colour,
|
gradient_factory::gradient_factory(int width, Colour first_colour,
|
@ -31,7 +31,7 @@
|
|||||||
#define _GRADIENT_H
|
#define _GRADIENT_H
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "colours.h"
|
#include "colours.hh"
|
||||||
|
|
||||||
namespace conky {
|
namespace conky {
|
||||||
class gradient_factory {
|
class gradient_factory {
|
@ -27,11 +27,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "colours.h"
|
#include "../conky.h"
|
||||||
#include "conky.h"
|
#include "../core.h"
|
||||||
#include "core.h"
|
#include "../logging.h"
|
||||||
#include "display-output.hh"
|
#include "../output/display-output.hh"
|
||||||
#include "logging.h"
|
#include "colours.hh"
|
||||||
#include "specials.h"
|
#include "specials.h"
|
||||||
#include "text_object.h"
|
#include "text_object.h"
|
||||||
|
|
@ -26,14 +26,14 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#ifdef BUILD_GUI
|
#ifdef BUILD_GUI
|
||||||
#include "fonts.h"
|
#include "../lua/fonts.h"
|
||||||
#include "gui.h"
|
#include "../output/gui.h"
|
||||||
#endif /* BUILD_GUI */
|
#endif /* BUILD_GUI */
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "nc.h"
|
#include "../output/nc.h"
|
||||||
#include "specials.h"
|
#include "specials.h"
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -41,10 +41,10 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "colours.h"
|
#include "../common.h"
|
||||||
#include "common.h"
|
#include "../conky.h"
|
||||||
#include "conky.h"
|
#include "../output/display-output.hh"
|
||||||
#include "display-output.hh"
|
#include "colours.hh"
|
||||||
|
|
||||||
struct special_node *specials = nullptr;
|
struct special_node *specials = nullptr;
|
||||||
|
|
@ -30,7 +30,7 @@
|
|||||||
#define _SPECIALS_H
|
#define _SPECIALS_H
|
||||||
|
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include "colours.h"
|
#include "colours.hh"
|
||||||
|
|
||||||
/* special stuff in text_buffer */
|
/* special stuff in text_buffer */
|
||||||
|
|
@ -27,7 +27,7 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
conky::lua_traits<TEMP_UNIT>::Map conky::lua_traits<TEMP_UNIT>::map = {
|
conky::lua_traits<TEMP_UNIT>::Map conky::lua_traits<TEMP_UNIT>::map = {
|
@ -29,8 +29,8 @@
|
|||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
conky::simple_config_setting<std::string> _template[10] = {
|
conky::simple_config_setting<std::string> _template[10] = {
|
@ -30,8 +30,8 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
void gen_free_opaque(struct text_object *obj) {
|
void gen_free_opaque(struct text_object *obj) {
|
||||||
free_and_zero(obj->data.opaque);
|
free_and_zero(obj->data.opaque);
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "exec.h"
|
#include "../data/exec.h"
|
||||||
#include "specials.h" /* enum special_types */
|
#include "specials.h" /* enum special_types */
|
||||||
|
|
||||||
#include <cstdint> /* uint8_t */
|
#include <cstdint> /* uint8_t */
|
102
src/core.cc
102
src/core.cc
@ -30,100 +30,100 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
/* local headers */
|
/* local headers */
|
||||||
#include "algebra.h"
|
#include "content/algebra.h"
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
#include "bsdapm.h"
|
|
||||||
#include "build.h"
|
#include "build.h"
|
||||||
#include "colour-settings.h"
|
#include "lua/colour-settings.hh"
|
||||||
#include "colours.h"
|
#include "content/colours.hh"
|
||||||
#include "combine.h"
|
#include "content/combine.h"
|
||||||
#include "diskio.h"
|
#include "content/text_object.h"
|
||||||
#include "entropy.h"
|
#include "data/entropy.h"
|
||||||
#include "exec.h"
|
#include "data/exec.h"
|
||||||
#include "i8k.h"
|
#include "data/hardware/bsdapm.h"
|
||||||
#include "misc.h"
|
#include "data/hardware/diskio.h"
|
||||||
#include "proc.h"
|
#include "data/hardware/i8k.h"
|
||||||
#include "text_object.h"
|
#include "data/misc.h"
|
||||||
|
#include "data/proc.h"
|
||||||
#ifdef BUILD_IMLIB2
|
#ifdef BUILD_IMLIB2
|
||||||
#include "conky-imlib2.h"
|
#include "conky-imlib2.h"
|
||||||
#endif /* BUILD_IMLIB2 */
|
#endif /* BUILD_IMLIB2 */
|
||||||
#ifdef BUILD_MYSQL
|
#ifdef BUILD_MYSQL
|
||||||
#include "mysql.h"
|
#include "data/mysql.h"
|
||||||
#endif /* BUILD_MYSQL */
|
#endif /* BUILD_MYSQL */
|
||||||
#ifdef BUILD_ICAL
|
#ifdef BUILD_ICAL
|
||||||
#include "ical.h"
|
#include "data/ical.h"
|
||||||
#endif /* BUILD_ICAL */
|
#endif /* BUILD_ICAL */
|
||||||
#ifdef BUILD_IRC
|
#ifdef BUILD_IRC
|
||||||
#include "irc.h"
|
#include "data/network/irc.h"
|
||||||
#endif /* BUILD_IRC */
|
#endif /* BUILD_IRC */
|
||||||
#ifdef BUILD_GUI
|
#ifdef BUILD_GUI
|
||||||
#include "fonts.h"
|
#include "lua/fonts.h"
|
||||||
#include "gui.h"
|
#include "output/gui.h"
|
||||||
#endif /* BUILD_GUI */
|
#endif /* BUILD_GUI */
|
||||||
#include "fs.h"
|
#include "data/fs.h"
|
||||||
#ifdef BUILD_IBM
|
#ifdef BUILD_IBM
|
||||||
#include "ibm.h"
|
#include "data/hardware/ibm.h"
|
||||||
#include "smapi.h"
|
#include "data/hardware/smapi.h"
|
||||||
#endif /* BUILD_IBM */
|
#endif /* BUILD_IBM */
|
||||||
#ifdef BUILD_ICONV
|
#ifdef BUILD_ICONV
|
||||||
#include "iconv_tools.h"
|
#include "data/iconv_tools.h"
|
||||||
#endif /* BUILD_ICONV */
|
#endif /* BUILD_ICONV */
|
||||||
#include "llua.h"
|
#include "data/audio/mixer.h"
|
||||||
|
#include "data/network/mail.h"
|
||||||
|
#include "data/network/mboxscan.h"
|
||||||
|
#include "data/network/net_stat.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "mail.h"
|
#include "lua/llua.h"
|
||||||
#include "mboxscan.h"
|
#include "output/nc.h"
|
||||||
#include "mixer.h"
|
|
||||||
#include "nc.h"
|
|
||||||
#include "net_stat.h"
|
|
||||||
#ifdef BUILD_NVIDIA
|
#ifdef BUILD_NVIDIA
|
||||||
#include "nvidia.h"
|
#include "data/hardware/nvidia.h"
|
||||||
#endif /* BUILD_NVIDIA */
|
#endif /* BUILD_NVIDIA */
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "cpu.h"
|
#include "content/scroll.h"
|
||||||
#include "read_tcpip.h"
|
#include "content/specials.h"
|
||||||
#include "scroll.h"
|
#include "content/temphelper.h"
|
||||||
#include "specials.h"
|
#include "content/template.h"
|
||||||
#include "tailhead.h"
|
#include "data/hardware/cpu.h"
|
||||||
#include "temphelper.h"
|
#include "data/network/read_tcpip.h"
|
||||||
#include "template.h"
|
#include "data/tailhead.h"
|
||||||
#include "timeinfo.h"
|
#include "data/timeinfo.h"
|
||||||
#include "top.h"
|
#include "data/top.h"
|
||||||
#include "user.h"
|
#include "data/user.h"
|
||||||
#include "users.h"
|
#include "data/users.h"
|
||||||
#ifdef BUILD_CURL
|
#ifdef BUILD_CURL
|
||||||
#include "ccurl_thread.h"
|
#include "data/network/ccurl_thread.h"
|
||||||
#endif /* BUILD_CURL */
|
#endif /* BUILD_CURL */
|
||||||
#ifdef BUILD_RSS
|
#ifdef BUILD_RSS
|
||||||
#include "rss.h"
|
#include "data/network/rss.h"
|
||||||
#endif /* BUILD_RSS */
|
#endif /* BUILD_RSS */
|
||||||
#ifdef BUILD_AUDACIOUS
|
#ifdef BUILD_AUDACIOUS
|
||||||
#include "audacious.h"
|
#include "data/audio/audacious.h"
|
||||||
#endif /* BUILD_AUDACIOUS */
|
#endif /* BUILD_AUDACIOUS */
|
||||||
#ifdef BUILD_CMUS
|
#ifdef BUILD_CMUS
|
||||||
#include "cmus.h"
|
#include "data/audio/cmus.h"
|
||||||
#endif /* BUILD_CMUS */
|
#endif /* BUILD_CMUS */
|
||||||
#ifdef BUILD_JOURNAL
|
#ifdef BUILD_JOURNAL
|
||||||
#include "journal.h"
|
#include "data/os/journal.h"
|
||||||
#endif /* BUILD_JOURNAL */
|
#endif /* BUILD_JOURNAL */
|
||||||
#ifdef BUILD_PULSEAUDIO
|
#ifdef BUILD_PULSEAUDIO
|
||||||
#include "pulseaudio.h"
|
#include "data/audio/pulseaudio.h"
|
||||||
#endif /* BUILD_PULSEAUDIO */
|
#endif /* BUILD_PULSEAUDIO */
|
||||||
#ifdef BUILD_INTEL_BACKLIGHT
|
#ifdef BUILD_INTEL_BACKLIGHT
|
||||||
#include "intel_backlight.h"
|
#include "data/hardware/intel_backlight.h"
|
||||||
#endif /* BUILD_INTEL_BACKLIGHT */
|
#endif /* BUILD_INTEL_BACKLIGHT */
|
||||||
|
|
||||||
/* check for OS and include appropriate headers */
|
/* check for OS and include appropriate headers */
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "linux.h"
|
#include "data/os/linux.h"
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include "freebsd.h"
|
#include "data/os/freebsd.h"
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__)
|
||||||
#include "dragonfly.h"
|
#include "data/os/dragonfly.h"
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include "openbsd.h"
|
#include "data/os/openbsd.h"
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
#include "darwin.h"
|
#include "data/os/darwin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STRNDUP_ARG strndup(arg ? arg : "", text_buffer_size.get(*state))
|
#define STRNDUP_ARG strndup(arg ? arg : "", text_buffer_size.get(*state))
|
||||||
|
@ -27,9 +27,9 @@
|
|||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "audacious.h"
|
#include "audacious.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#ifdef NEW_AUDACIOUS_FOUND
|
#ifdef NEW_AUDACIOUS_FOUND
|
@ -20,9 +20,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct cmus_result {
|
struct cmus_result {
|
@ -34,7 +34,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libmpdclient.h"
|
#include "libmpdclient.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
@ -31,10 +31,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "specials.h"
|
#include "../../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#ifdef HAVE_SOUNDCARD_H
|
#ifdef HAVE_SOUNDCARD_H
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
@ -20,9 +20,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct moc_result {
|
struct moc_result {
|
@ -29,11 +29,11 @@
|
|||||||
#include "mpd.h"
|
#include "mpd.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "libmpdclient.h"
|
#include "libmpdclient.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "timeinfo.h"
|
#include "../timeinfo.h"
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
@ -30,13 +30,13 @@
|
|||||||
#include "pulseaudio.h"
|
#include "pulseaudio.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "common.h"
|
#include "../../common.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "core.h"
|
#include "../../core.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "specials.h"
|
#include "../../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
struct pulseaudio_default_results get_result_copy();
|
struct pulseaudio_default_results get_result_copy();
|
||||||
|
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include <pulse/pulseaudio.h>
|
#include <pulse/pulseaudio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
void init_pulseaudio(struct text_object *obj);
|
void init_pulseaudio(struct text_object *obj);
|
||||||
void free_pulseaudio(struct text_object *obj);
|
void free_pulseaudio(struct text_object *obj);
|
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
|
|
||||||
xmmsc_connection_t *xmms2_conn;
|
xmmsc_connection_t *xmms2_conn;
|
||||||
|
|
@ -27,7 +27,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
#include "luamm.hh"
|
#include "../lua/luamm.hh"
|
||||||
|
|
||||||
namespace conky {
|
namespace conky {
|
||||||
|
|
@ -30,26 +30,26 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
|
|
||||||
/* check for OS and include appropriate headers */
|
/* check for OS and include appropriate headers */
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "linux.h"
|
#include "os/linux.h"
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||||
#include "freebsd.h"
|
#include "os/freebsd.h"
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__)
|
||||||
#include "dragonfly.h"
|
#include "os/dragonfly.h"
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include "openbsd.h"
|
#include "os/openbsd.h"
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
#include "netbsd.h"
|
#include "os/netbsd.h"
|
||||||
#elif defined(__sun)
|
#elif defined(__sun)
|
||||||
#include "solaris.h"
|
#include "os/solaris.h"
|
||||||
#elif defined(__HAIKU__)
|
#elif defined(__HAIKU__)
|
||||||
#include "haiku.h"
|
#include "os/haiku.h"
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
#include "darwin.h"
|
#include "os/darwin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct _entropy {
|
struct _entropy {
|
@ -35,12 +35,12 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "core.h"
|
#include "../core.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "specials.h"
|
#include "../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
#include "update-cb.hh"
|
#include "../update-cb.hh"
|
||||||
|
|
||||||
struct execi_data {
|
struct execi_data {
|
||||||
float interval{0};
|
float interval{0};
|
@ -30,7 +30,7 @@
|
|||||||
#ifndef _EXEC_H
|
#ifndef _EXEC_H
|
||||||
#define _EXEC_H
|
#define _EXEC_H
|
||||||
|
|
||||||
#include "update-cb.hh"
|
#include "../update-cb.hh"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A callback that executes a command and stores the output as a std::string.
|
* A callback that executes a command and stores the output as a std::string.
|
@ -33,10 +33,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "specials.h"
|
#include "../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
|
|
||||||
#ifdef HAVE_SYS_STATFS_H
|
#ifdef HAVE_SYS_STATFS_H
|
||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
@ -48,17 +48,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__FreeBSD__)
|
#if defined(__FreeBSD__)
|
||||||
#include "freebsd.h"
|
#include "os/freebsd.h"
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
#include "openbsd.h"
|
#include "os/openbsd.h"
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__)
|
||||||
#include "dragonfly.h"
|
#include "os/dragonfly.h"
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
#include "netbsd.h"
|
#include "os/netbsd.h"
|
||||||
#elif defined(__HAIKU__)
|
#elif defined(__HAIKU__)
|
||||||
#include "haiku.h"
|
#include "os/haiku.h"
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
#elif defined(__APPLE__) && defined(__MACH__)
|
||||||
#include "darwin.h"
|
#include "os/darwin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) && !defined(__OpenBSD__) && \
|
#if !defined(HAVE_STRUCT_STATFS_F_FSTYPENAME) && !defined(__OpenBSD__) && \
|
@ -30,7 +30,7 @@
|
|||||||
#ifndef _FS_H
|
#ifndef _FS_H
|
||||||
#define _FS_H
|
#define _FS_H
|
||||||
|
|
||||||
#include "conky.h" /* DEFAULT_TEXT_BUFFER_SIZE */
|
#include "../conky.h" /* DEFAULT_TEXT_BUFFER_SIZE */
|
||||||
|
|
||||||
/* needed here and by fs.c */
|
/* needed here and by fs.c */
|
||||||
struct fs_stat {
|
struct fs_stat {
|
@ -22,9 +22,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "apcupsd.h"
|
#include "apcupsd.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
@ -31,8 +31,8 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#if defined(__OpenBSD__)
|
#if defined(__OpenBSD__)
|
||||||
#include <machine/apmvar.h>
|
#include <machine/apmvar.h>
|
@ -34,8 +34,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
#define CPU_FEATURE(x, z) __asm__ __volatile__("cpuid" : "=a"(z) : "a"(x))
|
#define CPU_FEATURE(x, z) __asm__ __volatile__("cpuid" : "=a"(z) : "a"(x))
|
@ -31,13 +31,13 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "common.h"
|
#include "../../common.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h" /* text_buffer_size */
|
#include "../../conky.h" /* text_buffer_size */
|
||||||
#include "core.h"
|
#include "../../core.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "specials.h"
|
#include "../../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
/* this is the root of all per disk stats,
|
/* this is the root of all per disk stats,
|
||||||
* also containing the totals. */
|
* also containing the totals. */
|
@ -34,10 +34,10 @@
|
|||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "temphelper.h"
|
#include "../../content/temphelper.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#define BUFLEN 512
|
#define BUFLEN 512
|
||||||
|
|
@ -31,10 +31,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "temphelper.h"
|
#include "../../content/temphelper.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
struct _i8k {
|
struct _i8k {
|
||||||
char *version;
|
char *version;
|
@ -35,9 +35,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "temphelper.h"
|
#include "../../content/temphelper.h"
|
||||||
|
|
||||||
static int ibm_acpi_temps[8];
|
static int ibm_acpi_temps[8];
|
||||||
|
|
@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "intel_backlight.h"
|
#include "intel_backlight.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
|
|
||||||
#define FS_BRIGHTNESS_MAX "/sys/class/backlight/intel_backlight/max_brightness"
|
#define FS_BRIGHTNESS_MAX "/sys/class/backlight/intel_backlight/max_brightness"
|
||||||
#define FS_BRIGHTNESS_CURRENT "/sys/class/backlight/intel_backlight/brightness"
|
#define FS_BRIGHTNESS_CURRENT "/sys/class/backlight/intel_backlight/brightness"
|
@ -28,8 +28,8 @@
|
|||||||
#ifndef _INTEL_BACKLIGHT_H
|
#ifndef _INTEL_BACKLIGHT_H
|
||||||
#define _INTEL_BACKLIGHT_H
|
#define _INTEL_BACKLIGHT_H
|
||||||
|
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
void init_intel_backlight(struct text_object *obj);
|
void init_intel_backlight(struct text_object *obj);
|
||||||
void free_intel_backlight(struct text_object *obj);
|
void free_intel_backlight(struct text_object *obj);
|
@ -96,12 +96,12 @@
|
|||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include "NVCtrl/NVCtrl.h"
|
#include "NVCtrl/NVCtrl.h"
|
||||||
#include "NVCtrl/NVCtrlLib.h"
|
#include "NVCtrl/NVCtrlLib.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "temphelper.h"
|
#include "../../content/temphelper.h"
|
||||||
|
|
||||||
// Current implementation uses X11 specific system utils
|
// Current implementation uses X11 specific system utils
|
||||||
#include "x11.h"
|
#include "../../output/x11.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
@ -30,7 +30,7 @@
|
|||||||
#ifndef NVIDIA_CONKY_H
|
#ifndef NVIDIA_CONKY_H
|
||||||
#define NVIDIA_CONKY_H
|
#define NVIDIA_CONKY_H
|
||||||
|
|
||||||
#include "specials.h"
|
#include "../../content/specials.h"
|
||||||
|
|
||||||
int set_nvidia_query(struct text_object *, const char *, text_node_t);
|
int set_nvidia_query(struct text_object *, const char *, text_node_t);
|
||||||
void print_nvidia_value(struct text_object *, char *, unsigned int);
|
void print_nvidia_value(struct text_object *, char *, unsigned int);
|
@ -26,9 +26,9 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "conky.h" /* text_buffer_size, PACKAGE_NAME, maybe more */
|
#include "../../conky.h" /* text_buffer_size, PACKAGE_NAME, maybe more */
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "temphelper.h"
|
#include "../../content/temphelper.h"
|
||||||
|
|
||||||
#define SYS_SMAPI_PATH "/sys/devices/platform/smapi"
|
#define SYS_SMAPI_PATH "/sys/devices/platform/smapi"
|
||||||
|
|
@ -34,9 +34,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#define SONY_LAPTOP_DIR "/sys/devices/platform/sony-laptop"
|
#define SONY_LAPTOP_DIR "/sys/devices/platform/sony-laptop"
|
||||||
|
|
@ -23,8 +23,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libical/ical.h>
|
#include <libical/ical.h>
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
struct ical_event {
|
struct ical_event {
|
||||||
icaltimetype start;
|
icaltimetype start;
|
@ -32,8 +32,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
|
|
||||||
#define ICONV_CODEPAGE_LENGTH 20
|
#define ICONV_CODEPAGE_LENGTH 20
|
||||||
|
|
@ -34,11 +34,11 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "core.h"
|
#include "../core.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
#include "specials.h"
|
#include "../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
|
|
||||||
static inline void read_file(const char *data, char *buf, const int size) {
|
static inline void read_file(const char *data, char *buf, const int size) {
|
||||||
FILE *fp;
|
FILE *fp;
|
@ -31,7 +31,7 @@
|
|||||||
#ifndef _MISC_H
|
#ifndef _MISC_H
|
||||||
#define _MISC_H
|
#define _MISC_H
|
||||||
|
|
||||||
#include "text_object.h"
|
#include "../content/text_object.h"
|
||||||
|
|
||||||
void print_cat(struct text_object *, char *, unsigned int);
|
void print_cat(struct text_object *, char *, unsigned int);
|
||||||
void print_catp(struct text_object *, char *, unsigned int);
|
void print_catp(struct text_object *, char *, unsigned int);
|
@ -27,12 +27,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mysql.h"
|
#include "mysql.h"
|
||||||
#include "conky.h"
|
#include "../conky.h"
|
||||||
#include "logging.h"
|
#include "../logging.h"
|
||||||
|
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
|
|
||||||
#include "setting.hh"
|
#include "../lua/setting.hh"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
conky::simple_config_setting<std::string> host("mysql_host", "localhost",
|
conky::simple_config_setting<std::string> host("mysql_host", "localhost",
|
@ -25,9 +25,9 @@
|
|||||||
#include "ccurl_thread.h"
|
#include "ccurl_thread.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#include <assert.h>
|
#include <assert.h>
|
@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
namespace priv {
|
namespace priv {
|
||||||
// factored out stuff that does not depend on the template parameters
|
// factored out stuff that does not depend on the template parameters
|
@ -26,9 +26,9 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
struct ll_text {
|
struct ll_text {
|
||||||
char *text;
|
char *text;
|
@ -31,10 +31,10 @@
|
|||||||
|
|
||||||
#include "mail.h"
|
#include "mail.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "../../common.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include "update-cb.hh"
|
#include "../../update-cb.hh"
|
||||||
|
|
||||||
struct local_mail_s {
|
struct local_mail_s {
|
||||||
char *mbox;
|
char *mbox;
|
@ -25,7 +25,7 @@
|
|||||||
#ifndef _MAIL_H
|
#ifndef _MAIL_H
|
||||||
#define _MAIL_H
|
#define _MAIL_H
|
||||||
|
|
||||||
#include "setting.hh"
|
#include "../../lua/setting.hh"
|
||||||
|
|
||||||
void parse_local_mail_args(struct text_object *, const char *);
|
void parse_local_mail_args(struct text_object *, const char *);
|
||||||
|
|
@ -31,10 +31,10 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "mail.h"
|
#include "mail.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#define FROM_WIDTH 10
|
#define FROM_WIDTH 10
|
||||||
#define SUBJECT_WIDTH 22
|
#define SUBJECT_WIDTH 22
|
@ -34,11 +34,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "net/if.h"
|
#include "net/if.h"
|
||||||
#include "specials.h"
|
#include "../../content/specials.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
#if defined(__sun)
|
#if defined(__sun)
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#endif
|
#endif
|
||||||
@ -51,7 +51,7 @@
|
|||||||
#endif /* SOCK_CLOEXEC */
|
#endif /* SOCK_CLOEXEC */
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include "linux.h"
|
#include "../os/linux.h"
|
||||||
#else
|
#else
|
||||||
static char e_iface[50] = "empty";
|
static char e_iface[50] = "empty";
|
||||||
static char interfaces_arr[MAX_NET_INTERFACES][64] = {""};
|
static char interfaces_arr[MAX_NET_INTERFACES][64] = {""};
|
@ -20,8 +20,8 @@
|
|||||||
#include "prss.h"
|
#include "prss.h"
|
||||||
#include <libxml/parser.h>
|
#include <libxml/parser.h>
|
||||||
#include <libxml/tree.h>
|
#include <libxml/tree.h>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
|
|
||||||
#ifndef PARSE_OPTIONS
|
#ifndef PARSE_OPTIONS
|
||||||
#define PARSE_OPTIONS 0
|
#define PARSE_OPTIONS 0
|
@ -36,9 +36,9 @@
|
|||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
#ifndef SOCK_CLOEXEC
|
#ifndef SOCK_CLOEXEC
|
||||||
#define SOCK_CLOEXEC O_CLOEXEC
|
#define SOCK_CLOEXEC O_CLOEXEC
|
@ -28,10 +28,10 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include "ccurl_thread.h"
|
#include "ccurl_thread.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "prss.h"
|
#include "prss.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
struct rss_data {
|
struct rss_data {
|
||||||
char uri[128];
|
char uri[128];
|
@ -18,10 +18,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "tcp-portmon.h"
|
#include "tcp-portmon.h"
|
||||||
#include "conky.h"
|
#include "../../conky.h"
|
||||||
#include "libtcp-portmon.h"
|
#include "libtcp-portmon.h"
|
||||||
#include "logging.h"
|
#include "../../logging.h"
|
||||||
#include "text_object.h"
|
#include "../../content/text_object.h"
|
||||||
|
|
||||||
static tcp_port_monitor_collection_t *pmc = nullptr;
|
static tcp_port_monitor_collection_t *pmc = nullptr;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user