polybar-dwm/include/modules/meta/inotify_module.hpp

28 lines
447 B
C++
Raw Normal View History

2016-11-20 22:04:31 +00:00
#pragma once
#include "components/builder.hpp"
#include "modules/meta/base.hpp"
POLYBAR_NS
namespace modules {
template <class Impl>
class inotify_module : public module<Impl> {
public:
using module<Impl>::module;
void start();
protected:
void runner();
void watch(string path, int mask = IN_ALL_EVENTS);
void idle();
void poll_events();
private:
map<string, int> m_watchlist;
};
}
POLYBAR_NS_END