Open window of an application and move it to a different Space in OSX, is it possible?
By : Jkhandelwal
Date : March 29 2020, 07:55 AM
it helps some times Short answer: you can't unless you make more than one copy of the application and change its bundle identifier (not recommended for lots of reasons). Spaces works on an application basis, not a per-instance basis (which is uncommon on OS X for GUI apps anyway) nor on a per-window basis of an app.
|
Why does hammerspoon return focused window nil when it should not?
By : Cau Phan
Date : March 29 2020, 07:55 AM
will help you It seemed that it might have been a incompatibility of the OS I had. Make sure to have the latest OS X and hammerspoon software.
|
Hammerspoon: drawing a line in the title bar of a window
By : F.W
Date : March 29 2020, 07:55 AM
Hope that helps As is, the code will place the bar windows width away from the left side of the screen. The seemingly fixed position is because the window width is the same. Use: code :
hs.geometry.point(f.x + f.w, f.y)
|
How to move an application between monitors in Hammerspoon?
By : dystopian protagonis
Date : March 29 2020, 07:55 AM
I wish did fix the issue. The screen library helps finding the right "display". allScreens lists the displays in the same order as they are defined by the system. The hs.window:moveToScreen function moves to a given screen, where it's possible to set the UUID. The following code works for me. Hitting CTRL+ALT+CMD+ 3 moves the currently focused window to display 3, same as if you would choose "Display 3" in the Dock's Option menu. code :
function moveWindowToDisplay(d)
return function()
local displays = hs.screen.allScreens()
local win = hs.window.focusedWindow()
win:moveToScreen(displays[d], false, true)
end
end
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "1", moveWindowToDisplay(1))
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "2", moveWindowToDisplay(2))
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "3", moveWindowToDisplay(3))
|
Lua Hammerspoon: hs.window.focusedWindow() is nil when assigned to a variable
By : Mark John
Date : March 29 2020, 07:55 AM
wish of those help Hammerspoon executes each line as it's own chunk, so local variables are only available in that chunk, and no longer once the chunk has been executed. If you want to access variables after execution of a chunk, make them global, i.e. drop the 'local' keyword.
|