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