2016-05-31 03:58:58 +00:00
|
|
|
#pragma once
|
2016-05-19 14:41:06 +00:00
|
|
|
|
2017-01-11 02:07:28 +00:00
|
|
|
#include <cstdio>
|
|
|
|
#include <string>
|
2016-11-20 22:04:31 +00:00
|
|
|
#include <vector>
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2019-10-28 00:35:18 +00:00
|
|
|
extern const char* const APP_NAME;
|
|
|
|
extern const char* const APP_VERSION;
|
2016-05-24 04:30:06 +00:00
|
|
|
|
2016-06-27 19:52:21 +00:00
|
|
|
#cmakedefine01 ENABLE_ALSA
|
|
|
|
#cmakedefine01 ENABLE_MPD
|
|
|
|
#cmakedefine01 ENABLE_NETWORK
|
2018-06-19 03:16:09 +00:00
|
|
|
#cmakedefine01 WITH_LIBNL
|
2016-06-27 19:52:21 +00:00
|
|
|
#cmakedefine01 ENABLE_I3
|
2016-12-19 21:01:37 +00:00
|
|
|
#cmakedefine01 ENABLE_CURL
|
2017-09-08 03:27:21 +00:00
|
|
|
#cmakedefine01 ENABLE_PULSEAUDIO
|
2016-05-19 14:41:06 +00:00
|
|
|
|
2016-11-30 11:46:26 +00:00
|
|
|
#cmakedefine01 WITH_XRANDR
|
|
|
|
#cmakedefine01 WITH_XCOMPOSITE
|
|
|
|
#cmakedefine01 WITH_XKB
|
2017-01-20 01:25:54 +00:00
|
|
|
#cmakedefine01 WITH_XRM
|
2017-09-06 06:35:29 +00:00
|
|
|
#cmakedefine01 WITH_XCURSOR
|
2017-01-13 02:52:56 +00:00
|
|
|
|
|
|
|
#if WITH_XRANDR
|
2017-01-26 16:17:02 +00:00
|
|
|
#cmakedefine01 WITH_XRANDR_MONITORS
|
2017-01-13 02:52:56 +00:00
|
|
|
#else
|
2017-01-26 16:17:02 +00:00
|
|
|
#define WITH_XRANDR_MONITORS 0
|
2017-01-13 02:52:56 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if WITH_XKB
|
2017-01-26 16:17:02 +00:00
|
|
|
#cmakedefine01 ENABLE_XKEYBOARD
|
2017-01-13 02:52:56 +00:00
|
|
|
#else
|
|
|
|
#define ENABLE_XKEYBOARD 0
|
|
|
|
#endif
|
|
|
|
|
2016-11-30 09:06:16 +00:00
|
|
|
#cmakedefine XPP_EXTENSION_LIST @XPP_EXTENSION_LIST@
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-11-02 19:22:45 +00:00
|
|
|
#cmakedefine DEBUG_LOGGER
|
2018-03-31 00:02:12 +00:00
|
|
|
|
|
|
|
#if DEBUG
|
2017-01-19 04:38:42 +00:00
|
|
|
#cmakedefine DEBUG_LOGGER_VERBOSE
|
2016-11-25 03:10:26 +00:00
|
|
|
#cmakedefine DEBUG_HINTS
|
2017-01-13 10:04:43 +00:00
|
|
|
#cmakedefine DEBUG_WHITESPACE
|
2017-01-19 04:38:42 +00:00
|
|
|
#cmakedefine DEBUG_SHADED
|
|
|
|
#cmakedefine DEBUG_FONTCONFIG
|
|
|
|
#endif
|
2016-10-25 11:10:34 +00:00
|
|
|
|
2017-01-13 00:14:50 +00:00
|
|
|
static const size_t EVENT_SIZE = 64;
|
2016-12-05 19:41:00 +00:00
|
|
|
|
2016-12-20 04:05:43 +00:00
|
|
|
static const int SIGN_PRIORITY_CONTROLLER{1};
|
|
|
|
static const int SIGN_PRIORITY_SCREEN{2};
|
|
|
|
static const int SIGN_PRIORITY_BAR{3};
|
|
|
|
static const int SIGN_PRIORITY_RENDERER{4};
|
|
|
|
static const int SIGN_PRIORITY_TRAY{5};
|
2016-12-05 19:41:00 +00:00
|
|
|
|
2019-10-28 08:56:19 +00:00
|
|
|
extern const int SINK_PRIORITY_BAR;
|
|
|
|
extern const int SINK_PRIORITY_SCREEN;
|
|
|
|
extern const int SINK_PRIORITY_TRAY;
|
|
|
|
extern const int SINK_PRIORITY_MODULE;
|
2016-12-03 12:00:40 +00:00
|
|
|
|
2019-10-28 00:35:18 +00:00
|
|
|
extern const char* const ALSA_SOUNDCARD;
|
|
|
|
extern const char* const BSPWM_SOCKET_PATH;
|
|
|
|
extern const char* const BSPWM_STATUS_PREFIX;
|
|
|
|
extern const char* const CONNECTION_TEST_IP;
|
|
|
|
extern const char* const PATH_ADAPTER;
|
|
|
|
extern const char* const PATH_BACKLIGHT;
|
|
|
|
extern const char* const PATH_BATTERY;
|
|
|
|
extern const char* const PATH_CPU_INFO;
|
|
|
|
extern const char* const PATH_MEMORY_INFO;
|
|
|
|
extern const char* const PATH_MESSAGING_FIFO;
|
|
|
|
extern const char* const PATH_TEMPERATURE_INFO;
|
2019-10-28 08:56:19 +00:00
|
|
|
extern const char* const WIRELESS_LIB;
|
2019-10-28 00:35:18 +00:00
|
|
|
|
2019-10-28 08:56:19 +00:00
|
|
|
bool version_details(const std::vector<std::string>& args);
|
2019-10-28 00:35:18 +00:00
|
|
|
|
2019-10-28 08:56:19 +00:00
|
|
|
void print_build_info(bool extended = false);
|
2016-06-15 03:32:35 +00:00
|
|
|
|
|
|
|
// vim:ft=cpp
|