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