mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
sway
This commit is contained in:
parent
2b498c9fd3
commit
2d3d4675b4
10 changed files with 263 additions and 28 deletions
|
|
@ -1,18 +1,18 @@
|
|||
-- ~/.config/yazi/init.lua
|
||||
function Linemode:size_and_mtime()
|
||||
local time = math.floor(self._file.cha.mtime or 0)
|
||||
if time == 0 then
|
||||
time = ""
|
||||
elseif os.date("%Y", time) == os.date("%Y") then
|
||||
time = os.date("%b %d %H:%M", time)
|
||||
else
|
||||
time = os.date("%b %d %Y", time)
|
||||
end
|
||||
|
||||
local size = self._file:size()
|
||||
return string.format("%s %s", size and ya.readable_size(size) or "-", time)
|
||||
end
|
||||
|
||||
-- require("dual-pane"):setup({ enabled = true })
|
||||
require("starship"):setup()
|
||||
-- require("yaziline"):setup()
|
||||
-- function Linemode:size_and_mtime()
|
||||
-- local time = math.floor(self._file.cha.mtime or 0)
|
||||
-- if time == 0 then
|
||||
-- time = ""
|
||||
-- elseif os.date("%Y", time) == os.date("%Y") then
|
||||
-- time = os.date("%b %d %H:%M", time)
|
||||
-- else
|
||||
-- time = os.date("%b %d %Y", time)
|
||||
-- end
|
||||
--
|
||||
-- local size = self._file:size()
|
||||
-- return string.format("%s %s", size and ya.readable_size(size) or "-", time)
|
||||
-- end
|
||||
--
|
||||
-- -- require("dual-pane"):setup({ enabled = true })
|
||||
-- require("starship"):setup()
|
||||
-- -- require("yaziline"):setup()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue