summaryrefslogtreecommitdiff
path: root/accounts/gkleen@skadhi/shell/quickshell-plugins
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-10-21 15:05:50 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2026-10-21 15:05:50 +0200
commitebccb33b4eb60a07e667332665181ba9ad352615 (patch)
tree14947c3add7677919250265616f9ab4f5f6b071b /accounts/gkleen@skadhi/shell/quickshell-plugins
parentf2c90589d4d4d6c1f101c969d1363729171b3115 (diff)
downloadnixos-ebccb33b4eb60a07e667332665181ba9ad352615.tar
nixos-ebccb33b4eb60a07e667332665181ba9ad352615.tar.gz
nixos-ebccb33b4eb60a07e667332665181ba9ad352615.tar.bz2
nixos-ebccb33b4eb60a07e667332665181ba9ad352615.tar.xz
nixos-ebccb33b4eb60a07e667332665181ba9ad352615.zip
...
Diffstat (limited to 'accounts/gkleen@skadhi/shell/quickshell-plugins')
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell-plugins/Chrono.cpp2
-rw-r--r--accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/accounts/gkleen@skadhi/shell/quickshell-plugins/Chrono.cpp b/accounts/gkleen@skadhi/shell/quickshell-plugins/Chrono.cpp
index 22b3469b..2487cddd 100644
--- a/accounts/gkleen@skadhi/shell/quickshell-plugins/Chrono.cpp
+++ b/accounts/gkleen@skadhi/shell/quickshell-plugins/Chrono.cpp
@@ -75,7 +75,7 @@ void Chrono::schedule(const std::chrono::time_point<std::chrono::system_clock>&
75} 75}
76 76
77QString Chrono::format(const QString& fmt) const { 77QString Chrono::format(const QString& fmt) const {
78 return QString::fromStdString(std::format(std::runtime_format(fmt.toStdString()), std::chrono::zoned_time(std::chrono::current_zone(), std::chrono::time_point_cast<std::chrono::seconds>(this->currentTime)))); 78 return QString::fromStdString(std::format(std::dynamic_format(fmt.toStdString()), std::chrono::zoned_time(std::chrono::current_zone(), std::chrono::time_point_cast<std::chrono::seconds>(this->currentTime))));
79} 79}
80 80
81QDateTime Chrono::date() const { 81QDateTime Chrono::date() const {
diff --git a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
index 1fa236f6..a1fbe0d3 100644
--- a/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
+++ b/accounts/gkleen@skadhi/shell/quickshell-plugins/Systemd.cpp
@@ -1,6 +1,7 @@
1#include "Systemd.hpp" 1#include "Systemd.hpp"
2 2
3#include <sstream> 3#include <sstream>
4#include <unistd.h>
4 5
5#include <QDBusConnection> 6#include <QDBusConnection>
6#include <QDBusReply> 7#include <QDBusReply>