diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:54:37 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-10-01 14:54:37 +1300 |
| commit | 915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5 (patch) | |
| tree | 0d7a7569ab5fc30c90d5df91a54d312c764cf328 /config.h | |
| parent | f998705c5a0e50021875a811537962083b73ed26 (diff) | |
| download | YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.tar.gz YATwm-915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5.zip | |
Restructure
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 53 |
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; -}; |
