From 7bb5f8dbf66b85678354d02b19e7532c6c44d716 Mon Sep 17 00:00:00 2001 From: Aaron Gable Date: Tue, 14 Dec 2021 17:19:47 -0800 Subject: [PATCH] Add custom clock to work around missing module This is caused by https://github.com/Alexays/Waybar/issues/668 and the Debian package maintainer's decision to drop the clock module from waybar because it can't *yet* be compiled without a specific dependency... even though it's had that dependency all along. --- sway/waybar.css | 1 + sway/waybar.json | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sway/waybar.css b/sway/waybar.css index 90441a5..ed0d522 100644 --- a/sway/waybar.css +++ b/sway/waybar.css @@ -37,6 +37,7 @@ window#waybar { } #clock, +#custom-clock, #battery, #cpu, #memory, diff --git a/sway/waybar.json b/sway/waybar.json index 52bdbd3..42122ee 100644 --- a/sway/waybar.json +++ b/sway/waybar.json @@ -4,13 +4,17 @@ "height": 24, // Waybar height (to be removed for auto height) "modules-left": ["idle_inhibitor", "sway/workspaces"], "modules-center": ["sway/window"], - "modules-right": ["pulseaudio", "pulseaudio#mic", "network", "battery", "clock"], + "modules-right": ["pulseaudio", "pulseaudio#mic", "network", "battery", "custom/clock"], "clock": { "interval": 10, "format": "{:%a %b %d %Y %H:%M}", "timezone": "America/Los_Angeles", "tooltip-format": "{:%B %Y}\n{calendar}" }, + "custom/clock": { + "exec": "date +'%a %b %d %Y %H:%M'", + "interval": 10 + }, "battery": { "states": { "good": 95,