From b42fb6d0185a57e579a8ac012a346e2449010480 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 30 Apr 2023 10:43:05 +0200 Subject: Fix calendar thing in waybar --- .config/waybar/config | 100 +++++++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 45 deletions(-) (limited to '.config/waybar/config') diff --git a/.config/waybar/config b/.config/waybar/config index 27b972c..2ee477c 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,36 +1,26 @@ -// vi: ft=jsonc { - "layer": "top", // Waybar at top layer - // "position": "bottom", // Waybar position (top|bottom|left|right) - "height": 40, // Waybar height (to be removed for auto height) - // "width": 1280, // Waybar width - //"spacing": 4, // Gaps between modules (4px) - // Choose the order of the modules + "layer": "top", + "height": 40, "modules-left": [ "wlr/workspaces", "sway/workspaces" - //"sway/mode" ], "modules-center": [ "wlr/window", "sway/window" ], "modules-right": [ - //"mpd", - "idle_inhibitor", - //"sway/language", - "pulseaudio", + "idle_inhibitor", + "pulseaudio", "backlight", - "battery", - //"network", + "battery", "cpu", - "memory", + "memory", "temperature", - "keyboard", - "clock", + "keyboard", + "clock", "tray" ], - // Modules configuration "sway/workspaces": { "max-width": 100, "disable-scroll": false, @@ -118,11 +108,31 @@ "spacing": 12 }, "clock": { - // "timezone": "America/New_York", - "tooltip-format": "{:%Y %B}\n{calendar}", - "format-alt": "{:%Y-%m-%d}", - "format": "{:%H:%M:%S}", - "interval": 1 + "format": "{:%H:%M:%S}  ", + "interval": 1, + "format-alt": "{:%A, %B %d, %Y (%H:%M:%S)}  ", + "locale": "nb_NO.UTF-8", + "tooltip-format": "\n{calendar}", + "calendar": { + "mode": "month", + "mode-mon-col": 3, + "weeks-pos": "left", + "on-scroll": 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-click-right": "mode", + "on-click-forward": "tz_up", + "on-click-backward": "tz_down", + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down" + } }, "cpu": { "format": "{usage}% ", @@ -132,21 +142,24 @@ "format": "{}% " }, "temperature": { - // "thermal-zone": 2, - // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, - // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", - "format-icons": ["", "", ""] + "format-icons": [ + "", + "", + "" + ] }, "backlight": { - // "device": "acpi_video1", "format": "{percent}% {icon}", - "format-icons": ["", ""] + "format-icons": [ + "", + "" + ] }, "battery": { "states": { - // "good": 95, + "good": 95, "warning": 30, "critical": 15 }, @@ -154,21 +167,15 @@ "format-charging": "{capacity}% ", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", - // "format-good": "", // An empty format will hide the module - // "format-full": "", - "format-icons": ["", "", "", "", ""] - }, - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", - "format-alt": "{ifname}: {ipaddr}/{cidr}" + "format-icons": [ + "", + "", + "", + "", + "" + ] }, "pulseaudio": { - // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth-muted": " {icon} {format_source}", @@ -182,9 +189,12 @@ "phone": "", "portable": "", "car": "", - "default": ["", "", ""] + "default": [ + "", + "", + "" + ] }, "on-click": "pavucontrol" } } - -- cgit v1.2.3