Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open spotify when closed #77

Open
kernelpanikk opened this issue Mar 31, 2021 · 1 comment
Open

Open spotify when closed #77

kernelpanikk opened this issue Mar 31, 2021 · 1 comment

Comments

@kernelpanikk
Copy link

Ciao,

hope this is the correct place to ask for, if not feel free to close the issue.
Would it be possible to make the spotify widget be visible when the app is closed and make open the app by tapping it?

@sonyminer
Copy link
Contributor

Not sure if a clickable button to open Spotify may work for you. I have a button to open the sound / brightness display. This is what works for me.

{"type": "group", "title": "🔊", "align": "right","bordered": false, "width":40, "items":[
{"type": "illuminationDown", "bordered": false, "align": "left" },
{"type": "illuminationUp", "bordered": false, "align": "left" },
{"type": "brightnessDown", "bordered": false, "align": "left", "width": 20},
{"type": "brightness", "width": 100, "align": "left", "image": {"base64": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACAAQMAAAD58POIAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURffLOPfLNyaSVzUAAAACdFJOU/kBxOqnWgAAAbJJREFUSMfVljtyhDAQBVulQCFH4CgcDR1NR9ERFBKoeA5GfGddtkNvwFINFKP5tED22+Zxwviv6QVKfIEc/iNoF5gkpLIeYI8SUp4PsAUJiekADQntF6isQjvxCTrhAJlFqMMBeIH9BMsD7DAb2BhvYbIyNAOCZIWqYKGTpDZJFQu9EKVd44RxQRq3IrULWD62C8wSssWUZEsR0k6wcDOrJZmoBpMKI+s5qkBQCQOUJADVOECdOsDS0gDbsgHMfT4rVwHSrZQFIN5ABka8BgDgAeZ+BztBgvUEnSgVlhNsTFJjvoF5HAZorBpdYKAiSRbqNyBIUr6AjZMdPwO72R40MElS+wZUWA+wQ6LAYkFvdIhkmA+wQSDDdIAGAZ6A34H0x0fca11gBZZsIHSIfnE/5+NjCn/OuiuUB+/aunZwDeNayjXdTpDN0wlY+r1PfWu75nfj8RogN2JuCN2Y5qgMwTI0wGPUnQw6Qarx0sVNKA5Mn6VUL22lIbZoYitDbPmlvocc9Umfl2D7adz1reC3pF8av4m+DCenp/ndZuG3E7fhuC3pH2+vnz8V3MfE+bnxBTXuuIMTrLWHAAAAAElFTkSuQmCC"}},
{"type": "brightnessUp", "bordered": false, "align": "left", "width": 36},
{ "type": "music", "align": "center"},
{"type": "mute", "bordered": false, "align": "right"},
{"type": "volumeDown", "bordered": false, "align": "right", "width": 36},
{"type": "volume", "width": 100, "align": "right"},
{"type": "volumeUp", "bordered": false, "align": "right", "width": 36},
{"type": "appleScriptTitledButton","align": "right", "source": {"inline": "if application "Spotify" is running then\rtell application "Spotify"\rif player state is playing then\rif shuffling is true then\rreturn "on"\relse\rreturn "off"\rend if\relse\rreturn ""\rend if\rend tell\rend if\rreturn """}, "action": "appleScript", "actionAppleScript": {"inline": "tell application "Spotify"\rif shuffling then\rset shuffling to false\relse\rset shuffling to true\rend if\rend tell"}, "image": {"base64": "iVBORw0KGgoAAAANSUhEUgAAAQIAAAECCAYAAAAVT9lQAAAAAXNSR0IArs4c6QAAD8NJREFUeAHtnUGW3LYRhqd7fIg823fJaCU97xwdKJMDTbLLs1ZW7mL5+RCemahs44lNkQQKKAAF4tNC7CaBQuEr9k8UCHLu7vgHAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAgZMT+PbDP/558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lCPLZYNCSAChjA3TCEEG1DY5YsAIlA/HghBfca0UEAAESiAp6iKEChgUbQtAUSgHW+EoB1rWlIQQAQUsAyK8qoyA4iYsCdwf70+5lid9X0COayWdRgRLGnw2RUB7d9bRATyw4cQ5LOjZgMCqWKACJQFAyEo40ftBgRiYoAIlAcBIShniIUGBPbEABGwgY8Q2HDESgMCazFABOygIwR2LLHUgEAQA0SgAWyagIBnAp7/JoVnbvgGAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCAAAQhAAAIQgAAEIAABCEAAAhCAAAQgAAEIQAACEIAABCwJ/B810BSwJGjUrwAAAABJRU5ErkJggg=="}, "refreshInterval": 2,"bordered": false},
{"type": "previous", "bordered": false, "align": "right"},
{"type": "play", "bordered": false, "align": "right"},
{"type": "next", "bordered": false, "align": "right"},
{"type": "close", "bordered": true, "width": 64, "align": "right"},]
},

Let us know if this is what you are looking for...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants