From 9c892c0606c33d6c2d93fec484f2277356344330 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 22 Aug 2020 15:09:54 +0200 Subject: [PATCH] Fix waybar clock locale. --- fix-waybar.patch | 13 +++++++++++++ sway.nix | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 fix-waybar.patch diff --git a/fix-waybar.patch b/fix-waybar.patch new file mode 100644 index 0000000..dbbee95 --- /dev/null +++ b/fix-waybar.patch @@ -0,0 +1,13 @@ +diff --git a/src/modules/clock.cpp b/src/modules/clock.cpp +index f313606..daa0f6a 100644 +--- a/src/modules/clock.cpp ++++ b/src/modules/clock.cpp +@@ -46,7 +46,7 @@ auto waybar::modules::Clock::update() -> void { + date::make_zoned(time_zone_, date::floor(now))}; + + std::string text; +- if (!fixed_time_zone_) { ++ if (false && !fixed_time_zone_) { + // As date dep is not fully compatible, prefer fmt + tzset(); + auto localtime = fmt::localtime(std::chrono::system_clock::to_time_t(now)); diff --git a/sway.nix b/sway.nix index 537d6c2..6f46cb6 100644 --- a/sway.nix +++ b/sway.nix @@ -7,7 +7,11 @@ environment.systemPackages = with pkgs; with gnome3; [ i3status - (waybar.override { pulseSupport = true; }) + ((waybar.override { pulseSupport = true; }).overrideDerivation (_: { + patches = [ + ./fix-waybar.patch + ]; + })) wofi ydotool wl-clipboard