on-monitor-detected
callback
#958
Replies: 6 comments
-
++ I was about to suggest something similar and found this proposal. : ) I'm trying to run a command when the list of monitors changes (connecting/disconnection my 2nd monitor); in my case I want to trigger an event on my sketchybar as an example. We could call it @nikitabobko I'm happy to jump on and learn how to contribute to the project if you or other maintainers are keen on having this in place, I'd just need some directions. |
Beta Was this translation helpful? Give feedback.
-
The issue doesn't mention use cases
Why do you add AeroSpace in the mix? Shouldn't it be handled purely by sketchybar?
I don't like |
Beta Was this translation helpful? Give feedback.
-
@nikitabobko I've edited the original comment to include more details about my specific desires and use case. |
Beta Was this translation helpful? Give feedback.
-
Building off of the original feature request I'm looking for functionality that would allow aerospace to assign workspaces to take display precedence when an external monitor is connected. For instance, I'd like display my I also have a different monitor at home, and I'd like to configure some default tiling to trigger when that display is connected. |
Beta Was this translation helpful? Give feedback.
-
@nikitabobko trying to oversimplify the use case(s): it's achieving the same or similar things you'd be able to do through Integration with Sketchybar was just a silly example. : ) I know naming things is polemical, and it was a dummy suggestion; I'm not too fussed about it and just really interested in the capability itself (by the way, personaly I like and follow Keep up the great work mate and thanks for your attention. |
Beta Was this translation helpful? Give feedback.
-
I was looking for this as well and came across this feature request. +1 It would be extremely useful for me to be able to exec a command when aerospace detects that a new monitor has been added or removed. Yabai currently offers this with the following:
|
Beta Was this translation helpful? Give feedback.
-
Not sure how feasible this is as a feature, but for those who want to execute a callback when a secondary display is detected a callback or condition for the existing callbacks could be useful. These are just two things that came to mind immediately when trying to solve this. I'm open to suggestions if this is a solved problem using the provided configuration, or otherwise. I think it'd be easily achievable using the CLI commands in a shell script but I'd appreciate a way for handling it within the config if possible.
I like the idea of binding applications to workspaces with mnemonic names, my browser lives on workspace
b
, terminal emulator ont
, etc. I set up the window detection callbacks for the apps that I care about to move them to the desired workspaces. This works great when I don't have my external monitor connected. However, my main external monitor is a ultra-wide and more than capable of having 2 or 3 applications side-by-side.I want to bind applications to workspaces and I want separate bindings depending on whether or not specific external monitor(s) is connected. I also want to be able to execute commands when I connect my external monitor.
Beta Was this translation helpful? Give feedback.
All reactions