SHARE
TWEET

Untitled

a guest Jul 11th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wn() {
  2.     for pid in $(ps ax | grep afplay | grep -v grep | awk '{ print $1 }');
  3.     do
  4.         kill -9 $pid > /dev/null 2>&1;
  5.     done;
  6.     volume=$1;
  7.     if [ -z $volume ]; then
  8.         volume=1;
  9.     else
  10.         if [ $volume = "0" ]; then
  11.             return;
  12.         fi;
  13.     fi;
  14.     afplay $HOME/white-noise/white-noise.mp3 -t 100000 -v $volume &
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top