From b3e47a4a2df3b12f353319cbd80cb4ab1107f213 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Thu, 3 Oct 2024 20:53:26 -0400 Subject: [PATCH] Add calendar tooltip to clock module --- README.org | 24 ++++++++++++++++++++++-- waybar/config.jsonc | 24 ++++++++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 21b9480..08f7acb 100644 --- a/README.org +++ b/README.org @@ -641,8 +641,28 @@ window#waybar { #+BEGIN_SRC jsonc :tangle waybar/config.jsonc "clock": { "interval": 60, - "format": "󰥔 {:%H:%M}", - "tooltip": false, + "format": "󰥔 {:%I:%M %p}", + "tooltip": true, + "tooltip-format": "{calendar}", + "calendar": { + "mode" : "month", + "mode-mon-col" : 3, + "weeks-pos" : "left", + "on-scroll" : 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + }, + }, + "actions": { + "on-click": "mode", + "on-click-right": "shift_reset", + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down", + }, }, #+END_SRC diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 5f1880b..7765e8e 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -71,8 +71,28 @@ "clock": { "interval": 60, - "format": "󰥔 {:%H:%M}", - "tooltip": false, + "format": "󰥔 {:%I:%M %p}", + "tooltip": true, + "tooltip-format": "{calendar}", + "calendar": { + "mode" : "month", + "mode-mon-col" : 3, + "weeks-pos" : "left", + "on-scroll" : 1, + "format": { + "months": "{}", + "days": "{}", + "weeks": "W{}", + "weekdays": "{}", + "today": "{}" + }, + }, + "actions": { + "on-click": "mode", + "on-click-right": "shift_reset", + "on-scroll-up": "shift_up", + "on-scroll-down": "shift_down", + }, }, "custom/dunst-status": {