Last active
December 11, 2019 19:20
-
-
Save juniorbird/c0fc8a98e81ea18648337b65c6e77053 to your computer and use it in GitHub Desktop.
My MTMR (https://github.com/toxblh/mtmr) preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "escape", | |
"width": 64, | |
"align": "left" | |
}, | |
{ | |
"type": "illuminationDown", | |
"width": 40, | |
"align": "left", | |
"bordered": false | |
}, | |
{ | |
"type": "illuminationUp", | |
"width": 40, | |
"align": "left", | |
"bordered": false | |
}, | |
{ | |
"type": "mute", | |
"width": 40, | |
"align": "left" | |
}, | |
{ | |
"type": "staticButton", | |
"title": "⬅️", | |
"width": 40, | |
"bordered": false, | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 123\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
}, | |
"longAction": "appleScript", | |
"longActionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 125\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
} | |
}, | |
{ | |
"type": "staticButton", | |
"title": "↔️", | |
"bordered": false, | |
"width": 50, | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 3\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
}, | |
"longAction": "appleScript", | |
"longActionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 124 using { option down }\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
} | |
}, | |
{ | |
"type": "staticButton", | |
"title": "➡️", | |
"width": 40, | |
"bordered": false, | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 124\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
}, | |
"longAction": "appleScript", | |
"longActionAppleScript": { | |
"inline": "tell application \"System Events\" to key code 11 using { option down }\r\tdelay 0.5\r\ttell application \"System Events\" to key code 126\r\tdelay 0.25\r\ttell application\"System Events\" to key code 53" | |
} | |
}, | |
{ | |
"type": "staticButton", | |
"title": "🔆🔆🔆 🔉🔉", | |
"width": 400, | |
"align": "center" | |
}, | |
{ | |
"type": "appleScriptTitledButton", | |
"align": "right", | |
"width": 250, | |
"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\"\"\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\rtell application \"Spotify\"to pause\rend if\rend tell\rend if\r" | |
}, | |
"longAction": "appleScript", | |
"longActionAppleScript": { | |
"inline": "if application \"Spotify\" is running then\rtell application \"Spotify\"\rif player state is playing then\rnext track\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" | |
} | |
}, | |
{ | |
"type": "weather", | |
"align": "right", | |
"icon_type": "images", | |
"api_key": "ca93a0bb8cdb428552660d83249e4bc9", | |
"units": "imperial", | |
"bordered": false | |
}, | |
{ | |
"type": "dnd", | |
"align": "right", | |
"width": 40, | |
"bordered": true | |
}, | |
{ | |
"type": "staticButton", | |
"title": "🔒", | |
"action": "shellScript", | |
"executablePath": "/usr/bin/open", | |
"shellArguments": ["-a", "ScreenSaverEngine"], | |
"align": "right", | |
"width": 40 | |
}, | |
{ | |
"type": "delete", | |
"title": "⌫", | |
"width": 64, | |
"align": "right" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment