Created
November 3, 2020 05:00
-
-
Save mindnuts/ba60d69ceabcefbbaa1047c5302f8081 to your computer and use it in GitHub Desktop.
Revisions
-
mindnuts created this gist
Nov 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ ### create a text file ```sh sudo touch /usr/local/bin/audio-restart ``` ## make it executable ```sh sudo chmod +x /usr/local/bin/audio-restart ``` ## use the content of the file below and run it This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash pulseaudio -k && pkexec alsa force-reload zenity(){ /usr/bin/zenity "$@" 2>/dev/null } zenity --info --width 300 --text "Audio device restarted. Click OK to continue."