-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreset.json
121 lines (119 loc) · 4.02 KB
/
preset.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[
{
"refreshInterval": 60,
"type": "battery",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/act.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/sys.png" },
"width": 96
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/finder.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/finder.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/iterm.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/iterm.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/brave.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/brave.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/telegram.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/telegram.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/clion.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/clion.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/slack.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/slack.png" },
"width": 48
},
{
"type": "staticButton",
"title": "",
"action": "appleScript",
"actionAppleScript": { "filePath": "~/.mtmr_kpr/scpt/music.scpt" },
"align": "left",
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/music.png" },
"width": 48
},
{ "type": "timeButton", "formatTemplate": "HH:mm", "width": 48, "align": "left" },
{
"type": "shellScriptTitledButton",
"width": 20,
"refreshInterval": 2,
"source": {
"inline": "usr/bin/python3 ~/.mtmr_kpr/src/ping.py | awk -F% '{p = $1; c = \"\\033[31m\"; if (p == 2) c = \"\\033[33m\"; if (p == 3) c = \"\\033[32m\"; printf \"%s⇅\\n\", c}'"
},
"align": "right",
"bordered": false
},
{ "type": "brightnessDown", "width": 48, "align": "right", "bordered": true },
{ "type": "brightnessUp", "width": 48, "align": "right", "bordered": true },
{ "type": "inputsource", "width": 48, "align": "right", "bordered": true },
{ "type": "appleScriptTitledButton", "width": 52, "align": "right",
"action": "appleScript",
"actionAppleScript": { "inline": "set volume output volume 1" },
"source": {
"inline": "output volume of (get volume settings)"
},
"refreshInterval": 0.5,
"image": { "filePath": "~/.mtmr_kpr/pic/volume_2.png" },
"bordered": false
},
{
"type": "volume",
"image": { "filePath": "~/.mtmr_kpr/pic/point.png" },
"width": 128,
"align": "right"
},
{ "type": "staticButton", "width": 48, "align": "right",
"title": "",
"action": "appleScript",
"actionAppleScript": { "inline": "set volume output volume 0" },
"bordered": true,
"image": { "filePath": "~/.mtmr_kpr/pic/volume_mute.png" }
}
]