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 ++++++++++++++--- dotfiles/.config/waybar/style.css | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) (limited to 'dotfiles/.config/waybar') 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 }, diff --git a/dotfiles/.config/waybar/style.css b/dotfiles/.config/waybar/style.css index b870199..7f8c7ba 100644 --- a/dotfiles/.config/waybar/style.css +++ b/dotfiles/.config/waybar/style.css @@ -66,5 +66,5 @@ window#waybar { background: linear-gradient(60deg, #5b8277, #99d0b5); } #workspaces button:hover { - border: 1px solid #5b8277; + border-color: #5b8277; } -- cgit v1.2.3