Waybar calendar use year mode, enable right click to change mode

This commit is contained in:
Evie Litherland-Smith 2024-10-29 14:42:45 +00:00
parent 23bff7fb9d
commit 0f0b82837b

View file

@ -176,9 +176,9 @@
};
"clock#calendar" = {
format = "󰃭 {:%Y-%m-%d}";
tooltip-format = "<tt>{calendar}</tt>";
tooltip-format = "<tt><small>{calendar}</small></tt>";
calendar = {
mode = "month";
mode = "year";
mode-mon-col = 3;
weeks-pos = "left";
on-scroll = 1;
@ -191,10 +191,11 @@
weeks = "<span color='${scheme.cyan}'><b>W{}</b></span>";
weekdays = "<span color='${scheme.orange}'><b>{}</b></span>";
days = "<span color='${scheme.base05}'><b>{}</b></span>";
today = "<span color='${scheme.base0D}'><b><i>{}</i></b></span>";
today = "<span color='${scheme.magenta}'><b><i>{}</i></b></span>";
};
};
actions = {
on-click-right = "mode";
on-scroll-up = "shift_up";
on-scroll-down = "shift_down";
};