From 0b35987265e69aa63f252f4ad3c40a9bb22f3c63 Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Sun, 22 Nov 2026 21:26:49 -0800 Subject: [PATCH] fix(xdg): +updated wezterm themes --- home/Winter/Base.nix | 12 ++++++------ home/Winter/common/features/nvimConf.nix | 8 ++++---- home/Winter/common/features/wezterm/wezterm.lua | 12 ++++-------- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/home/Winter/Base.nix b/home/Winter/Base.nix index acce8ae..e8d1502 100644 --- a/home/Winter/Base.nix +++ b/home/Winter/Base.nix @@ -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" ]; diff --git a/home/Winter/common/features/nvimConf.nix b/home/Winter/common/features/nvimConf.nix index a8e2a07..7dd0765 100644 --- a/home/Winter/common/features/nvimConf.nix +++ b/home/Winter/common/features/nvimConf.nix @@ -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 ''; }; diff --git a/home/Winter/common/features/wezterm/wezterm.lua b/home/Winter/common/features/wezterm/wezterm.lua index 5dc12ce..f12beb8 100644 --- a/home/Winter/common/features/wezterm/wezterm.lua +++ b/home/Winter/common/features/wezterm/wezterm.lua @@ -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