aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--waybar/config9
-rw-r--r--waybar/style.css2
2 files changed, 6 insertions, 5 deletions
diff --git a/waybar/config b/waybar/config
index b411e25..cbc6872 100644
--- a/waybar/config
+++ b/waybar/config
@@ -1,7 +1,7 @@
{
"layer": "top",
"modules-left": ["river/tags", "network#eth0", "network#wlan0"],
- "modules-right": ["tray", "cpu", "memory", "wireplumber", "battery", "backlight", "clock"],
+ "modules-right": ["tray", "cpu", "memory", "wireplumber", "battery", "backlight", "custom/clock"],
"network#eth0": {
"format-disconnected": "",
"format-linked": "{icon} ⇅",
@@ -65,8 +65,9 @@
"format-icons": ["💡"],
"scroll-step": 5
},
- "clock": {
- "format": "{:%Y-%m-%d %H:%M:%S}",
- "interval": 1
+ "custom/clock": {
+ "format": "{}",
+ "interval": 1,
+ "exec": "date +'%Y-%m-%d %H:%M:%S'"
}
}
diff --git a/waybar/style.css b/waybar/style.css
index f4d7cdb..e4c4baa 100644
--- a/waybar/style.css
+++ b/waybar/style.css
@@ -57,6 +57,6 @@ button:hover {
#wireplumber,
#battery,
#backlight,
-#clock {
+#custom-clock {
padding: 0 10px;
}