Used rounded form of p10k and make wezterm status match
This commit is contained in:
parent
eabcb6f615
commit
52bec5865d
|
@ -8,7 +8,7 @@ function basename(s)
|
||||||
end
|
end
|
||||||
|
|
||||||
wezterm.on("update-right-status", function(window, pane)
|
wezterm.on("update-right-status", function(window, pane)
|
||||||
local scheme = wezterm.color.get_builtin_schemes()["kanagawabones"]
|
local scheme = wezterm.color.get_builtin_schemes()["Catppuccin Macchiato"]
|
||||||
-- Each element holds the text for a cell in a "powerline" style << fade
|
-- Each element holds the text for a cell in a "powerline" style << fade
|
||||||
local cells = {}
|
local cells = {}
|
||||||
|
|
||||||
|
@ -21,10 +21,10 @@ wezterm.on("update-right-status", function(window, pane)
|
||||||
|
|
||||||
-- I like my date/time in this style: "Wed Mar 3 08:14"
|
-- I like my date/time in this style: "Wed Mar 3 08:14"
|
||||||
-- local date = wezterm.strftime("%a %b %-d %H:%M")
|
-- local date = wezterm.strftime("%a %b %-d %H:%M")
|
||||||
local date = wezterm.strftime("%Y-%m-%d")
|
local date = wezterm.strftime("%Y-%m-%d")
|
||||||
table.insert(cells, date)
|
table.insert(cells, date)
|
||||||
local time = wezterm.strftime("%H:%M")
|
local time = wezterm.strftime("%H:%M")
|
||||||
table.insert(cells, time)
|
table.insert(cells, time)
|
||||||
|
|
||||||
-- Get current hostname to track which device I'm on
|
-- Get current hostname to track which device I'm on
|
||||||
table.insert(cells, wezterm.hostname())
|
table.insert(cells, wezterm.hostname())
|
||||||
|
@ -34,10 +34,10 @@ wezterm.on("update-right-status", function(window, pane)
|
||||||
table.insert(cells, string.format("%.0f%%", b.state_of_charge * 100))
|
table.insert(cells, string.format("%.0f%%", b.state_of_charge * 100))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- The powerline < symbol
|
-- The powerline ( symbol
|
||||||
local LEFT_ARROW = utf8.char(0xe0b3)
|
local LEFT_SEP = utf8.char(0xe0b7)
|
||||||
-- The filled in variant of the < symbol
|
-- The filled in variant of the ( symbol
|
||||||
local SOLID_LEFT_ARROW = utf8.char(0xe0b2)
|
local SOLID_LEFT_SEP = utf8.char(0xe0b6)
|
||||||
|
|
||||||
-- Define various colours used from active colourscheme
|
-- Define various colours used from active colourscheme
|
||||||
local tab_bar_bg = "#333333" -- Not defined in scheme for some reason...
|
local tab_bar_bg = "#333333" -- Not defined in scheme for some reason...
|
||||||
|
@ -49,14 +49,14 @@ wezterm.on("update-right-status", function(window, pane)
|
||||||
|
|
||||||
table.insert(elements, { Foreground = { Color = tab_bg } })
|
table.insert(elements, { Foreground = { Color = tab_bg } })
|
||||||
table.insert(elements, { Background = { Color = tab_bar_bg } })
|
table.insert(elements, { Background = { Color = tab_bar_bg } })
|
||||||
table.insert(elements, { Text = SOLID_LEFT_ARROW })
|
table.insert(elements, { Text = SOLID_LEFT_SEP })
|
||||||
while #cells > 1 do
|
while #cells > 1 do
|
||||||
local text = table.remove(cells, 1)
|
local text = table.remove(cells, 1)
|
||||||
table.insert(elements, { Foreground = { Color = tab_fg } })
|
table.insert(elements, { Foreground = { Color = tab_fg } })
|
||||||
table.insert(elements, { Background = { Color = tab_bg } })
|
table.insert(elements, { Background = { Color = tab_bg } })
|
||||||
table.insert(elements, { Text = " " .. text .. " " })
|
table.insert(elements, { Text = " " .. text .. " " })
|
||||||
table.insert(elements, { Foreground = { Color = tab_fg } })
|
table.insert(elements, { Foreground = { Color = tab_fg } })
|
||||||
table.insert(elements, { Text = LEFT_ARROW })
|
table.insert(elements, { Text = LEFT_SEP })
|
||||||
end
|
end
|
||||||
local text = table.remove(cells, 1)
|
local text = table.remove(cells, 1)
|
||||||
table.insert(elements, { Foreground = { Color = tab_fg } })
|
table.insert(elements, { Foreground = { Color = tab_fg } })
|
||||||
|
|
626
home/p10k.zsh
626
home/p10k.zsh
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue