fix(xdg): +updated wezterm themes
This commit is contained in:
1 parent
b3448a728f
commit
44c3cf6c60
4 files changed
+14
-21
No files matched your search
@@ -108,12 +108,12 @@
|
||||
"x-scheme-handler/file" = [ "yazi-wezterm.desktop" ];
|
||||
|
||||
# Images: gThumb
|
||||
"image/jpeg" = [ "gthumb.desktop" ];
|
||||
"image/png" = [ "gthumb.desktop" ];
|
||||
"image/gif" = [ "gthumb.desktop" ];
|
||||
"image/webp" = [ "gthumb.desktop" ];
|
||||
"image/tiff" = [ "gthumb.desktop" ];
|
||||
"image/bmp" = [ "gthumb.desktop" ];
|
||||
"image/jpeg" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/png" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/gif" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/webp" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/tiff" = [ "org.gnome.gthumb.desktop" ];
|
||||
"image/bmp" = [ "org.gnome.gthumb.desktop" ];
|
||||
|
||||
# Documents: Okular
|
||||
"application/pdf" = [ "org.kde.okular.desktop" ];
|
||||
|
||||
@@ -156,9 +156,9 @@
|
||||
|
||||
};
|
||||
|
||||
# Define the global helper function so you can run :lua setWezTheme('solid') anytime
|
||||
# Define the global helper function so you can run :lua swtt('solid') anytime
|
||||
extraConfigLua = ''
|
||||
_G.setWezTheme = function(theme)
|
||||
_G.swtt = function(theme)
|
||||
local val = theme or ""
|
||||
local b64 = vim.base64.encode(val)
|
||||
local seq = string.format('\x1b]1337;SetUserVar=%s=%s\x07', 'WEZTERM_THEME', b64)
|
||||
@@ -200,7 +200,7 @@
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
setWezTheme('nvim')
|
||||
swtt('nvim')
|
||||
end
|
||||
'';
|
||||
};
|
||||
@@ -213,7 +213,7 @@
|
||||
callback = {
|
||||
__raw = ''
|
||||
function()
|
||||
setWezTheme("")
|
||||
swtt("")
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
local wezterm = require 'wezterm'
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
-- Launch fish directly instead of your system login shell
|
||||
-- sets fish as defualt shell
|
||||
config.default_prog = { 'fish', '-l' }
|
||||
|
||||
-- Base Appearance & Tab Bar (Default / Fallback state)
|
||||
config.window_background_opacity = 0.60
|
||||
config.wayland_window_background_blur = true
|
||||
config.hide_tab_bar_if_only_one_tab = true
|
||||
@@ -19,6 +18,7 @@ config.window_padding = {
|
||||
config.font_size = 14.0
|
||||
config.colors = {
|
||||
foreground = '#dddddd',
|
||||
background = '#000000'
|
||||
}
|
||||
|
||||
-- Helper to safely check if a file exists before applying it
|
||||
@@ -38,18 +38,14 @@ end
|
||||
-- Keys correspond to the value of the WEZTERM_THEME user variable.
|
||||
local profiles = {
|
||||
nvim = {
|
||||
colors = { foreground = '#ffffff' },
|
||||
colors = { foreground = '#e0e0e0' },
|
||||
window_background_image = wezterm.config_dir .. '/texture.png',
|
||||
window_background_opacity = 1.0,
|
||||
},
|
||||
solid = {
|
||||
colors = { foreground = '#eeeeee', background = '#1e1e2e' },
|
||||
colors = { foreground = '#dddddd', background = '#000000' },
|
||||
window_background_opacity = 1.0,
|
||||
},
|
||||
light = {
|
||||
colors = { foreground = '#111111', background = '#f5f5f5' },
|
||||
window_background_opacity = 0.95,
|
||||
},
|
||||
}
|
||||
|
||||
-- Track the active profile per window so we don't trigger redundant reloads
|
||||
|
||||
Reference in new issue
Block a user