diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-30 08:43:05 +0000 |
---|---|---|
committer | Luca Matei Pintilie <lucafulger@gmail.com> | 2023-04-30 08:43:05 +0000 |
commit | b42fb6d0185a57e579a8ac012a346e2449010480 (patch) | |
tree | 35cd98fe7785a59a68077c7e0d029f70025b4b60 | |
parent | 1a483833cd48f7d2b6b7910ac61d959fc377f082 (diff) | |
download | dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar.gz dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar.bz2 dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar.lz dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar.xz dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.tar.zst dotfiles-b42fb6d0185a57e579a8ac012a346e2449010480.zip |
Fix calendar thing in waybar
-rw-r--r-- | .config/waybar/config | 100 |
1 files changed, 55 insertions, 45 deletions
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": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", - "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<small><tt>{calendar}</tt></small>", + "calendar": { + "mode": "month", + "mode-mon-col": 3, + "weeks-pos": "left", + "on-scroll": 1, + "format": { + "months": "<span color='#ffead3'><b>{}</b></span>", + "days": "<span color='#ecc6d9'><b>{}</b></span>", + "weeks": "<span color='#99ffdd'><b>W{}</b></span>", + "weekdays": "<span color='#ffcc66'><b>{}</b></span>", + "today": "<span color='#ff6699'><b><u>{}</u></b></span>" + } + }, + "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" } } - |