waybar: add playerctl status
This commit is contained in:
		
							parent
							
								
									4536a59a73
								
							
						
					
					
						commit
						e64d87ae1c
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,7 @@ in
 | 
			
		|||
        modules-right = [
 | 
			
		||||
          "sway/language"
 | 
			
		||||
          "mpd"
 | 
			
		||||
          "custom/playerctl"
 | 
			
		||||
          "tray"
 | 
			
		||||
          "custom/caffeine"
 | 
			
		||||
          "pulseaudio"
 | 
			
		||||
| 
						 | 
				
			
			@ -84,6 +85,7 @@ in
 | 
			
		|||
            format-paused = "{stateIcon}";
 | 
			
		||||
            format-stopped = "";
 | 
			
		||||
            state-icons = {
 | 
			
		||||
              stopped = "";
 | 
			
		||||
              paused = "";
 | 
			
		||||
              playing = "";
 | 
			
		||||
            };
 | 
			
		||||
| 
						 | 
				
			
			@ -92,6 +94,13 @@ in
 | 
			
		|||
            on-scroll-up = "${mpc} vol +10";
 | 
			
		||||
            on-scroll-down = "${mpc} vol -10";
 | 
			
		||||
          };
 | 
			
		||||
        "custom/playerctl" = {
 | 
			
		||||
          format = "{}";
 | 
			
		||||
          exec = "${pkgs.playerctl}/bin/playerctl metadata title";
 | 
			
		||||
          on-click = "${pkgs.playerctl}/bin/playerctl play-pause";
 | 
			
		||||
          interval = 1;
 | 
			
		||||
          tooltip = false;
 | 
			
		||||
        };
 | 
			
		||||
        "sway/language" = { format = "{short} {variant}"; };
 | 
			
		||||
        "custom/caffeine" = {
 | 
			
		||||
          format = "{}";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue