diff options
Diffstat (limited to 'libLumina/LuminaOS-Linux.cpp')
-rw-r--r-- | libLumina/LuminaOS-Linux.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libLumina/LuminaOS-Linux.cpp b/libLumina/LuminaOS-Linux.cpp index 7d618b14..43bcb242 100644 --- a/libLumina/LuminaOS-Linux.cpp +++ b/libLumina/LuminaOS-Linux.cpp @@ -103,12 +103,9 @@ QString info = LUtils::getCmdOutput("amixer get Master").join("").simplified();; void LOS::setAudioVolume(int percent){ if(percent<0){percent=0;} else if(percent>100){percent=100;} - QString info = "amixer -c 0 sset Master,0 " + QString::number(percent) + "%"; - if(!info.isEmpty()){ - //Run Command - LUtils::runCmd(info); - } - + QString info = "amixer set Master " + QString::number(percent) + "%"; + //Run Command + LUtils::runCmd(info); } //Change the current volume a set amount (+ or -) |