add hyprland socket support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user