summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/config.h b/config.h
deleted file mode 100644
index 452db9c..0000000
--- a/config.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#pragma once
-
-#include "commands.h"
-#include <X11/X.h>
-#include <X11/keysym.h>
-
-#include <string>
-#include <vector>
-
-struct Workspace
-{
- std::string name;
- int* screenPreferences;
- int screenPreferencesc;
-};
-
-#define COMMAND(X) \
- const void X (const CommandArg* argv)
-
-class Config
-{
-public:
- Config(CommandsModule& commandsModule);
- ~Config();
- void free();
-
- std::vector<Err> loadFromFile(std::string path);
- std::vector<Err> reloadFile();
-
- // Main
- int gaps;
- int outerGaps;
- std::string logFile;
-
- // Workspaces
- std::vector<Workspace> workspaces;
- int numWS;
- bool loaded = false;
-
- // Binds
- bool swapSuperAlt;
-
- // Config Commands
- COMMAND(gapsCmd);
- COMMAND(outerGapsCmd);
- COMMAND(logFileCmd);
- COMMAND(addWorkspaceCmd);
- COMMAND(swapSuperAltCmd);
-
-private:
- CommandsModule& commandsModule;
- std::string file;
-};