waybar: fix volume setting
This commit is contained in:
		
							parent
							
								
									6b49c83fff
								
							
						
					
					
						commit
						2357cf053e
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -45,7 +45,7 @@ get_vol_system() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
is_muted_system() {
 | 
					is_muted_system() {
 | 
				
			||||||
    pamixer --get-mute >/dev/null
 | 
					    test "$(pamixer --get-mute)" = "true" >/dev/null
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
change_vol_system() {
 | 
					change_vol_system() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -164,6 +164,8 @@ in
 | 
				
			||||||
          };
 | 
					          };
 | 
				
			||||||
          on-click = "pavucontrol";
 | 
					          on-click = "pavucontrol";
 | 
				
			||||||
          on-click-right = "${pkgs.pulse_sink}/bin/pulse_sink";
 | 
					          on-click-right = "${pkgs.pulse_sink}/bin/pulse_sink";
 | 
				
			||||||
 | 
					          on-scroll-up = "${pkgs.volumesh}/bin/volumesh -i 10";
 | 
				
			||||||
 | 
					          on-scroll-down = "${pkgs.volumesh}/bin/volumesh -d 10";
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
      }];
 | 
					      }];
 | 
				
			||||||
      style = builtins.readFile (pkgs.substituteAll {
 | 
					      style = builtins.readFile (pkgs.substituteAll {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue