Wrote main code flow
This commit is contained in:
20
src/main.cpp
20
src/main.cpp
@@ -1,15 +1,15 @@
|
|||||||
#include "../include/HyprlandService.h"
|
#include "../include/HyprlandService.h"
|
||||||
|
|
||||||
int main(int, char**){
|
int main(int, char**){
|
||||||
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
if (HyprlandService::isFloatingRulePresent()) {
|
||||||
HyprlandService::setClientFloating(c);
|
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
||||||
|
HyprlandService::setClientTiled(c);
|
||||||
|
}
|
||||||
|
HyprlandService::setFloatingRule(false);
|
||||||
|
} else {
|
||||||
|
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
||||||
|
HyprlandService::setClientFloating(c);
|
||||||
|
}
|
||||||
|
HyprlandService::setFloatingRule(true);
|
||||||
}
|
}
|
||||||
HyprlandService::setFloatingRule(true);
|
|
||||||
|
|
||||||
sleep(5);
|
|
||||||
|
|
||||||
for (auto& c : HyprlandService::getClientsOnActiveWorkspace()) {
|
|
||||||
HyprlandService::setClientTiled(c);
|
|
||||||
}
|
|
||||||
HyprlandService::setFloatingRule(false);
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user