From 1c596e4918dca3e47783aa5f064939f80bdea166 Mon Sep 17 00:00:00 2001 From: "beeb5k (Vivek Tiwari)" Date: Fri, 5 Jun 2026 00:07:09 +0530 Subject: remove unused matugen templates and firefox addons ( sponsorBlocker and h264ify ) --- .../modules/matugen/templates/matugen-neovim.nix | 74 ---------------------- .../modules/matugen/templates/matugen-pywalfox.nix | 37 ----------- .../matugen/templates/matugen-xresources.nix | 53 ---------------- 3 files changed, 164 deletions(-) delete mode 100644 common/modules/matugen/templates/matugen-neovim.nix delete mode 100644 common/modules/matugen/templates/matugen-pywalfox.nix delete mode 100644 common/modules/matugen/templates/matugen-xresources.nix (limited to 'common/modules/matugen/templates') diff --git a/common/modules/matugen/templates/matugen-neovim.nix b/common/modules/matugen/templates/matugen-neovim.nix deleted file mode 100644 index 9a1b558..0000000 --- a/common/modules/matugen/templates/matugen-neovim.nix +++ /dev/null @@ -1,74 +0,0 @@ -{ - config, - lib, - ... -}: -{ - xdg.configFile = { - "matugen/templates/neovim.lua" = { - text = '' - local present, base46 = pcall(require, "base46") - if not present or not base46._DMS_SUPPORT then - vim.notify( - "base46 plugin not found or incorrect, make sure to install AvengeMedia/base46", - vim.log.levels.ERROR, - { title = "matugen integration" } - ) - return - end - - local settings = { - matugenTemplateNeovimSetBackground = true - } - - vim.o.background = "{{mode}}" - - local current_file_path = debug.getinfo(1, "S").source:sub(2) - local theme_base = nil - if vim.o.background == "dark" then - theme_base = "aquarium" - else - theme_base = "flex-light" - end - local harmony = 0.5 - local theme_name = "matugen" - - if not _G._matugen_theme_watcher then - local uv = vim.uv or vim.loop - _G._matugen_theme_watcher = { uv.new_fs_event(), reload_timer = uv.new_timer() } - - local debounce_time = 100 -- ms - local function handler() - _G._matugen_theme_watcher.reload_timer:stop() - _G._matugen_theme_watcher.reload_timer:start( - debounce_time, - 0, - vim.schedule_wrap(function() - base46.theme_tables[theme_name] = nil - if vim.g.colors_name == theme_name then - vim.cmd.colorscheme(theme_name) - end - _G._matugen_theme_watcher[1]:stop() - _G._matugen_theme_watcher[1]:start(current_file_path, {}, handler) - end) - ) - end - _G._matugen_theme_watcher[1]:start(current_file_path, {}, handler) - end - - if not base46.theme_tables[theme_name] or base46.theme_tables[theme_name].type ~= vim.o.background then - local builtin = vim.deepcopy(assert(base46.get_builtin_theme(theme_base))) - local harmonized = base46.theme_harmonize(builtin, "{{colors.primary.default.hex}}", harmony) - if settings.matugenTemplateNeovimSetBackground ~= false then - harmonized = base46.theme_set_bg(harmonized, "{{colors.background.default.hex}}") - end - - base46.theme_tables[theme_name] = harmonized - end - - base46.load(theme_name) - vim.g.colors_name = theme_name - ''; - }; - }; -} diff --git a/common/modules/matugen/templates/matugen-pywalfox.nix b/common/modules/matugen/templates/matugen-pywalfox.nix deleted file mode 100644 index d6ede07..0000000 --- a/common/modules/matugen/templates/matugen-pywalfox.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - config, - lib, - ... -}: -{ - config = lib.mkIf config.programs.rofi.enable { - xdg.configFile = { - "matugen/templates/pywalfox-colors.json" = { - text = '' - { - "wallpaper": "{{image}}", - "alpha": "100", - "colors": { - "color0": "{{colors.background.dark.hex}}", - "color1": "{{colors.surface_container_highest.light.hex}}", - "color2": "{{colors.surface_container_lowest.light.hex}}", - "color3": "{{colors.primary.light.hex}}", - "color4": "{{colors.tertiary_fixed.default.hex}}", - "color5": "{{colors.secondary.light.hex}}", - "color6": "{{colors.on_tertiary_fixed.default.hex}}", - "color7": "{{colors.surface_dim.light.hex}}", - "color8": "{{colors.on_secondary.light.hex}}", - "color9": "{{colors.error_container.default.hex}}", - "color10": "{{colors.primary.dark.hex}}", - "color11": "{{colors.on_error_container.default.hex}}", - "color12": "{{colors.on_primary_fixed_variant.default.hex}}", - "color13": "{{colors.secondary.dark.hex}}", - "color14": "{{colors.inverse_primary.default.hex}}", - "color15": "{{colors.on_surface.dark.hex}}" - } - } - ''; - }; - }; - }; -} diff --git a/common/modules/matugen/templates/matugen-xresources.nix b/common/modules/matugen/templates/matugen-xresources.nix deleted file mode 100644 index e580eae..0000000 --- a/common/modules/matugen/templates/matugen-xresources.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ - config, - lib, - ... -}: -{ - config = lib.mkIf (!config.beeMods.windowManagers.mango.enable) { - xdg.configFile."matugen/templates/colors-xresources" = { - text = '' - dwm.normbordercolor : {{colors.outline.default.hex}} - dwm.normfgcolor : {{colors.on_surface.default.hex}} - dwm.selbordercolor : {{colors.primary.default.hex}} - dwm.selfgcolor : {{colors.primary.default.hex}} - dmenu.foreground : {{colors.on_surface.default.hex}} - dmenu.selbackground : {{colors.primary.default.hex}} - dmenu.selforeground : {{colors.on_primary.default.hex}} - dwm.selbgcolor : {{colors.surface_container.default.hex}} - <* if {{ is_dark_mode }} *> - dmenu.background : {{colors.background.default.hex}} - st.background: {{colors.surface.default.hex}} - dwm.normbgcolor : {{colors.surface.default.hex}} - # dwm.selbgcolor : {{colors.surface_container.default.hex}} - <* else *> - dmenu.background : {{colors.surface_container_low.default.hex}} - st.background: {{colors.surface_container_low.default.hex}} - dwm.normbgcolor : {{colors.surface_container_low.default.hex}} - # dwm.selbgcolor : {{colors.secondary_fixed.default.hex}} - <* endif *> - - st.foreground: {{colors.on_surface.default.hex}} - st.cursorColor: {{colors.primary.default.hex}} - - st.color0 : {{colors.surface_container_high.default.hex}} - st.color1 : {{colors.error.default.hex}} - st.color2 : {{colors.primary.default.hex}} - st.color3 : {{colors.tertiary.default.hex}} - st.color4 : {{colors.secondary.default.hex}} - st.color5 : {{colors.primary_fixed.default.hex}} - st.color6 : {{colors.secondary_fixed.default.hex}} - st.color7 : {{colors.on_surface_variant.default.hex}} - - st.color8 : {{colors.outline.default.hex}} - st.color9 : {{colors.error.default.hex | to_color | lighten: 10.0}} - st.color10: {{colors.primary_container.default.hex}} - st.color11: {{colors.tertiary_container.default.hex}} - st.color12: {{colors.secondary_container.default.hex}} - st.color13: {{colors.inverse_primary.default.hex}} - st.color14: {{colors.outline_variant.default.hex}} - st.color15: {{colors.on_surface.default.hex}} - ''; - }; - }; -} -- cgit v1.3.1