dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 6da3b60716e0aac1a5bf57b52b12cab6a9f95f82
parent 887d6465c3433d8515bf02a751791df509ec8a47
Author: Chris Bracken <chris@bracken.jp>
Date:   Mon,  4 Oct 2021 08:56:03 -0700

waybar: clock broken on Debian; add custom/clock

The waybar clock module is currently unavailable on Debian. Until fixed,
add custom/clock. Leaving the clock module so two of them show up when
the clock module is fixed and added back.

Diffstat:
M.config/waybar/config | 31++++++++-----------------------
M.config/waybar/style.css | 3++-
2 files changed, 10 insertions(+), 24 deletions(-)

diff --git a/.config/waybar/config b/.config/waybar/config @@ -1,28 +1,9 @@ { - // "layer": "top", // Waybar at top layer - // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 30, // Waybar height (to be removed for auto height) - // "width": 1280, // Waybar width - // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], - //"modules-center": ["sway/window"], - "modules-right": ["pulseaudio", "network", "sway/language", "clock", "tray"], - // Modules configuration - // "sway/workspaces": { - // "disable-scroll": true, - // "all-outputs": true, - // "format": "{name}: {icon}", - // "format-icons": { - // "1": "", - // "2": "", - // "3": "", - // "4": "", - // "5": "", - // "urgent": "", - // "focused": "", - // "default": "" - // } - // }, + // TODO: The 'clock' module is currently unavailable on Debian; eliminate + // 'custom/clock' when resolved. + "modules-right": ["pulseaudio", "network", "sway/language", "custom/clock", "clock", "tray"], "sway/mode": { "format": "<span style=\"italic\">{}</span>" }, @@ -63,6 +44,10 @@ // "icon-size": 21, "spacing": 10 }, + "custom/clock": { + "exec": "LC_TIME=ja_JP.UTF8 date +'%Y-%m-%d (%a) %H:%M'", + "interval": 1, + }, "clock": { "timezone": "America/Vancouver", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", @@ -110,7 +95,7 @@ "network": { // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", + "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" diff --git a/.config/waybar/style.css b/.config/waybar/style.css @@ -67,6 +67,7 @@ window#waybar.chromium { } #clock, +#custom-clock, #battery, #cpu, #memory, @@ -100,7 +101,7 @@ window#waybar.chromium { margin-right: 0; } -#clock { +#clock, #custom-clock { background-color: #2d5986; }