Comment jouer un son de notification en ligne de commande
Le script bash suivant joue une cloche de notification sur presque n’importe quel ordinateur Linux où les composants de bureau communs sont installés :
play_notification.sh
paplay /usr/share/sounds/freedesktop/stereo/complete.ogacomplete.oga provient du paquet APT sound-theme-freedesktop sur Ubuntu, tandis que paplay fait partie du paquet pulseaudio-utils. Si vous n’avez pas ces paquets installés, vous pouvez les installer avec :
install_notification_sound_deps.sh
sudo apt install sound-theme-freedesktop pulseaudio-utilsCheck out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow