forked from Toxblh/MTMR-presets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JieqiangHe.json
102 lines (92 loc) · 3.48 KB
/
JieqiangHe.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[
{
"type": "escape",
"width": 64,
"align": "left"
},
{ "type": "dock", "align": "left"},
{
"type": "staticButton",
"title": "⏏︎",
"width": 30,
"bordered": true,
"align": "left",
"action": "appleScript",
"actionAppleScript": {
"inline": "tell application \"Finder\"\reject (every disk whose ejectable is true and local volume is true and free space is not equal to 0)\rdelay 2\ndisplay notification \"Check the status of all USB devices\" with title \"Tips\" \rend tell\r"
},
},
{
"type": "appleScriptTitledButton",
"source": {
"inline":
"if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rreturn (get artist of current track) & \" – \" & (get name of current track)\relse\rreturn \" Tap to play songs\"\rend if\rend tell\rend if\rreturn \"\"\r"
},
"action": "appleScript",
"actionAppleScript": {
"inline":
"if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rpause track\relse\rplay\rend if\rend tell\rend if\r"
},
"refreshInterval": 1,
"image": {
"base64":
"iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTB3WXx3UXh3VXx7XYBkXFRpVLRyURmIaeAQAAAAEdFJOUwDDO3fSqUUkAAABbklEQVRIx61VbW6DMAztoAeYNA7ApB6gkzhAWS24wIAL0HABaK6/pHFNEhy8TXu/kPzkPD/8cTj8K7KPAqB+K5NhQPCUrABCXe7HOUYYZxgVRLiG8RfY4DUgFFtC7cffAfZTFBwBdhWEKfgEq4ocEjgj4ZQifO6/QG9kkETp1dDeVWfRKx3XYSW0LoqY5kCElXDrQkyeCCuh6WL0M4nIWQIyzqixdfKU1koFDKvyCA8NJMzU4xiD+b4kfHRpsIyKc6hBwjVptFHVY51EMAINNDFGJITKDNQcdpX74Hz0CQ3rY5qwMp4EIxrlafzrsYZ2Veb0DkRgfNCUok4Y1fqEijfyi2b8RE9beWqa48Y/uvCNMcH9btfUi+/CGLR1vhL6Zz9N/vBlaCU+7lwY/cmJ67Ryen/2tj23PLqJBodZH8vgj544vOL4pxfI5acrSFxi8hrkU9TSKr78ZpnL50A8KPJJEo+afBblwyqf5j/iGys5j6ScrST2AAAAAElFTkSuQmCC"
},
"align": "left",
"width": 222
},
{ "type": "inputsource", "align": "right", "width": 40},
{
"type": "staticButton",
"align": "right",
"width": 40,
"title": "Xnip",
"bordered": true,
"action": "appleScript",
"actionAppleScript": {
"inline": "if application \"xnip\" is running then\rtell application \"System Events\"\rkey code 7 using {shift down, command down}\rend tell\relse\rtell application \"xnip\"\ractivate\rend tell\rend if\r"
},
},
{ "type": "mute", "bordered": true, "width": 40, "align": "right"},
{
"type": "volumeDown",
"bordered": true,
"align": "right",
"width": 40
},
// { "type": "volume", "width": 40, "align": "right"},
{
"type": "volumeUp",
"bordered": true,
"align": "right",
"width": 40
},
{ "type": "brightnessDown", "width": 40, "align": "right", "bordered": true },
// { "type": "brightness", "align": "right", "width": 40},
{ "type": "brightnessUp", "width": 40, "align": "right", "bordered": true },
{
"type": "dnd",
"width": 40,
"bordered": true,
"align": "right",
"longAction": "shellScript",
"longExecutablePath": "/usr/bin/pmset",
"longShellArguments": ["sleepnow"]
},
{
"type": "weather",
"refreshInterval": 60,
"units": "metric",
"align": "right",
"bordered": false,
"icon_type": "images",
"api_key": "84645702688e83a35e2549ca77f73369"
},
{ "type": "battery", "align": "right", "bordered": false },
{
"type": "timeButton",
"align": "right",
"formatTemplate": "E MMM d h:mm",
"bordered": false
}
]