forked from Toxblh/MTMR-presets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minimalistic.json
112 lines (112 loc) · 2.9 KB
/
minimalistic.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
[
{
"type": "escape",
"width": 80,
"align": "left",
"title":"Esc ",
"image": {
"filePath": "~/Pictures/mtmr/esc.png"
}
},
{
"type": "shellScriptTitledButton",
"source": {
"inline": "echo ' ⌜ukieTux⌟'"
},
"align": "left",
"image": {
"filePath": "~/Pictures/mtmr/profile.png"
},
"bordered": false
},
{
"type": "battery",
"align": "left",
"bordered": false,
"image": {
"filePath": "~/Pictures/mtmr/battery.png"
}
},
{
"type": "shellScriptTitledButton",
"source": {
"inline": "bash ~/Pictures/mtmr/trackpad_battery.sh"
},
"refreshInterval": 2,
"align": "left",
"bordered": false,
"image": {
"filePath": "~/Pictures/mtmr/trackpad.png"
}
},
{
"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": {
"filePath": "~/Pictures/mtmr/cpu.png"
},
"bordered": false
},
{
"type": "appleScriptTitledButton",
"source": {
"inline": "set mem to do shell script \"ps -A -o %mem | awk '{s+=$1}END{print s}'\"\rreturn mem & \"%\""
},
"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"
},
"refreshInterval": 2,
"align": "left",
"image": {
"filePath": "~/Pictures/mtmr/ram.png"
}
},
{
"type": "shellScriptTitledButton",
"source": {
"inline": "bash ~/Pictures/mtmr/free_space.sh"
},
"refreshInterval": 2,
"align": "left",
"bordered": false,
"image": {
"filePath": "~/Pictures/mtmr/computer.png"
}
},
{
"type": "weather",
"align": "right",
"icon_type": "text",
"api_key": "ca93a0bb8cdb428552660d83249e4bc9",
"bordered": false
},
{
"type": "timeButton",
"formatTemplate": "⌜dd MMM ✖︎ HH:mm⌟",
"align": "right",
"bordered": false,
"image": {
"filePath": "~/Pictures/mtmr/clock.png"
}
},
{
"type": "sleep",
"width": 40,
"align": "right",
"bordered": true,
"title": "",
"image": {
"filePath": "~/Pictures/mtmr/sleep.png"
}
}
]