Skip to content

Commit

Permalink
Add custom clock to work around missing module
Browse files Browse the repository at this point in the history
This is caused by Alexays/Waybar#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.
  • Loading branch information
aarongable committed Dec 15, 2021
1 parent 9095ca5 commit 7bb5f8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions sway/waybar.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ window#waybar {
}

#clock,
#custom-clock,
#battery,
#cpu,
#memory,
Expand Down
6 changes: 5 additions & 1 deletion sway/waybar.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>"
},
"custom/clock": {
"exec": "date +'%a %b %d %Y %H:%M'",
"interval": 10
},
"battery": {
"states": {
"good": 95,
Expand Down

0 comments on commit 7bb5f8d

Please sign in to comment.