feat: add default config path #4

Merged
t.behrendt merged 6 commits from feat-add-default-config-path into main 2025-12-27 13:29:53 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit e8891983d9 - Show all commits

View File

@@ -12,7 +12,7 @@ For info that with "EVIOCGRAB" the keyboard events can be consumed exclusively b
## Configuration
The configuration can be provided by either specifying a config file path via the `-c` parameter. If no parameter is provided, the default config path under `$HOME/.config/usbMakroBoard.yaml` is used.
The configuration can be provided by either specifying a config file path via the `-c` parameter. If no parameter is provided, the default config path under `$HOME/.config/UsbMakroBoard.yaml` is used.
Find the config schema in [schemas/config.schema.json](./schemas/config.schema.json) as well as a default config in [config.yaml](./config.yaml).

View File

@@ -67,8 +67,8 @@ std::string getConfigPathFromCliArguments(int argc, char *argv[])
configPath = optarg;
break;
default:
std::cout << "No config path provided. Using default config path: $HOME/.config/usbMakroBoard.yaml\n";
configPath = "$HOME/.config/usbMakroBoard.yaml";
std::cout << "No config path provided. Using default config path: $HOME/.config/UsbMakroBoard.yaml\n";
configPath = "$HOME/.config/UsbMakroBoard.yaml";
}
}