Waybar clock modules updates

This commit is contained in:
Evie Litherland-Smith 2023-07-12 11:45:48 +01:00
parent 96ecc68434
commit c94a89ca23
2 changed files with 9 additions and 21 deletions

View file

@ -1,19 +1,9 @@
{
let
clock = import ./clock.nix;
in {
format = "{:%R 󰅐 }";
format-alt = "{:%A %Y-%m-%d 󰃭 }";
tooltip-format = "<tt>{calendar}</tt>";
calendar = {
mode = "year";
mode-mon-col = 3;
weeks-pos = "right";
on-scroll = 1;
on-click-right = "mode";
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>";
};
};
tooltip-format = clock.tooltip-format;
calendar = clock.calendar;
actions = clock.actions;
}

View file

@ -1,10 +1,10 @@
{
format = "{:%A %Y-%m-%d 󰃭 | %R 󰅐 }";
tooltip-format = "<tt>{calendar}</tt>";
tooltip-format = "<tt><small>{calendar}</small></tt>";
calendar = {
mode = "year";
mode = "month";
mode-mon-col = 3;
weeks-pos = "right";
weeks-pos = "left";
on-scroll = 1;
on-click-right = "mode";
format = {
@ -17,8 +17,6 @@
};
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";
};