waybar: fix volume setting

This commit is contained in:
Leonardo Eugênio 2023-09-12 00:51:09 -03:00
parent 6b49c83fff
commit 2357cf053e
2 changed files with 3 additions and 1 deletions

View file

@ -45,7 +45,7 @@ get_vol_system() {
}
is_muted_system() {
pamixer --get-mute >/dev/null
test "$(pamixer --get-mute)" = "true" >/dev/null
}
change_vol_system() {

View file

@ -164,6 +164,8 @@ in
};
on-click = "pavucontrol";
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 {