Fix waybar clock locale.

This commit is contained in:
Gabriel Ebner 2020-08-22 15:09:54 +02:00
parent e763ebcbe4
commit 9c892c0606
2 changed files with 18 additions and 1 deletions

13
fix-waybar.patch Normal file

@ -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<std::chrono::seconds>(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));

@ -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