Add calendar tooltip to clock module

This commit is contained in:
Sravan Balaji
2024-10-03 20:53:26 -04:00
parent 528d96221a
commit b3e47a4a2d
2 changed files with 44 additions and 4 deletions

View File

@@ -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": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"weeks-pos" : "left",
"on-scroll" : 1,
"format": {
"months": "<span color='#50fa7b'><b>{}</b></span>",
"days": "<span color='#f8f8f2'><b>{}</b></span>",
"weeks": "<span color='#8be9fd'><b>W{}</b></span>",
"weekdays": "<span color='#f1fa8c'><b>{}</b></span>",
"today": "<span color='#bd93f9'><b><u>{}</u></b></span>"
},
},
"actions": {
"on-click": "mode",
"on-click-right": "shift_reset",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
},
#+END_SRC

View File

@@ -71,8 +71,28 @@
"clock": {
"interval": 60,
"format": "󰥔 {:%H:%M}",
"tooltip": false,
"format": "󰥔 {:%I:%M %p}",
"tooltip": true,
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode" : "month",
"mode-mon-col" : 3,
"weeks-pos" : "left",
"on-scroll" : 1,
"format": {
"months": "<span color='#50fa7b'><b>{}</b></span>",
"days": "<span color='#f8f8f2'><b>{}</b></span>",
"weeks": "<span color='#8be9fd'><b>W{}</b></span>",
"weekdays": "<span color='#f1fa8c'><b>{}</b></span>",
"today": "<span color='#bd93f9'><b><u>{}</u></b></span>"
},
},
"actions": {
"on-click": "mode",
"on-click-right": "shift_reset",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down",
},
},
"custom/dunst-status": {