2025-06-11 12:15:47 +02:00
|
|
|
#include <iostream>
|
2025-06-10 14:16:44 +02:00
|
|
|
#include "../include/HyprlandService.h"
|
2025-06-10 14:09:56 +02:00
|
|
|
|
2025-06-11 12:15:47 +02:00
|
|
|
int main(int argc, char** argv){
|
|
|
|
|
if (argc < 2) {
|
|
|
|
|
std::cerr << "Usage: " << argv[0] << " <config_file_path>\n";
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HyprlandService::setConfigFilePath(argv[1]);
|
|
|
|
|
|
2025-06-10 16:47:06 +02:00
|
|
|
if (HyprlandService::isFloatingRulePresent()) {
|
|
|
|
|
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
|
|
|
|
HyprlandService::setClientTiled(c);
|
|
|
|
|
}
|
|
|
|
|
HyprlandService::setFloatingRule(false);
|
|
|
|
|
} else {
|
|
|
|
|
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
|
|
|
|
HyprlandService::setClientFloating(c);
|
|
|
|
|
}
|
|
|
|
|
HyprlandService::setFloatingRule(true);
|
2025-06-10 15:45:25 +02:00
|
|
|
}
|
|
|
|
|
}
|