removed gnome

This commit is contained in:
Matt Nish-Lapidus 2025-05-21 15:51:19 -04:00
parent e26f4e6826
commit 849d8ad8d0
4 changed files with 73 additions and 82 deletions

View file

@ -12,6 +12,39 @@ require("restore"):setup({
show_confirm = true,
})
Status:children_add(function()
local h = cx.active.current.hovered
local elements = {}
local btime_formatted = nil
if h and h.cha and h.cha.btime then
local timestamp_num = tonumber(h.cha.btime)
if timestamp_num and timestamp_num > 0 then
btime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
end
end
local mtime_formatted = nil
if h and h.cha and h.cha.mtime then
local timestamp_num = tonumber(h.cha.mtime)
if timestamp_num and timestamp_num > 0 then
mtime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
end
end
if btime_formatted then
table.insert(elements, ui.Span("B:"):fg("cyan"))
table.insert(elements, ui.Span(btime_formatted.. " "):fg("blue"))
end
if mtime_formatted then
table.insert(elements, ui.Span("M:"):fg("cyan"))
table.insert(elements, ui.Span(mtime_formatted.. " "):fg("blue"))
end
return ui.Line(elements)
end, 500, Status.RIGHT)
Status:children_add(function()
local h = cx.active.current.hovered
if h == nil or ya.target_family() ~= "unix" then