1. Micah Nordland
  2. Mirror

Source

Mirror / include / config.h

#ifndef CONFIG_H
#define CONFIG_H

//If you got here looking for how to configure Mirror, look in src/config.cpp

#include <tuple>
#include <cstdint>
#include <string>
#include <vector>

#include <xcb/xcb.h>
#include <X11/keysym.h>
#include <X11/XF86keysym.h>


typedef std::tuple<uint32_t, xcb_keysym_t, std::string> AppKeyBind;

class Config
{
    public:
        Config();
        ~Config();
        
        //tag settings
        int numberOfTags;

        //keybind stuff
        uint32_t commandMods;
        xcb_keysym_t commandKey;

        uint32_t interactMods;
        xcb_keysym_t interactKey;

        uint32_t tagSwitchMods;
        xcb_keysym_t prevTagKey;
        xcb_keysym_t nextTagKey;

        uint32_t closeFocusedMods;
        xcb_keysym_t closeFocusedKey;
        
        uint32_t quitMods;
        xcb_keysym_t quitKey;
        
        std::vector<AppKeyBind> appKeyBinds;
        
        std::vector<AppKeyBind> globalKeyBinds;
    };

#endif //CONFIG_H