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

Allow targetting widgets to screens using AppleScript #503

Open
entropitor opened this issue Feb 14, 2023 · 1 comment
Open

Allow targetting widgets to screens using AppleScript #503

entropitor opened this issue Feb 14, 2023 · 1 comment

Comments

@entropitor
Copy link

It would be nice if we could do something like

tell application id "tracesOf.Uebersicht" to show widget id "my-widget" on screen "Display 1"

I often connect to two extra screens with similar settings and sometimes it switches them so I have to manually switch Uebersicht to have the right config again. It would be nice if I can automate this automatically.

@enkidu-jones
Copy link

I thought this might be achievable — at least for a two monitor setup — by first setting show on all screens and then hide on the main display:
tell application id "tracesOf.Uebersicht" to set showOnAllScreens of widget id "tempgraph-widget-index-coffee" to true
Followed by telling the main display's copy to be hidden:
tell application id "tracesOf.Uebersicht" to set showOnMainScreen of widget id "tempgraph-widget-index-coffee" to false
Logically this would leave the widget displayed on the second screen. But this doesn't seem to work — at least for me.

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