Fix waybar clock locale.
This commit is contained in:
		
							parent
							
								
									e763ebcbe4
								
							
						
					
					
						commit
						9c892c0606
					
				
							
								
								
									
										13
									
								
								fix-waybar.patch
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										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));
 | 
				
			||||||
							
								
								
									
										6
									
								
								sway.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										6
									
								
								sway.nix
									
									
									
									
									
								
							@ -7,7 +7,11 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  environment.systemPackages = with pkgs; with gnome3; [
 | 
					  environment.systemPackages = with pkgs; with gnome3; [
 | 
				
			||||||
    i3status
 | 
					    i3status
 | 
				
			||||||
    (waybar.override { pulseSupport = true; })
 | 
					    ((waybar.override { pulseSupport = true; }).overrideDerivation (_: {
 | 
				
			||||||
 | 
					      patches = [
 | 
				
			||||||
 | 
					        ./fix-waybar.patch
 | 
				
			||||||
 | 
					      ];
 | 
				
			||||||
 | 
					    }))
 | 
				
			||||||
    wofi
 | 
					    wofi
 | 
				
			||||||
    ydotool
 | 
					    ydotool
 | 
				
			||||||
    wl-clipboard
 | 
					    wl-clipboard
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user