2016-06-15 03:32:35 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2016-10-11 01:01:12 +00:00
|
|
|
#include "config.hpp"
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
#define POLYBAR_NS \
|
|
|
|
namespace polybar { \
|
2016-06-15 03:32:35 +00:00
|
|
|
inline namespace v2_0_0 {
|
2016-11-19 05:22:44 +00:00
|
|
|
#define POLYBAR_NS_END \
|
2016-11-25 07:42:31 +00:00
|
|
|
} \
|
2016-06-15 03:32:35 +00:00
|
|
|
}
|
2016-11-19 05:22:44 +00:00
|
|
|
#define POLYBAR_NS_PATH "polybar::v2_0_0"
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-11-20 22:04:31 +00:00
|
|
|
#ifndef PIPE_READ
|
2016-06-15 03:32:35 +00:00
|
|
|
#define PIPE_READ 0
|
2016-11-20 22:04:31 +00:00
|
|
|
#endif
|
|
|
|
#ifndef PIPE_WRITE
|
2016-06-15 03:32:35 +00:00
|
|
|
#define PIPE_WRITE 1
|
2016-11-20 22:04:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef STDOUT_FILENO
|
|
|
|
#define STDOUT_FILENO 1
|
|
|
|
#endif
|
|
|
|
#ifndef STDERR_FILENO
|
|
|
|
#define STDERR_FILENO 2
|
|
|
|
#endif
|
2016-06-15 03:32:35 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
#include "debug.hpp"
|
|
|
|
#endif
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS
|
2016-06-15 03:32:35 +00:00
|
|
|
|
2016-10-29 04:48:51 +00:00
|
|
|
namespace placeholders = std::placeholders;
|
2016-06-15 03:32:35 +00:00
|
|
|
|
|
|
|
using std::string;
|
|
|
|
using std::stringstream;
|
|
|
|
using std::size_t;
|
2016-10-25 05:10:03 +00:00
|
|
|
using std::move;
|
2016-06-15 03:32:35 +00:00
|
|
|
using std::bind;
|
|
|
|
using std::forward;
|
2016-10-29 04:48:51 +00:00
|
|
|
using std::pair;
|
2016-06-15 03:32:35 +00:00
|
|
|
using std::function;
|
|
|
|
using std::shared_ptr;
|
|
|
|
using std::unique_ptr;
|
|
|
|
using std::make_unique;
|
|
|
|
using std::make_shared;
|
|
|
|
using std::make_pair;
|
|
|
|
using std::array;
|
|
|
|
using std::vector;
|
|
|
|
using std::to_string;
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS_END
|