-
Notifications
You must be signed in to change notification settings - Fork 3
/
info.plist
137 lines (137 loc) · 3.62 KB
/
info.plist
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleid</key>
<string>com.cakmet14.change_sound</string>
<key>category</key>
<string>Tools</string>
<key>connections</key>
<dict>
<key>38163BFB-14BA-4071-AF24-633928D9B5C3</key>
<array/>
<key>E47C1DA3-417C-479F-B8AC-C4294927395C</key>
<array>
<dict>
<key>destinationuid</key>
<string>38163BFB-14BA-4071-AF24-633928D9B5C3</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>cak met</string>
<key>description</key>
<string></string>
<key>disabled</key>
<false/>
<key>name</key>
<string>change sound</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>argumenttype</key>
<integer>2</integer>
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>output</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>2</integer>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>query=$1
export PATH="/usr/local/bin:$PATH"
/usr/local/bin/SwitchAudioSource -a -t output| jq -R -s 'split("\n") | map(select(length>0)) | map({"title": ., "arg": ., "icon": { "path": "./icon.png"} } )' | jq -s '{ "items": .[] }'</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<key>title</key>
<string>change sound output</string>
<key>type</key>
<integer>0</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>E47C1DA3-417C-479F-B8AC-C4294927395C</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>export PATH="/usr/local/bin:$PATH"
query=`echo "{query}" | awk '{gsub(/.\(output\)/,"");}1' | sed 's/(\s)+$//'`
SwitchAudioSource -s "$query"
sleep 1
say $query &
terminal-notifier \
-message "Change sound output to $query" \
-appIcon ./icon.png \
-sender com.runningwithcrayons.Alfred-3 \
-title "Alfred"</string>
<key>scriptargtype</key>
<integer>0</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>38163BFB-14BA-4071-AF24-633928D9B5C3</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string></string>
<key>uidata</key>
<dict>
<key>38163BFB-14BA-4071-AF24-633928D9B5C3</key>
<dict>
<key>xpos</key>
<integer>520</integer>
<key>ypos</key>
<integer>250</integer>
</dict>
<key>E47C1DA3-417C-479F-B8AC-C4294927395C</key>
<dict>
<key>xpos</key>
<integer>270</integer>
<key>ypos</key>
<integer>250</integer>
</dict>
</dict>
<key>webaddress</key>
<string></string>
</dict>
</plist>