diff --git a/home/desktop/waybar/modules/clock.compact.nix b/home/desktop/waybar/modules/clock.compact.nix index 934724a8..06915502 100644 --- a/home/desktop/waybar/modules/clock.compact.nix +++ b/home/desktop/waybar/modules/clock.compact.nix @@ -1,19 +1,9 @@ -{ +let + clock = import ./clock.nix; +in { format = "{:%R 󰅐 }"; format-alt = "{:%A %Y-%m-%d 󰃭 }"; - tooltip-format = "{calendar}"; - calendar = { - mode = "year"; - mode-mon-col = 3; - weeks-pos = "right"; - on-scroll = 1; - on-click-right = "mode"; - format = { - months = "{}"; - days = "{}"; - weeks = "W{}"; - weekdays = "{}"; - today = "{}"; - }; - }; + tooltip-format = clock.tooltip-format; + calendar = clock.calendar; + actions = clock.actions; } diff --git a/home/desktop/waybar/modules/clock.nix b/home/desktop/waybar/modules/clock.nix index daae1ce5..6e9bf147 100644 --- a/home/desktop/waybar/modules/clock.nix +++ b/home/desktop/waybar/modules/clock.nix @@ -1,10 +1,10 @@ { format = "{:%A %Y-%m-%d 󰃭 | %R 󰅐 }"; - tooltip-format = "{calendar}"; + tooltip-format = "{calendar}"; 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"; };