Skip to content

Commit 2cb60b3

Browse files
authored
Include capability to launch pavucontrol
1 parent 57c2081 commit 2cb60b3

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

notify.sh

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
#!/bin/sh
22
start() {
33
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
77
}
8+
89
stop() {
910
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
1314
}
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

0 commit comments

Comments
 (0)