This commit is contained in:
Venelin Dechkov
2026-07-30 11:54:49 +03:00
parent c094e542d9
commit c626039502
2 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -195,7 +195,7 @@ extern "C"
catch(...){ cerr << "EXCEPT\n"; }
// Volume
string amix_out = $(Cmd("amixer", "get", AUDIO_DEV));
string amix_out = $(Cmd("amixer", "-Dpulse", "get", AUDIO_DEV));
size_t vol_bracket = amix_out.find('[');
if(vol_bracket != string::npos)
@@ -306,14 +306,14 @@ extern "C"
void vene_inc_vol(const Arg*)
{
Cmd inc_vol("amixer", "-q", "set", AUDIO_DEV, "3%+");
Cmd inc_vol("amixer", "-q", "-Dpulse", "set", AUDIO_DEV, "3%+");
child = inc_vol.detach();
has_child = true;
}
void vene_dec_vol(const Arg*)
{
Cmd dec_vol("amixer", "-q", "set", AUDIO_DEV, "3%-");
Cmd dec_vol("amixer", "-q", "-Dpulse", "set", AUDIO_DEV, "3%-");
child = dec_vol.detach();
has_child = true;
}