audiostart-pipewire.sh 441 B

12345678910111213141516171819202122232425262728
  1. #! /bin/sh
  2. SUDOCMD=doas
  3. killall pipewire-pulse
  4. killall pipewire
  5. pipewire &
  6. sleep 1
  7. pipewire-pulse &
  8. wireplumber &
  9. sleep 1
  10. pidpp=`pidof -s pipewire-pulse`
  11. pidpw=`pidof -o $pidpp -s pipewire`
  12. pidwp=`pidof -s wireplumber`
  13. $SUDOCMD renice -n -10 -p $pidpw
  14. $SUDOCMD renice -n -10 -p $pidwp
  15. $SUDOCMD renice -n -10 -p $pidpp
  16. $SUDOCMD ionice -c 1 -n 1 -p $pidpw
  17. $SUDOCMD ionice -c 1 -n 1 -p $pidwp
  18. $SUDOCMD ionice -c 1 -n 1 -p $pidpp
  19. exit 0