-
Notifications
You must be signed in to change notification settings - Fork 7
/
notify.sh
30 lines (26 loc) · 945 Bytes
/
notify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
start() {
inotifywait -m -e open $HOME/localscripts/captureSystemAudio.txt | while read file;
do
echo "$file" | grep "captureSystemAudio.txt OPEN" && $HOME/localscripts/captureSystemAudio.sh
done
}
stop() {
inotifywait -m -e open $HOME/localscripts/stopSystemAudioCapture.txt | while read file;
do
echo "$file" | grep "stopSystemAudioCapture.txt OPEN" && $HOME/localscripts/stopSystemAudioCapture.sh
done
}
openPavuControl() {
inotifywait -m -e open $HOME/localscripts/openpavucontrol.txt | while read file;
do
echo "$file" | grep "openpavucontrol.txt OPEN" && $HOME/localscripts/openpavucontrol.sh
done
}
closePavuControl() {
inotifywait -m -e open $HOME/localscripts/closepavucontrol.txt | while read file;
do
echo "$file" | grep "closepavucontrol.txt OPEN" && $HOME/localscripts/closepavucontrol.sh
done
}
start & stop & openPavuControl & closePavuControl