File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
start () {
3
3
inotifywait -m -e open $HOME /localscripts/captureSystemAudio.txt | while read file;
4
- do
5
- echo " $file " | grep " captureSystemAudio.txt OPEN" && $HOME /localscripts/captureSystemAudio.sh
6
- done
4
+ do
5
+ echo " $file " | grep " captureSystemAudio.txt OPEN" && $HOME /localscripts/captureSystemAudio.sh
6
+ done
7
7
}
8
+
8
9
stop () {
9
10
inotifywait -m -e open $HOME /localscripts/stopSystemAudioCapture.txt | while read file;
10
- do
11
- echo " $file " | grep " stopSystemAudioCapture.txt OPEN" && $HOME /localscripts/stopSystemAudioCapture.sh
12
- done
11
+ do
12
+ echo " $file " | grep " stopSystemAudioCapture.txt OPEN" && $HOME /localscripts/stopSystemAudioCapture.sh
13
+ done
13
14
}
14
- start & stop
15
+
16
+ openPavuControl () {
17
+ inotifywait -m -e open $HOME /localscripts/openpavucontrol.txt | while read file;
18
+ do
19
+ echo " $file " | grep " openpavucontrol.txt OPEN" && $HOME /localscripts/openpavucontrol.sh
20
+ done
21
+ }
22
+
23
+ closePavuControl () {
24
+ inotifywait -m -e open $HOME /localscripts/closepavucontrol.txt | while read file;
25
+ do
26
+ echo " $file " | grep " closepavucontrol.txt OPEN" && $HOME /localscripts/closepavucontrol.sh
27
+ done
28
+ }
29
+
30
+ start & stop & openPavuControl & closePavuControl
You can’t perform that action at this time.
0 commit comments