2025-06-26 19:43:39 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <hyprutils/os/Process.hpp>
|
|
|
|
|
#include <hyprutils/memory/WeakPtr.hpp>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
#include "../Log.hpp"
|
|
|
|
|
|
|
|
|
|
//NOLINTNEXTLINE
|
|
|
|
|
namespace Tests {
|
2025-10-06 12:10:56 -07:00
|
|
|
Hyprutils::Memory::CUniquePointer<Hyprutils::OS::CProcess> spawnKitty(const std::string& class_ = "", const std::vector<std::string> args = {});
|
2025-06-26 19:43:39 +02:00
|
|
|
bool processAlive(pid_t pid);
|
|
|
|
|
int windowCount();
|
|
|
|
|
int countOccurrences(const std::string& in, const std::string& what);
|
|
|
|
|
bool killAllWindows();
|
|
|
|
|
void waitUntilWindowsN(int n);
|
2025-10-06 12:10:56 -07:00
|
|
|
std::string execAndGet(const std::string& cmd);
|
2025-06-26 19:43:39 +02:00
|
|
|
};
|