diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-01 12:53:13 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-01 12:53:13 +1200 |
| commit | 01bc6a33eb235cd10851e2c31b99e6840603ca7d (patch) | |
| tree | 2af16074f305328b66e3c2bc731b8245b718a7b6 /config.cpp | |
| parent | 6b3dff404248bcf03e0bf0463a8c53d8918f7eec (diff) | |
| download | YATwm-01bc6a33eb235cd10851e2c31b99e6840603ca7d.tar.gz YATwm-01bc6a33eb235cd10851e2c31b99e6840603ca7d.zip | |
IT WORKS!!!!!!
The new config commands system works, finally able to run this as a
test and it works!!!!!.
Still more to be done but at least it works.
Diffstat (limited to 'config.cpp')
| -rw-r--r-- | config.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -22,44 +22,6 @@ using std::string; // For testing using std::cout, std::endl; -const void Config::exit(const CommandArg* argv) -{ - cout << "exit called" << endl; -} -const void Config::spawn_once(const CommandArg* argv) -{ - if(loaded) - return; - if(fork() == 0) - { - int null = open("/dev/null", O_WRONLY); - dup2(null, 0); - dup2(null, 1); - dup2(null, 2); - system(argv[0].str); - exit(0); - } -} - -const void Config::changeWS(const CommandArg* argv) -{ - cout << "changeWS called" << endl; -} -const void Config::wToWS(const CommandArg* argv) -{ - cout << "wToWS called" << endl; -} -const void Config::focChange(const CommandArg* argv) -{ - cout << "focChange called" << endl; -} -const void Config::reload(const CommandArg* argv) -{ - // Note: this is kinda broken cos it doesn't ungrab keys, i'll do that later. - cout << "Reloading config" << endl; - reloadFile(); -} - const void Config::gapsCmd(const CommandArg* argv) { gaps = argv[0].num; @@ -86,10 +48,6 @@ const void Config::addWorkspaceCmd(const CommandArg* argv) Config::Config(CommandsModule& commandsModule) : commandsModule(commandsModule) { - //Register commands for keybinds - commandsModule.addCommand("spawn_once", &Config::spawn_once, 1, {STR_REST}, this); - commandsModule.addCommand("reload", &Config::reload, 0, {}, this); - //Register commands for config commandsModule.addCommand("gaps", &Config::gapsCmd, 1, {NUM}, this); commandsModule.addCommand("outergaps", &Config::outerGapsCmd, 1, {NUM}, this); |
