forked from Toxblh/MTMR-presets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adm_crypto_preset.json
136 lines (116 loc) Β· 10 KB
/
adm_crypto_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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[
{ "type": "escape", "align": "left" },
{ "type": "exitTouchbar", "align": "left" },
//NIGHT SHIFT
/*{ "type": "nightShift", "align": "right"},*/
//NETWORK TRAFFIC
/* {"type": "network",
"width": 80,
"flip": true,
"align":"left",
"bordered":false
}, */
{
"type": "shellScriptTitledButton",
"width": 80,
"refreshInterval": 2,
"source": {
"inline": "top -l 2 -n 0 -F | egrep -o ' \\d*\\.\\d+% idle' | tail -1 | awk -F% '{p = 100 - $1; if (p > 30) c = \"\\033[33m\"; if (p > 70) c = \"\\033[30;43m\"; printf \"%s%4.1f%%\\n\", c, p}'"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "activate application \"Activity Monitor\"\rtell application \"System Events\"\r\ttell process \"Activity Monitor\"\r\t\ttell radio button \"CPU\" of radio group 1 of group 2 of toolbar 1 of window 1 to perform action \"AXPress\"\r\tend tell\rend tell"
},
"align": "left",
"image": {
"base64":
"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA/1BMVEUAAADaACbYACfYACfjABzXACjYACfXACjYACfYACfYACfYACfdACLYACfXACjYACfVACv/AADXACjYACfYACfXACjYACfXACj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YJYkkADeYTckYuJYlkiSVBeCKZtSY/gxlqezlxEt+pdFg6zBesPXn1ih8Aj5vkAels9PhYCkPsl++kg0AQu4dyuqmugIQm+qS5Nv6N+D7wm7d1skPc4xu666Fhd6BxU6r+jub8tNaWNxK29EhsdpR/sVn7FlLm0txPdgni+JrFNd3p+K67MQtyrsp3w2G7xbHd5Plv83z3Wj6b3V9N9ssFv7afaa//ZPn3wD4/vje8PP/N7TebS0hgZhEAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE4LTA4LTIyVDE3OjUyOjIyKzAyOjAwc2qUYAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOC0wOC0yMlQxNzo1MjoyMiswMjowMAI3LNwAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"
},
"bordered": false
},
{
"type": "shellScriptTitledButton",
"bordered": false,
"refreshInterval": 10,
"source": {
"inline": "curl -s 'https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=API_KEY' | python -c 'import sys, json; data = json.load(sys.stdin); print((data)[\"result\"][\"ProposeGasPrice\"]+\" Gwei\")'"
},
"action": "appleScript",
"actionAppleScript": {
"inline": "tell application \"Safari\"\rtell window 1\rset current tab to (make new tab with properties {URL:\"https://etherscan.io/gastracker\"})\rend tell\rend tell"
},
"align": "left",
"image": {
"base64":
"iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAADX0lEQVRoBe1YzWsTURCf2URrrQoFFZFNmsYeWryIFQ+CB8GLiKgUvPhR6H/gwZugF8GLevPj5qE91KJV8eDBk+DJ+k0p2DZJs0lBqJ/Yim3yxklit2+zu9mvpKm4D9rM+83M772Zefv2vQUIW5iBMANhBpqZAXQanGbivUDQDyRanGzd6/ENJLQ7iMwcsEUd/QWNsk0MwDFWRyqDQUbNAOSeGjAfHcWFD0++EU2J14PVTQD1GKdhHP98AM7PgHPu3gPRIIDyFiKwwA97gvvHgJQ+fmzqwV9zBgEGoEVAPA8d2m3eTYQ0yguWh3j32g3F4gig0iPpXIs02dUC0UInKKJNd1oS37ErN6X3WfC3hIi3P1LOYEK7WTV5nRs7suOwHg4C0LQOuhAoneimdGwYIr+/AhQnQNCY/hfBSUrFLso0/gJQaBCT2RGZyEpGNf8ZCAesdFYYZdQ+oOJr1p3i5ddqZcP4YRn3F4Cga8skPOgRSsd/UEq9sIzJv5jUnnP/pYxZyey/n+s6ZDvxkhPRN/5/S/b3HgDCHCbz73QSwi3MvJlfdFe5vLxkLNszS1QGEW4wh83bni5jp4aYzLXz77Ds5j0AglmZAFoXn3Dm5jlzzEV3aXzbJoO+1EHImzAJoCm1i40OSJAk0hJvEQ8kwCB6DwCYUGq449M8D/6wDHGOoK31uqSuiIQGH5NeUfaYsBJA8KW8WezKfbDUM+h9GyXsobQ6ZiSk7Xpf0ADr9+r9siC2lspg30S7ricxAZHIWbb9BansRzwEBXs/PwEgbOTBem1JkV9ntfRWjqhwdH8PpogLvAW/sjKzwnwsISua5mFhAM3LfWXksAJhBQJmIFxCARMY2D2sQOAUVgg2rPBgzaPDil1FanoFaHpnnG9c/dLEUpLsKNY6YZWd+XoX+OuZ4yyMBif4zP/ICNn3ml6Bqqnd40+Oj6uwmt21EUDp3A90CTLaaa/fS73fB2rmw4OSxBU+949CsfATZmannc79dszNCwAjWS/nfrsA1sYSspudCzwMwEWSGmpieg8Q8Z02o97nL2pH+R6+Gs+IBgqe9Ps8mJdQNt7Nl/LjqzT5UnViIMQ5v2UyBwAgnUv80nr28z2meYmsK0zAUnSf5ykEcShG54K4h75hBv7nDPwB2Sji2exwgKEAAAAASUVORK5CYII="
}
},
// --- Apple Music ---
{
"type": "appleScriptTitledButton",
"source":
{
"inline":
"if application \"Music\" is running then\rtell application \"Music\"\rif (player state is playing) or (player state is paused) \rreturn (get artist of current track) & \" β \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
},
"action": "appleScript",
"actionAppleScript": {
"inline":
"tell application \"Music\"\rif player state is paused\rplay\relse\rpause\rend if\rend tell\r"
},
"longAction": "appleScript",
"longActionAppleScript": {
"inline":
"if application \"Music\" is running then \rtell application \"Music\"\rnext track & play\rend tell\rend if\r"
},
"refreshInterval": 1,
"align": "center",
"width": 380,
"image": {
"base64":
"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAADAUExURUdwTOVVZCzB+3qc0gkDBgEBAgcKEwAAAA4EBP5aVU2V95iJv7V3rtBOvH5W6jaOyclScKZGX3wuQCMuUqZN7+NQYXtDvFd9/sxYni2z6UhBhyhvnIp7sf38/PXz9ePm69/k6fHv8/j29+3q7/v6+ufq7uvu8fTw8+1egOFki/dbboVj/HNy/T+j/dNtnEul81vC8Vmf3OeRqOBVofK4xZfF7sDb7PLe6LxU1KKK79PL6vrW3fh4g5Zi4bi16daa0A3Qc90AAAAddFJOUwD3/v0uOlYNG/z+/v7998OYYztt/Le2/eDqi5jEo2rNTwAABMtJREFUWMPdl1tjqjoQhauC0Hqvta26JVxUQBQFRPBS/f//as8kISBqd/twXs5KjBDyrZkEFfP09D+WoigqFxz+mlbVXncweEZVBoNuD1x+E1vtMVZoURn01J/mob52KRNuj4k5mZjJcRueFotFpfv6EwdVRfy0tSdXSranheN0/zkRSB7x42Q6udExdBy3972Fog4o/kBg4X6bhPJaeX7eTqeT6b0MJtPpdOu6n49XQgX+dOQ8vpWEvYn/2AHiL052PpoROcsOtND17ztQ3rwTuCQz9O/moKiMf6BkG/puKBzurKQ64PmbU2bDzUxk3Uql4lZcl3Vpvt9VbxLoLZwjY7E1WcNZoB0XpbELie/3Sg6KVHG2jGPs1LTCE2UXFfgIgtBgyq8d/E/pehJq1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j/DhWP7X/30Zkvj4WMYlj10MOISXf7DlkPvvH6g43u0oCzDS1U5f/sHWC3d7cn3UAQf4HeHfwxXQY4yu/HTDKNXro3Gngw4vw2FnPKrXJfUXu0fqIdeFZOnXm08FTRSxcf391pW7oNGT8vRf6i9jqljwYzAm6AAAAABJRU5ErkJggg=="
}
},
//Spotify
{
"type": "appleScriptTitledButton",
"source":
{
"inline":
"if application \"Spotify\" is running then\rtell application \"Spotify\"\rif (player state is playing) or (player state is paused) \rreturn (get artist of current track) & \" β \" & (get name of current track)\relse\rreturn \"\"\rend if\rend tell\rend if\rreturn \"\"\r"
},
"action": "appleScript",
"actionAppleScript": {
"inline":
"tell application \"Spotify\"\rif player state is paused\rplay\relse\rpause\rend if\rend tell\r"
},
"longAction": "appleScript",
"longActionAppleScript": {
"inline":
"if application \"Spotify\" is running then \rtell application \"Spotify\"\rnext track & play\rend tell\rend if\r"
},
"refreshInterval": 1,
"align": "center",
"width": 300,
"image": {
"base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAYUExURUdwTB3WXx3UXh3VXx7XYBkXFRpVLRyURmIaeAQAAAAEdFJOUwDDO3fSqUUkAAABbklEQVRIx61VbW6DMAztoAeYNA7ApB6gkzhAWS24wIAL0HABaK6/pHFNEhy8TXu/kPzkPD/8cTj8K7KPAqB+K5NhQPCUrABCXe7HOUYYZxgVRLiG8RfY4DUgFFtC7cffAfZTFBwBdhWEKfgEq4ocEjgj4ZQifO6/QG9kkETp1dDeVWfRKx3XYSW0LoqY5kCElXDrQkyeCCuh6WL0M4nIWQIyzqixdfKU1koFDKvyCA8NJMzU4xiD+b4kfHRpsIyKc6hBwjVptFHVY51EMAINNDFGJITKDNQcdpX74Hz0CQ3rY5qwMp4EIxrlafzrsYZ2Veb0DkRgfNCUok4Y1fqEijfyi2b8RE9beWqa48Y/uvCNMcH9btfUi+/CGLR1vhL6Zz9N/vBlaCU+7lwY/cmJ67Ryen/2tj23PLqJBodZH8vgj544vOL4pxfI5acrSFxi8hrkU9TSKr78ZpnL50A8KPJJEo+afBblwyqf5j/iGys5j6ScrST2AAAAAElFTkSuQmCC"
}
},
//{ "type": "previous", "width": 40, "bordered": false, "align": "center" },
//{ "type": "play", "width": 30, "bordered": false, "align": "center" },
//{ "type": "next", "width": 30, "bordered": false, "align": "center" },
//{ "type": "sleep", "align": "right", "bordered": false},
{ "type": "currency",
"width": 100,
"refreshInterval": 30,
"bordered": false,
"align": "right",
"from": "BTC",
"to": "USD",
"full": true},
{ "type": "mute", "bordered": false, "align": "right"},
//{ "type": "weather", "refreshInterval": 60, "units": "metric", "align": "right", "bordered": false, "icon_type": "images", "api_key": "84645702688e83a35e2549ca77f73369"},
{ "type": "battery", "align": "right", "bordered": false },
{ "type": "inputsource", "align": "right"},
{ "type": "timeButton", "align": "right", "formatTemplate": "E MMM d HH:mm", "bordered": false }
]