Waybar: Split date & time into 2 "clock" modules.

This commit is contained in:
Viyurz 2023-11-29 17:02:28 +01:00
parent 9382f4a516
commit a99c796c43
No known key found for this signature in database

View file

@ -20,7 +20,8 @@
"memory", "memory",
"custom/cpu-temp", "custom/cpu-temp",
"cpu", "cpu",
"clock", "clock#date",
"clock#time",
"custom/dnd-toggle" "custom/dnd-toggle"
], ],
@ -186,9 +187,9 @@
"format": " {usage}%", "format": " {usage}%",
"interval": 5 "interval": 5
}, },
"clock": { "clock#date": {
"interval": 1, "interval": 1,
"format": "󰥔 {:%X}", "format": "󰃭 {:%Ex}",
"tooltip-format": "<tt>{calendar}</tt>", "tooltip-format": "<tt>{calendar}</tt>",
"calendar": { "calendar": {
"mode": "month", "mode": "month",
@ -200,6 +201,11 @@
} }
} }
}, },
"clock#time": {
"interval": 1,
"format": "󰥔 {:%EX}",
"tooltip": false
},
"custom/dnd-toggle": { "custom/dnd-toggle": {
"exec": "$HOME/.scripts/waybar-dnd-toggle.sh --no-toggle", "exec": "$HOME/.scripts/waybar-dnd-toggle.sh --no-toggle",
"interval": "once", "interval": "once",