Compare commits

..

3 Commits

Author SHA1 Message Date
francop 5af469ae3e Updated layout 2026-05-31 22:05:42 -04:00
francop d0e69a03fa Updates to layouts 2026-05-24 12:59:01 -04:00
francop e7a9ccde93 Establish sequential window targeting intervals 2026-05-24 12:58:44 -04:00
3 changed files with 22 additions and 87 deletions
+8 -3
View File
@@ -166,9 +166,14 @@ local function executeRestore(filePath, layoutName)
win:setFrame({x=x, y=y, w=w, h=h}, 0) win:setFrame({x=x, y=y, w=w, h=h}, 0)
end end
end end
-- Establish sequential window targeting intervals
-- Shifts execution past the window manager canvas updates
moveAction() moveAction()
hs.timer.doAfter(0.5, moveAction) local intervals = isStubborn and {0.2, 0.6, 1.2, 2.2} or {0.3, 1.0}
hs.timer.doAfter(1.5, moveAction) for _, delay in ipairs(intervals) do
hs.timer.doAfter(delay, moveAction)
end
end end
end end
end end
@@ -178,7 +183,7 @@ local function executeRestore(filePath, layoutName)
if launchedAny then if launchedAny then
hs.alert.show("Syncing Apps...", 3) 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 else
moveWindows() moveWindows()
end 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"
}
+14 -14
View File
@@ -3,50 +3,50 @@
{ {
"x" : 1920, "x" : 1920,
"winTitle" : "AFFiNE", "winTitle" : "AFFiNE",
"y" : 0,
"appName" : "AFFiNE", "appName" : "AFFiNE",
"y" : 0,
"h" : 1080, "h" : 1080,
"w" : 960, "w" : 960,
"bundleID" : "pro.affine.app" "bundleID" : "pro.affine.app"
}, },
{ {
"x" : 0, "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, "y" : 30,
"appName" : "Google Chrome", "h" : 956,
"h" : 957,
"w" : 1920, "w" : 1920,
"bundleID" : "com.google.Chrome" "bundleID" : "com.microsoft.VSCode"
}, },
{ {
"x" : 2880, "x" : 2880,
"winTitle" : "francop — -zsh — 134×33", "winTitle" : "francop — francop@media: \/mnt\/media\/Movies — -zsh — 134×33",
"y" : 536,
"appName" : "Terminal", "appName" : "Terminal",
"y" : 536,
"h" : 544, "h" : 544,
"w" : 958, "w" : 958,
"bundleID" : "com.apple.Terminal" "bundleID" : "com.apple.Terminal"
}, },
{ {
"x" : 2880, "x" : 2880,
"winTitle" : "francop — tail -f \/tmp\/litellm.out.log — 134×33", "winTitle" : "raycast-scripts — francop@nextcloud: \/mnt\/docs\/Consume — -zsh — 134×33",
"y" : 0,
"appName" : "Terminal", "appName" : "Terminal",
"y" : 0,
"h" : 544, "h" : 544,
"w" : 958, "w" : 958,
"bundleID" : "com.apple.Terminal" "bundleID" : "com.apple.Terminal"
}, },
{ {
"x" : 0, "x" : 0,
"winTitle" : "WindowManager.lua — .hammerspoon", "winTitle" : "anker desk outlet - Google Search - Google Chrome",
"appName" : "Google Chrome",
"y" : 30, "y" : 30,
"appName" : "Code", "h" : 957,
"h" : 956,
"w" : 1920, "w" : 1920,
"bundleID" : "com.microsoft.VSCode" "bundleID" : "com.google.Chrome"
} }
], ],
"screenCount" : 3, "screenCount" : 3,
"saveTime" : "2026-05-08 23:19:07", "saveTime" : "2026-05-24 14:34:05",
"mode" : "Docked" "mode" : "Docked"
} }