add hyprland socket support

This commit is contained in:
2025-12-09 00:09:14 +01:00
parent de6ece13fa
commit 2570445aef
9 changed files with 227 additions and 33 deletions

View File

@@ -3,13 +3,14 @@
#include <chrono>
#include <iomanip>
bool Clock::onUpdate() {
bool Clock::onUpdate()
{
auto now = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
std::stringstream ss;
ss << std::put_time(std::localtime(&now), "%H:%M:%S");
set_text(ss.str());
return true;
}
}