1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Get rid of all references to /Users/x/ in favor of ~

This commit is contained in:
Mark Rickert 2019-11-06 15:03:57 -07:00
parent 5eb2d73c94
commit 1ae2041d0d
3 changed files with 16 additions and 16 deletions

View File

@ -128,7 +128,7 @@ The pre-installed configuration contains less or more than you'll probably want,
"type": "appleScriptTitledButton", "type": "appleScriptTitledButton",
"refreshInterval": 60, //optional "refreshInterval": 60, //optional
"source": { "source": {
"filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt", "filePath": "~/Library/Application Support/MTMR/iTunes.nowPlaying.scpt",
// or // or
"inline": "tell application \"Finder\"\rif not (exists window 1) then\rmake new Finder window\rset target of front window to path to home folder as string\rend if\ractivate\rend tell", "inline": "tell application \"Finder\"\rif not (exists window 1) then\rmake new Finder window\rset target of front window to path to home folder as string\rend if\ractivate\rend tell",
// or // or
@ -176,7 +176,7 @@ Example of "CPU load" button which also changes color based on load value.
"title": "stats", "title": "stats",
"items": [ "items": [
{ "type": "play" }, { "type": "play" },
{ "type": "mute" }, { "type": "mute" },
... ...
] ]
} }

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
{ {
"type": "exitTouchbar", "type": "exitTouchbar",
"image": { "image": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/Resources/logo.png" "filePath": "~/git/selfProjects/MTMR/Resources/logo.png"
}, },
"width": 36, "align": "left" }, "width": 36, "align": "left" },
{ "type": "brightnessDown", "width": 36, "align": "left" }, { "type": "brightnessDown", "width": 36, "align": "left" },
@ -12,46 +12,46 @@
"type": "appleScriptTitledButton", "type": "appleScriptTitledButton",
"source": { "source": {
"filePath": "filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.nowPlaying.scpt" "~/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.nowPlaying.scpt"
}, },
"action": "appleScript", "action": "appleScript",
"actionAppleScript": { "actionAppleScript": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.next.scpt" "filePath": "~/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.next.scpt"
}, },
"refreshInterval": 1, "refreshInterval": 1,
"image": { "image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/iTunes.png" "filePath": "~/git/selfProjects/btt-touchbar-preset/icons/iTunes.png"
} }
}, },
{ {
"type": "appleScriptTitledButton", "type": "appleScriptTitledButton",
"source": { "source": {
"filePath": "filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.nowPlaying.scpt" "~/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.nowPlaying.scpt"
}, },
"action": "appleScript", "action": "appleScript",
"actionAppleScript": { "actionAppleScript": {
"filePath": "filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.next.scpt" "~/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.next.scpt"
}, },
"refreshInterval": 1, "refreshInterval": 1,
"image": { "image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/Spotify.png" "filePath": "~/git/selfProjects/btt-touchbar-preset/icons/Spotify.png"
} }
}, },
{ {
"type": "appleScriptTitledButton", "type": "appleScriptTitledButton",
"source": { "source": {
"filePath": "filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.nowPlaying.scpt" "~/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.nowPlaying.scpt"
}, },
"action": "appleScript", "action": "appleScript",
"actionAppleScript": { "actionAppleScript": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.next.scpt" "filePath": "~/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.next.scpt"
}, },
"refreshInterval": 1, "refreshInterval": 1,
"image": { "image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/Vox.png" "filePath": "~/git/selfProjects/btt-touchbar-preset/icons/Vox.png"
} }
}, },
{ {