Waybar clock modules updates
This commit is contained in:
parent
96ecc68434
commit
c94a89ca23
|
@ -1,19 +1,9 @@
|
||||||
{
|
let
|
||||||
|
clock = import ./clock.nix;
|
||||||
|
in {
|
||||||
format = "{:%R }";
|
format = "{:%R }";
|
||||||
format-alt = "{:%A %Y-%m-%d }";
|
format-alt = "{:%A %Y-%m-%d }";
|
||||||
tooltip-format = "<tt>{calendar}</tt>";
|
tooltip-format = clock.tooltip-format;
|
||||||
calendar = {
|
calendar = clock.calendar;
|
||||||
mode = "year";
|
actions = clock.actions;
|
||||||
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>";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
format = "{:%A %Y-%m-%d | %R }";
|
format = "{:%A %Y-%m-%d | %R }";
|
||||||
tooltip-format = "<tt>{calendar}</tt>";
|
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||||
calendar = {
|
calendar = {
|
||||||
mode = "year";
|
mode = "month";
|
||||||
mode-mon-col = 3;
|
mode-mon-col = 3;
|
||||||
weeks-pos = "right";
|
weeks-pos = "left";
|
||||||
on-scroll = 1;
|
on-scroll = 1;
|
||||||
on-click-right = "mode";
|
on-click-right = "mode";
|
||||||
format = {
|
format = {
|
||||||
|
@ -17,8 +17,6 @@
|
||||||
};
|
};
|
||||||
actions = {
|
actions = {
|
||||||
on-click-right = "mode";
|
on-click-right = "mode";
|
||||||
on-click-forward = "tz_up";
|
|
||||||
on-click-backward = "tz_down";
|
|
||||||
on-scroll-up = "shift_up";
|
on-scroll-up = "shift_up";
|
||||||
on-scroll-down = "shift_down";
|
on-scroll-down = "shift_down";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue