waybar: add controller battery status
This commit is contained in:
		
							parent
							
								
									4d6d6357e3
								
							
						
					
					
						commit
						62379e3a62
					
				
					 4 changed files with 47 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -35,6 +35,7 @@ in
 | 
			
		|||
            "mpd"
 | 
			
		||||
            "custom/playerctl"
 | 
			
		||||
            "tray"
 | 
			
		||||
            "custom/controller-battery"
 | 
			
		||||
            "custom/caffeine"
 | 
			
		||||
            "pulseaudio"
 | 
			
		||||
            (lib.optional (osConfig.services.vpn.enable or false) "custom/vpn")
 | 
			
		||||
| 
						 | 
				
			
			@ -157,6 +158,12 @@ in
 | 
			
		|||
          "sway/language" = {
 | 
			
		||||
            format = "{short} {variant}";
 | 
			
		||||
          };
 | 
			
		||||
          "custom/controller-battery" = {
 | 
			
		||||
            format = "{}";
 | 
			
		||||
            exec = lib.getExe pkgs.controller-battery;
 | 
			
		||||
            interval = 1;
 | 
			
		||||
            tooltip = false;
 | 
			
		||||
          };
 | 
			
		||||
          "custom/caffeine" = {
 | 
			
		||||
            format = "{}";
 | 
			
		||||
            exec = "systemctl --user status swayidle > /dev/null && echo  || echo ";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,6 +37,7 @@ window#waybar.solo {
 | 
			
		|||
#mpd,
 | 
			
		||||
#custom-mpd,
 | 
			
		||||
#custom-playerctl,
 | 
			
		||||
#custom-controller-battery,
 | 
			
		||||
#tray,
 | 
			
		||||
#clock,
 | 
			
		||||
#network,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue