wezterm styling

This commit is contained in:
xqtc 2024-10-26 16:41:19 +02:00
parent 7ddb352bc5
commit ebbeb8eda8
Signed by: xqtc
GPG key ID: 2C064D095926D9D1

View file

@ -114,11 +114,12 @@ wezterm.on('update-status', function(window, pane)
local bat = '' local bat = ''
for _, b in ipairs(wezterm.battery_info()) do for _, b in ipairs(wezterm.battery_info()) do
bat = '|🔋 ' .. string.format('%.0f%%', b.state_of_charge * 100) .. ' | ' -- bat = '|🔋 ' .. string.format('%.0f%%', b.state_of_charge * 100) .. ' | '
bat = '| BAT ' .. string.format('%.0f%%', b.state_of_charge * 100) .. ' | '
end end
window:set_right_status(wezterm.format { window:set_right_status(wezterm.format {
{ Text = bat .. date }, { Text = bat .. date .. ' 🐱 |' },
}) })
end) end)
wezterm.on('update-status', function(window, pane) wezterm.on('update-status', function(window, pane)