-
Notifications
You must be signed in to change notification settings - Fork 487
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
Throwing window to a space is broken #1676
Comments
For me this seems to have started happening after update to Sonoma (14.5). |
This happened to me after update to Sonoma 14.6.1. |
Having the same issue, but with a wee bit more additional detail:
|
It turns out that I was on 0.21.0, which is the latest version according to the website and the in-app update checker. 0.21.1 fixes this exact issue. To update I did |
Followed @dklymenk's advice and upgraded via |
@dklymenk , you said above that you are using Sonoma 14.5? The 0.21.1 update fixed the issue for M1 Macs (not Intel) on Sonoma 14.5 but it appears to have returned again in Sonoma 14.6 according to the others in this thread. As a result, I'm waiting to upgrade to Sonoma 14.6 until Amethyst is compatible. Can you confirm that you are indeed still on 14.5 and have not updated to the latest OS? |
+1, having the same issue :/ |
Same issue: Monterey 12.7.6 |
The issue is still present, when I tried mapping the keys to something other than arrow keys it worked.
However, these don't:
or
|
Unfortunately, when I try to build the bundle from the source code I get
Can I do anything? Thanks for the pointer, anyway! |
Also dealing with this issue.
|
@dklymenk your approach worked at one point when I was still using the previous Mac OS version with Amethyst 0.21.1. Now that I've upgraded to Sequoia, and have upgraded to Amethyst 0.21.2, it doesn't work anymore. Throwing a window to another space makes the window disappear then quickly reappear in the same space. |
same issue |
Having the same Issue on Mac OS 15.0 (Sequoia) and Amethyst 0.21.2 (112). |
@pfortuny |
brew to me too, i am using Mac OS 15 |
same here, just upgraded to 15.0 on an M1 MBP. my current workaround is click and hold on the title bar and press |
This is amazing! I didn't know you could hold a title bar and move to other workspaces natively in MacOS! Thanks for this tip! I've been waiting to upgrade to 15.0 so that I don't break Amethyst yet but without a foreseeable solution coming, I'm trying to figure out what options I have if I move forward anyway. Space throwing is extremely important to me and I use it non-stop so having some kind of solution is critical.
Sent via Superhuman ( ***@***.*** )
…On Sat, Sep 28, 2024 at 11:47 AM, gargantuanprism < ***@***.*** > wrote:
same here, just upgraded to 15.0 on an M1 MBP. my current workaround is
click and hold on the title bar and press CTRL+N to move to workspace N
—
Reply to this email directly, view it on GitHub (
#1676 (comment) ) ,
or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ADGZONGMBLZXJ24334E4X4DZY3FQJAVCNFSM6AAAAABM2RTJLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBQG4YTINRQHE
).
You are receiving this because you commented. Message ID: <ianyh/Amethyst/issues/1676/2380714609
@ github. com>
|
You can also go into Mission Control, drag a window to the top, which will bring down a view with all of the available spaces, at which point you can drop the window into one of them. (I think. I'm typing from my phone.) |
So based on the fact you can hold the title bar and use control 1 to go to desktop one for example. local hyper = {"cmd", "ctrl", "alt", "shift"}
function clickAndHoldTitleBar()
local win = hs.window.focusedWindow()
if win then
local frame = win:frame()
local titleBarX = frame.x + 20
local titleBarY = frame.y + 10
local clickEvent = hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseDown, {x = titleBarX, y = titleBarY})
clickEvent:post()
return {x = titleBarX, y = titleBarY}
end
return nil
end
function releaseClick(clickPosition)
if clickPosition then
local releaseEvent = hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseUp, clickPosition)
releaseEvent:post()
end
end
function handleDesktopSwitch(key)
local clickPosition = clickAndHoldTitleBar()
hs.eventtap.keyStroke({"ctrl"}, key)
releaseClick(clickPosition)
end
hs.hotkey.bind(hyper, "1", function()
handleDesktopSwitch("1")
end)
hs.hotkey.bind(hyper, "2", function()
handleDesktopSwitch("2")
end)
hs.hotkey.bind(hyper, "3", function()
handleDesktopSwitch("3")
end)
hs.hotkey.bind(hyper, "4", function()
handleDesktopSwitch("4")
end) |
I did some slight modifications to @BAAWM script thanks for providing that! Works like a charm as a workaround. It still has some downsides:
--Bind to whatever combination you like to use
local hyper = { "alt", "shift" }
function clickAndHoldTitleBar()
local win = hs.window.focusedWindow()
if win then
local frame = win:frame()
local titleBarX = frame.x + 80
local titleBarY = frame.y + 10
local clickEvent =
hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseDown, { x = titleBarX, y = titleBarY })
clickEvent:post()
return { x = titleBarX, y = titleBarY }
end
return nil
end
function releaseClick(clickPosition)
if clickPosition then
local releaseEvent = hs.eventtap.event.newMouseEvent(hs.eventtap.event.types.leftMouseUp, clickPosition)
releaseEvent:post()
end
end
function handleDesktopSwitch(key)
local clickPosition = clickAndHoldTitleBar()
-- You might need to change this depending on your keymapping to switch desktop
hs.eventtap.keyStroke({ "cmd" }, key)
releaseClick(clickPosition)
end
for i = 1, 9 do
hs.hotkey.bind(hyper, tostring(i), function()
handleDesktopSwitch(tostring(i))
end)
end |
After further research and testing (albeit in Sonoma, not Sequoia), I found alternatives for both Space Throwing and Monitor Throwing that use the same key bindings as Amethyst's functions but avoid the need for Amethyst. While I haven't yet been able to test in Sequoia, the users on this BTT thread have tested it in Sequoia and it seems to work. MONITOR THROWING - using native macOS shortcuts:Full detailed screen recording here.
SPACE THROWING - using BetterTouchTool:Full detailed screen recording here.
I hope this helps! |
All these workarounds follow the windows in the space, wondering if there is a way in hammerspoon to get the current space number so I can go back to it (it'll probably look absolutely rubbish though) |
I think it's still broken in sequoia 15.1 beta. |
The BetterTouchTool for space throwing has been very helpful. Thanks. Monitor throwing is still working for me as of version 0.21.2 |
Glad to hear it! Out of curiosity @RandyBoBandy92 , what version of macOS are you using with Amethyst 0.21.2 where monitor throwing is working? I was under the impression that it was broken on Sequoia (15.0). |
Ah.. You know maybe I should have paid better attention.. I am still on 13.6.9 |
Can confirm On Sequoia 15.01 and using Amethyst 2.1.2 (112), throwing windows to workspaces doesn't work; the window that's being thrown quickly disappears and reapers on the same spot. Was previously working on Monterey before the upgrade. |
Thanks for the update @RandyBoBandy92 . In that case, I'm still curious that I understand correctly--maybe @casualNavigator can confirm--is it just Space Throwing or is it also Monitor Throwing that is broken in Sequoia? |
It's just space throwing. |
@ianyh Thank you for EVERYTHING you've done with Amethyst. It's my first time using a window manager and I've been using it for about a year now. I'm an accountant and it has revolutionized the way I do my work on macOS. It makes me so much faster and it has basically solved all my needs to quickly open adjacent windows for comparing financial data and organizing categories of my work across multiple spaces. Glad for this opportunity to thank you personally! |
when i upgrade to macos 15, i have the same problem 😭 |
I have attempted to move the window to another space using Hammersapon and BetterTouchTool, following the solution mentioned above. However, it seems that these solutions all involve following the moved window. |
SizeUp also had the ability to move windows to adjacent left and right spaces. |
Describe the bug
I'm able to move windows to different displays just fine.
I'm unable to throw a window to an absolute or relative desktop/space. The default key bindings are ctrl+alt+shift+<left/right> to throw the focused window to the prev/next space and ctrl+alt+shift+ to throw the focused window to the
num
-th spaceApplications:
All applications
To Reproduce
Steps to reproduce the behavior:
num
-th spaceExpected behavior
The selected window should move to the next/previous space, or the
num
-th space.Screenshots
None
Versions:
Debug Info
Note:
--include-apps
will list your manageable applications, but is optional if you don't want to list that.Additional context
N/A
The text was updated successfully, but these errors were encountered: