chore(wezterm): remove unused code, switch to builtin colorscheme
This commit is contained in:
parent
f27623fc33
commit
fe7cac83bd
2 changed files with 1 additions and 61 deletions
|
@ -18,11 +18,6 @@
|
||||||
refreshPeriod: 168h
|
refreshPeriod: 168h
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
.config/wezterm/colors/catppuccin:
|
|
||||||
type: git-repo
|
|
||||||
url: "https://github.com/catppuccin/wezterm.git"
|
|
||||||
refreshPeriod: 168h
|
|
||||||
|
|
||||||
.config/qutebrowser/catppuccin:
|
.config/qutebrowser/catppuccin:
|
||||||
type: git-repo
|
type: git-repo
|
||||||
url: "https://github.com/catppuccin/qutebrowser.git"
|
url: "https://github.com/catppuccin/qutebrowser.git"
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
-- vim:foldmethod=marker:foldlevel=1
|
-- vim:foldmethod=marker:foldlevel=1
|
||||||
local wezterm = require("wezterm")
|
local wezterm = require("wezterm")
|
||||||
|
|
||||||
local catppuccin = require("colors/catppuccin/catppuccin").setup({
|
|
||||||
sync_flavours = {
|
|
||||||
light = "latte",
|
|
||||||
dark = "mocha",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- fonts I like, with the settings I prefer {{{
|
-- fonts I like, with the settings I prefer {{{
|
||||||
-- kept seperately from the rest of the config so that I can easily change them
|
-- kept seperately from the rest of the config so that I can easily change them
|
||||||
local fonts = {
|
local fonts = {
|
||||||
|
@ -38,51 +31,6 @@ local fonts = {
|
||||||
}
|
}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- make numbers superscript or subscript {{{
|
|
||||||
---@diagnostic disable-next-line: unused-local,unused-function
|
|
||||||
local function style_number(number, style)
|
|
||||||
local superscript = {
|
|
||||||
"⁰",
|
|
||||||
"¹",
|
|
||||||
"²",
|
|
||||||
"³",
|
|
||||||
"⁴",
|
|
||||||
"⁵",
|
|
||||||
"⁶",
|
|
||||||
"⁷",
|
|
||||||
"⁸",
|
|
||||||
"⁹",
|
|
||||||
}
|
|
||||||
local subscript = {
|
|
||||||
"₀",
|
|
||||||
"₁",
|
|
||||||
"₂",
|
|
||||||
"₃",
|
|
||||||
"₄",
|
|
||||||
"₅",
|
|
||||||
"₆",
|
|
||||||
"₇",
|
|
||||||
"₈",
|
|
||||||
"₉",
|
|
||||||
}
|
|
||||||
|
|
||||||
local numbers = (style == "super") and superscript or subscript
|
|
||||||
|
|
||||||
local number_string = tostring(number)
|
|
||||||
local result = ""
|
|
||||||
for i = 1, #number_string do
|
|
||||||
local char = number_string:sub(i, i)
|
|
||||||
local nr = tonumber(char)
|
|
||||||
if number then
|
|
||||||
result = result .. numbers[nr + 1]
|
|
||||||
else
|
|
||||||
result = result .. char
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return result
|
|
||||||
end
|
|
||||||
-- }}}
|
|
||||||
|
|
||||||
-- custom tab bar {{{
|
-- custom tab bar {{{
|
||||||
---@diagnostic disable-next-line: unused-local
|
---@diagnostic disable-next-line: unused-local
|
||||||
wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
|
wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
|
||||||
|
@ -149,9 +97,6 @@ local function get_os()
|
||||||
return "linux"
|
return "linux"
|
||||||
elseif string.find(target, "darwin") then
|
elseif string.find(target, "darwin") then
|
||||||
return "macos"
|
return "macos"
|
||||||
else
|
|
||||||
-- who cares
|
|
||||||
return "OH GOD PLEASE NO"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -232,7 +177,7 @@ return {
|
||||||
window_decorations = "RESIZE",
|
window_decorations = "RESIZE",
|
||||||
window_padding = window_padding,
|
window_padding = window_padding,
|
||||||
-- theme
|
-- theme
|
||||||
colors = catppuccin,
|
color_scheme = "Catppuccin Mocha",
|
||||||
-- nightly only
|
-- nightly only
|
||||||
clean_exit_codes = { 130 },
|
clean_exit_codes = { 130 },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue