kranewm

An ICCCM & EWMH compliant X11 reparenting, dynamic window manager, written in C++
git clone git://git.deurzen.net/kranewm
Log | Files | Refs | LICENSE

config.hh (961B)


      1 #ifndef __CONFIG_H_GUARD__
      2 #define __CONFIG_H_GUARD__
      3 
      4 #include "search.hh"
      5 #include "rules.hh"
      6 
      7 #include <string>
      8 #include <vector>
      9 
     10 struct Config
     11 {
     12 #ifdef DEBUG
     13     static constexpr bool debugging = true;
     14 #else
     15     static constexpr bool debugging = false;
     16 #endif
     17 
     18 #ifdef ENABLE_IPC
     19     static constexpr bool ipc_enabled = true;
     20 #else
     21     static constexpr bool ipc_enabled = false;
     22 #endif
     23 
     24     Config();
     25     ~Config();
     26 
     27     Config(const Config&) = delete;
     28     Config(Config&&) = delete;
     29     Config& operator=(const Config&) = delete;
     30     Config& operator=(Config&&) = delete;
     31 
     32     std::string directory = "$HOME/.config";
     33     std::string blocking_autostart = "blocking_autostart";
     34     std::string nonblocking_autostart = "nonblocking_autostart";
     35 
     36     std::vector<SearchSelector_ptr> ignored_producers;
     37     std::vector<SearchSelector_ptr> ignored_consumers;
     38 
     39     std::vector<std::tuple<SearchSelector_ptr, Rules>> default_rules;
     40 
     41 };
     42 
     43 #endif//__CONFIG_H_GUARD__