waybar: fix volume setting
This commit is contained in:
parent
6b49c83fff
commit
2357cf053e
|
@ -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…
Reference in a new issue