Compare commits
3 Commits
e57eb09567
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5af469ae3e | |||
| d0e69a03fa | |||
| e7a9ccde93 |
+8
-3
@@ -166,9 +166,14 @@ local function executeRestore(filePath, layoutName)
|
||||
win:setFrame({x=x, y=y, w=w, h=h}, 0)
|
||||
end
|
||||
end
|
||||
|
||||
-- Establish sequential window targeting intervals
|
||||
-- Shifts execution past the window manager canvas updates
|
||||
moveAction()
|
||||
hs.timer.doAfter(0.5, moveAction)
|
||||
hs.timer.doAfter(1.5, moveAction)
|
||||
local intervals = isStubborn and {0.2, 0.6, 1.2, 2.2} or {0.3, 1.0}
|
||||
for _, delay in ipairs(intervals) do
|
||||
hs.timer.doAfter(delay, moveAction)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -178,7 +183,7 @@ local function executeRestore(filePath, layoutName)
|
||||
|
||||
if launchedAny then
|
||||
hs.alert.show("Syncing Apps...", 3)
|
||||
hs.timer.doAfter(4.5, moveWindows)
|
||||
hs.timer.doAfter(5.0, moveWindows) -- Bumped to 5s to let heavy frameworks build window handles completely
|
||||
else
|
||||
moveWindows()
|
||||
end
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
{
|
||||
"screenCount" : 3,
|
||||
"windows" : [
|
||||
{
|
||||
"x" : 0,
|
||||
"winTitle" : "ASUS Wireless Router GT-AX11000 - VPN Status - Google Chrome",
|
||||
"y" : 30,
|
||||
"appName" : "Google Chrome",
|
||||
"h" : 957,
|
||||
"w" : 1920,
|
||||
"bundleID" : "com.google.Chrome"
|
||||
},
|
||||
{
|
||||
"x" : 2883,
|
||||
"winTitle" : "francop — -zsh — 120×30",
|
||||
"y" : 25,
|
||||
"appName" : "Terminal",
|
||||
"h" : 499,
|
||||
"w" : 860,
|
||||
"bundleID" : "com.apple.Terminal"
|
||||
},
|
||||
{
|
||||
"x" : 2879,
|
||||
"winTitle" : "raycast-scripts — -zsh — 120×30",
|
||||
"y" : 528,
|
||||
"appName" : "Terminal",
|
||||
"h" : 499,
|
||||
"w" : 860,
|
||||
"bundleID" : "com.apple.Terminal"
|
||||
},
|
||||
{
|
||||
"x" : -862,
|
||||
"winTitle" : "raycast-scripts — francop@nextcloud: \/mnt\/docs\/Consume — -zsh — 120×30",
|
||||
"y" : 65,
|
||||
"appName" : "Terminal",
|
||||
"h" : 499,
|
||||
"w" : 860,
|
||||
"bundleID" : "com.apple.Terminal"
|
||||
},
|
||||
{
|
||||
"x" : 1920,
|
||||
"winTitle" : "AFFiNE",
|
||||
"y" : 0,
|
||||
"appName" : "AFFiNE",
|
||||
"h" : 1080,
|
||||
"w" : 960,
|
||||
"bundleID" : "pro.affine.app"
|
||||
},
|
||||
{
|
||||
"x" : 0,
|
||||
"winTitle" : "LayoutSelector.lua — .hammerspoon",
|
||||
"y" : 30,
|
||||
"appName" : "Code",
|
||||
"h" : 957,
|
||||
"w" : 1920,
|
||||
"bundleID" : "com.microsoft.VSCode"
|
||||
},
|
||||
{
|
||||
"x" : 453,
|
||||
"winTitle" : "Software Update",
|
||||
"y" : 177,
|
||||
"appName" : "System Settings",
|
||||
"h" : 671,
|
||||
"w" : 723,
|
||||
"bundleID" : "com.apple.systempreferences"
|
||||
}
|
||||
],
|
||||
"saveTime" : "2026-05-17 17:58:50",
|
||||
"mode" : "Docked"
|
||||
}
|
||||
@@ -3,50 +3,50 @@
|
||||
{
|
||||
"x" : 1920,
|
||||
"winTitle" : "AFFiNE",
|
||||
"y" : 0,
|
||||
"appName" : "AFFiNE",
|
||||
"y" : 0,
|
||||
"h" : 1080,
|
||||
"w" : 960,
|
||||
"bundleID" : "pro.affine.app"
|
||||
},
|
||||
{
|
||||
"x" : 0,
|
||||
"winTitle" : "TrueNAS - 192.168.1.135 - Google Chrome",
|
||||
"winTitle" : "[D] Coding Workspace.json (Working Tree) ([D] Coding Workspace.json) — .hammerspoon",
|
||||
"appName" : "Code",
|
||||
"y" : 30,
|
||||
"appName" : "Google Chrome",
|
||||
"h" : 957,
|
||||
"h" : 956,
|
||||
"w" : 1920,
|
||||
"bundleID" : "com.google.Chrome"
|
||||
"bundleID" : "com.microsoft.VSCode"
|
||||
},
|
||||
{
|
||||
"x" : 2880,
|
||||
"winTitle" : "francop — -zsh — 134×33",
|
||||
"y" : 536,
|
||||
"winTitle" : "francop — francop@media: \/mnt\/media\/Movies — -zsh — 134×33",
|
||||
"appName" : "Terminal",
|
||||
"y" : 536,
|
||||
"h" : 544,
|
||||
"w" : 958,
|
||||
"bundleID" : "com.apple.Terminal"
|
||||
},
|
||||
{
|
||||
"x" : 2880,
|
||||
"winTitle" : "francop — tail -f \/tmp\/litellm.out.log — 134×33",
|
||||
"y" : 0,
|
||||
"winTitle" : "raycast-scripts — francop@nextcloud: \/mnt\/docs\/Consume — -zsh — 134×33",
|
||||
"appName" : "Terminal",
|
||||
"y" : 0,
|
||||
"h" : 544,
|
||||
"w" : 958,
|
||||
"bundleID" : "com.apple.Terminal"
|
||||
},
|
||||
{
|
||||
"x" : 0,
|
||||
"winTitle" : "WindowManager.lua — .hammerspoon",
|
||||
"winTitle" : "anker desk outlet - Google Search - Google Chrome",
|
||||
"appName" : "Google Chrome",
|
||||
"y" : 30,
|
||||
"appName" : "Code",
|
||||
"h" : 956,
|
||||
"h" : 957,
|
||||
"w" : 1920,
|
||||
"bundleID" : "com.microsoft.VSCode"
|
||||
"bundleID" : "com.google.Chrome"
|
||||
}
|
||||
],
|
||||
"screenCount" : 3,
|
||||
"saveTime" : "2026-05-08 23:19:07",
|
||||
"saveTime" : "2026-05-24 14:34:05",
|
||||
"mode" : "Docked"
|
||||
}
|
||||
Reference in New Issue
Block a user