mirror of
https://github.com/kepler155c/opus
synced 2025-01-03 20:30:28 +00:00
prepare for lock screen
This commit is contained in:
parent
e5a5f76fb3
commit
aaab059cee
@ -264,7 +264,7 @@ kernel.hook('multishell_redraw', function()
|
|||||||
write(currentTab.sx - 1,
|
write(currentTab.sx - 1,
|
||||||
' ' .. currentTab.title:sub(1, currentTab.width - 1) .. ' ',
|
' ' .. currentTab.title:sub(1, currentTab.width - 1) .. ' ',
|
||||||
_colors.focusBackgroundColor, _colors.focusTextColor)
|
_colors.focusBackgroundColor, _colors.focusTextColor)
|
||||||
if not currentTab.isOverview then
|
if not currentTab.noTerminate then
|
||||||
write(w, closeInd, _colors.backgroundColor, _colors.focusTextColor)
|
write(w, closeInd, _colors.backgroundColor, _colors.focusTextColor)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -340,6 +340,7 @@ kernel.hook('kernel_ready', function()
|
|||||||
overviewId = multishell.openTab({
|
overviewId = multishell.openTab({
|
||||||
path = config.launcher or 'sys/apps/Overview.lua',
|
path = config.launcher or 'sys/apps/Overview.lua',
|
||||||
isOverview = true,
|
isOverview = true,
|
||||||
|
noTerminate = true,
|
||||||
focused = true,
|
focused = true,
|
||||||
title = '+',
|
title = '+',
|
||||||
env = env,
|
env = env,
|
||||||
|
@ -179,6 +179,10 @@ function kernel.run(args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function kernel.raise(uid)
|
function kernel.raise(uid)
|
||||||
|
if kernel.getFocused() and kernel.getFocused().pinned then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
local routine = Util.find(kernel.routines, 'uid', uid)
|
local routine = Util.find(kernel.routines, 'uid', uid)
|
||||||
|
|
||||||
if routine then
|
if routine then
|
||||||
|
@ -7,7 +7,7 @@ local tween = {
|
|||||||
|
|
||||||
Copyright (c) 2014 Enrique García Cota, Yuichi Tateno, Emmanuel Oga
|
Copyright (c) 2014 Enrique García Cota, Yuichi Tateno, Emmanuel Oga
|
||||||
|
|
||||||
Licence details: https://opensource.org/licenses/MIT
|
license details: https://opensource.org/licenses/MIT
|
||||||
]]
|
]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user