PulseAudio
De Linuxmemo.
(Différences entre les versions)
		
		
 (Page créée avec « Catégorie:Linux sysadmin  pacmd - Reconfigure a PulseAudio sound server during runtime »)  | 
		|||
| Ligne 1 : | Ligne 1 : | ||
[[Catégorie:Linux sysadmin]]  | [[Catégorie:Linux sysadmin]]  | ||
  pacmd - Reconfigure a PulseAudio sound server during runtime  |   pacmd - Reconfigure a PulseAudio sound server during runtime  | ||
| + | |||
| + |  pacmd list-sinks  | ||
| + | |||
| + |  #!/bin/bash  | ||
| + |  if [ "$1" == "" ]; then  | ||
| + |   echo "Need to supply a percentage"  | ||
| + |   exit 1  | ||
| + |  fi  | ||
| + |  vol=$(perl -e "print int(65536 * ($1 / 100))")  | ||
| + |  echo "Setting volume to $1 ($vol)"  | ||
| + |  pacmd set-sink-volume 0 $vol  | ||
Version du 4 juin 2020 à 09:29
pacmd - Reconfigure a PulseAudio sound server during runtime
pacmd list-sinks
#!/bin/bash if [ "$1" == "" ]; then echo "Need to supply a percentage" exit 1 fi vol=$(perl -e "print int(65536 * ($1 / 100))") echo "Setting volume to $1 ($vol)" pacmd set-sink-volume 0 $vol