From c17163ea468fd368a2548893ecba088e1cf467e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 5 May 2025 02:41:21 +0300 Subject: waybar: calendar style changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use japanese locale for the calendar. I just like having those as the days of the week ¯\_(ツ)_/¯. Also fixed css a bit. --- dotfiles/.config/waybar/modules.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'dotfiles/.config/waybar/modules.json') diff --git a/dotfiles/.config/waybar/modules.json b/dotfiles/.config/waybar/modules.json index ed3dff1..0d3cb9f 100644 --- a/dotfiles/.config/waybar/modules.json +++ b/dotfiles/.config/waybar/modules.json @@ -18,11 +18,22 @@ "spacing": 10 }, "clock": { - "format": "{:%Y年%m月%d日 %H:%M:%S}", + "locale": "ja_JP.UTF-8", + "format": "{:L%Y年%m月%d日(%a)%H:%M:%S}", + "format-alt": "{:%H:%M:%S}", "tooltip-format": "{calendar}", "calendar": { - "mode": "year", - "mode-mon-col": 3 + "mode" : "month", + "on-scroll" : 1, + "format": { + "months": "{}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down" }, "interval": 1 }, -- cgit v1.2.3