2025-06-10 14:09:56 +02:00
|
|
|
#ifndef HYPRLAND_SERVICE_H
|
|
|
|
|
#define HYPRLAND_SERVICE_H
|
|
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "Workspace.h"
|
|
|
|
|
#include "Client.h"
|
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
|
|
|
|
|
|
class HyprlandService {
|
|
|
|
|
public:
|
|
|
|
|
static Workspace getCurrentWorkspace();
|
|
|
|
|
static std::list<Client> getClients();
|
2025-06-10 14:55:42 +02:00
|
|
|
static std::list<Client> getClientsOnActiveWorkspace();
|
2025-06-10 15:45:25 +02:00
|
|
|
static void setFloatingRule(bool);
|
2025-06-10 14:55:42 +02:00
|
|
|
static void setClientFloating(Client&);
|
|
|
|
|
static void setClientTiled(Client&);
|
|
|
|
|
static void toggleClientFloating(Client&);
|
2025-06-10 14:09:56 +02:00
|
|
|
static std::string exec(const std::string& command);
|
|
|
|
|
};
|
|
|
|
|
#endif
|