Skip to content

Commit

Permalink
Add:ReSpeaker
Browse files Browse the repository at this point in the history
  • Loading branch information
eouia committed Aug 8, 2019
1 parent 5f27ba4 commit 6dd70ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-Volume.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Module.register("MMM-Volume", {
getVolumeScript: `amixer sget 'Digital' | grep -E -o '[[:digit:]]+%' | head -n 1| sed 's/%//g'`, // get 0~100
setVolumeScript: `amixer sset -M 'Digital' #VOLUME#%`, // set 0~100
},
"PULSE": {
"PULSE": {
getVolumeScript: `amixer get Master | awk -F"[][]" '{print ""$2""}' | grep % | awk 'NR==1{print $1}' | awk '{gsub(/%/,"") ; print}'`, // get 0~100
setVolumeScript: `amixer set Master #VOLUME#% -q`, // set 0~100
},
Expand Down

0 comments on commit 6dd70ed

Please sign in to comment.