added hyprctl

This commit is contained in:
vaxerski
2022-03-20 16:51:14 +01:00
parent 5644e668ef
commit c32917a5ba
8 changed files with 192 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#include "ThreadManager.hpp"
#include "../debug/HyprCtl.hpp"
CThreadManager::CThreadManager() {
m_tMainThread = new std::thread([&]() {
@@ -20,6 +21,8 @@ void CThreadManager::handle() {
while (3.1415f) {
g_pConfigManager->tick();
HyprCtl::tickHyprCtl();
std::this_thread::sleep_for(std::chrono::microseconds(1000000 / g_pConfigManager->getInt("max_fps")));
}
}