Replies: 1 comment 1 reply
-
Did you try ignoring VLC in Rectangle/Pro? When VLC is frontmost, in the Rectangle/Pro menu bar menu select Ignore VLC. Let me know if that's not what you're looking for. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rectangle and its paid cousin Rectangle Pro both suffer from integration quirks with VLC. For example, attempts to maximize VLC via Rectangle result in the VLC video expanding beyond a proper Fit to Screen, with the bottom of the video dangling behind the macOS Dock.
Previously, it was noted that VLC may not have the best macOS accessibility API integration. Be that as it may, there should still be a way to effectively get the Rectangle maximize hotkey to forward to VLC menu hotkeys. That would provide a practical workaround.
VLC offers its own menu hotkey action Fit to Screen in the Video menubar section. The default hotkey for this action is Command+3.
macOS allows overriding the hotkeys associated with menubar actions, in System Settings -> Keyboard -> Keyboard Shortcuts...
However, we then have a sub-problem of a collision between Rectangle's maximize tiling hotkey and VLC's Fit to Screen maximize hotkey.
Fortuantely, we have two coding strategies we can try to resolve the integration problems, and they're not mutually exclusive.
First, it may prove helpful for Rectangle to provide a per-app option, to unregister the hotkeys for a given list of tiling actions whenever the app is foregrounded. Then, when a UI element not from the app is foregrounded, Rectangle could reregister the tiling hotkey. That's one way to allow the same hotkey to quietly pass through to more complicated applications.
Another strategy involves Rectangle providing a per-app option to replace tiling actions with forwarding custom hotkey combinations. This method has the benefit of not having to override VLC's Fit to Screen default hotkey; Rectangle could learn to simply replace the maximize accessibility API call with VLC's Fit to Screen hotkey / an arbitrary app hotkey of the user's choice. As a bonus, this strategy gathers the entire system configuration into the Rectangle app, making it much simpler to quickly provision the desired settings onto additional computers via Rectangle configuration import & export.
Until at least one of these enhancements is implemented, then I have to terminate Rectangle with
killall Rectangle
(I disable the menulet, and I don't see a button in the Rectangle management UI to quit the program.) Unfortunately, that destroys productivity.When Rectangle does integrate well with other applications, I feel rather productive. I wish Rectangle would sort out VLC problems much faster. Previously, Rectangle (and grandpappy ShiftIt) were a major reason I stuck with macOS at all.
I had hoped that Rectangle Pro would include these kinds of workarounds to integrate better with VLC, but I was unable to find such options. So there is nothing available in Rectangle Pro that would compel me to purchase it.
Beta Was this translation helpful? Give feedback.
All reactions