-
Notifications
You must be signed in to change notification settings - Fork 247
/
Cuterdio_items.json
78 lines (76 loc) · 2.06 KB
/
Cuterdio_items.json
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
[
// Exit
{
"type": "escape",
"width": 64,
"align": "left"
},
// Cuterdio
{
"type": "shellScriptTitledButton",
"width": 700,
"refreshInterval": 10,
"align": "center",
"source": {
"inline": "echo -e $(cat ~/Library/Cuterdio/TrackInfo.txt)"
},
"actions": [
{
"trigger": "singleTap",
"action": "appleScript",
"actionAppleScript": {
"inline": "activate application \"Cuterdio\""
}
}
],
"image": {
"filePath": "~/Library/Cuterdio/TrackInfo.png"
},
"bordered": false
},
// Microphone
{
"type": "appleScriptTitledButton",
"bordered": true,
"align": "right",
"width": 48,
"refreshInterval": 1,
"source": {
"inline": "if input volume of (get volume settings) = 0 then\rreturn \" 🔴 \"\relse\rreturn \" ⚪️ \"\rend if"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "if input volume of (get volume settings) = 0 then\rset level to 100\rset volume input volume level\rreturn {\" \", \"muted\"}\relse\rset level to 0\rset volume input volume level\rreturn {\" \", \"unmuted\"}\rend if"
}
},
// Play pause
{
"type": "play",
"align": "right",
"bordered": false,
"width": 64
},
// Volume
{
"type": "appleScriptTitledButton",
"refreshInterval": 2,
"align": "right",
"width": 48,
"source": {
"inline": "set curVolume to get volume settings\rif output muted of curVolume is false then\rreturn \" 🔈 \"\relse\rreturn \" 🔇 \"\rend if"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "set curVolume to get volume settings\rif output muted of curVolume is false then\rset volume with output muted\relse\rset volume without output muted\rend if"
}
},
// Time
{
"type": "timeButton",
"formatTemplate": "E dd.MM HH:mm",
"locale": "de_DE",
"align": "right",
"bordered": false,
"longAction": "appleScript", "longActionAppleScript": { "inline": "tell application \"MTMR\" to quit" }
}
]