1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-16 13:18:06 +00:00

spaces->tabs + cleanup + pathing fixes

This commit is contained in:
kepler155c@gmail.com
2019-06-18 15:19:24 -04:00
parent 82ec4db50f
commit 3c22a872b0
37 changed files with 1948 additions and 1703 deletions

View File

@@ -5,23 +5,23 @@ local shell = _ENV.shell
local launcherTab = kernel.getCurrent()
kernel.hook('kernel_focus', function(_, eventData)
local focusTab = eventData and eventData[1]
if focusTab == launcherTab.uid then
local previousTab = eventData[2]
local nextTab = launcherTab
if not previousTab then
for _, v in pairs(kernel.routines) do
if not v.hidden and v.uid > nextTab.uid then
nextTab = v
end
end
end
if nextTab == launcherTab then
shell.switchTab(shell.openTab('sys/apps/shell.lua'))
else
shell.switchTab(nextTab.uid)
end
end
local focusTab = eventData and eventData[1]
if focusTab == launcherTab.uid then
local previousTab = eventData[2]
local nextTab = launcherTab
if not previousTab then
for _, v in pairs(kernel.routines) do
if not v.hidden and v.uid > nextTab.uid then
nextTab = v
end
end
end
if nextTab == launcherTab then
shell.switchTab(shell.openTab('sys/apps/shell.lua'))
else
shell.switchTab(nextTab.uid)
end
end
end)
while os.pullEventRaw() do end
os.pullEventRaw('kernel_halt')