From: Aren Moynihan <aren@peacevolution.org>
This is significantly faster than spawning a shell just to print the
current time.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
---
configs/appcfg/conky.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configs/appcfg/conky.conf b/configs/appcfg/conky.conf
index c4a0792..5d8b834 100644
--- a/configs/appcfg/conky.conf
+++ b/configs/appcfg/conky.conf
@@ -12,7 +12,7 @@ conky.config = {
}
conky.text = [[
-${alignc}${font Sxmo:size=50:style=Bold}${exec date +"%H"}${font Sxmo:size=50}:${exec date +"%M"}${font}
+${alignc}${font Sxmo:size=50:style=Bold}${time %H}${font Sxmo:size=50}:${time %M}${font}
-${font Sxmo:size=20}${exec date +"%a %d %b %Y"}${font}
+${font Sxmo:size=20}${time %a %d %b %Y}${font}
]]
--
2.44.0