diff options
| author | beeb5k (Vivek Tiwari) <beebeeb5k@gmail.com> | 2026-06-04 23:45:29 +0530 |
|---|---|---|
| committer | beeb5k (Vivek Tiwari) <beebeeb5k@gmail.com> | 2026-06-04 23:45:29 +0530 |
| commit | 2c2669697fdeaf7316feed3449d2082d255de5af (patch) | |
| tree | 4d8ed566c2be1ec01c54a3eb6106c40fa79ddb8a /common/modules/matugen/default.nix | |
| parent | b6e25e72d30d9810abc0eb48058334e2495350f8 (diff) | |
Debloat
Diffstat (limited to 'common/modules/matugen/default.nix')
| -rw-r--r-- | common/modules/matugen/default.nix | 88 |
1 files changed, 62 insertions, 26 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix index ecc9255..b467dcb 100644 --- a/common/modules/matugen/default.nix +++ b/common/modules/matugen/default.nix @@ -13,19 +13,6 @@ }: let cfg = config.${moduleNameSpace}.matugen; - # link_zen = pkgs.writeShellScript "link_zen" '' - # export PROFILE_DIR=$(find ~/.config/zen/ -maxdepth 1 -type d -name "*.Default Profile" | head -n 1) - # mkdir -p "$PROFILE_DIR/chrome" - # ln -sf ~/.cache/wallust/userChrome.css "$PROFILE_DIR/chrome/userChrome.css" - # ln -sf ~/.config/userContent.css "$PROFILE_DIR/chrome/userContent.css" - # ''; - update_gtkcolors = pkgs.writeShellScript "update_gtkcolors" '' - dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'" - sleep 0.1 - dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'" - - systemctl --user restart xdg-desktop-portal-gtk - ''; in { imports = lib.optionals homeManager [ ./templates ]; @@ -41,18 +28,37 @@ in text = # toml '' - [config] + [config] ${lib.optionalString config.programs.zathura.enable '' [templates.zathura] input_path = '~/.config/matugen/templates/zathura.toml' output_path = '~/.config/zathura/matugen' ''} + ${lib.optionalString config.beeMods.terminal.foot '' + [templates.foot] + input_path = '~/.config/matugen/templates/foot-colors.ini' + output_path = '~/.config/foot/themes/matugen' + ''} + + ${lib.optionalString config.beeMods.terminal.alacritty '' + [templates.alacritty] + input_path = '~/.config/matugen/templates/alacritty-colors.toml' + output_path = '~/.config/alacritty/matugen.toml' + ''} + + ${lib.optionalString config.beeMods.terminal.ghostty '' + [templates.ghostty] + input_path = '~/.config/matugen/templates/ghostty-colors.conf' + output_path = '~/.config/ghostty/themes/matugen' + post_hook = 'pkill -SIGUSR2 ghostty' + ''} + ${lib.optionalString config.beeMods.windowManagers.mango.enable '' [templates.mango] input_path = '~/.config/matugen/templates/mango.conf' - output_path = '~/.config/mango/mango-colors.conf' - post_hook = 'mmsg -d reload_config' + output_path = '~/.config/mango/colors.conf' + post_hook = 'mmsg dispatch reload_config' ''} ${lib.optionalString config.programs.btop.enable '' @@ -67,15 +73,13 @@ in output_path = '~/.config/yazi/theme.toml' ''} - ${lib.optionalString (config.beeMods.windowManagers.dwm.enable) '' - [templates.Xresources] - input_path = "~/.config/matugen/templates/colors-xresources" - output_path = "~/.config/x11/matugen.Xresources" - ''} - ${lib.optionalString config.programs.vesktop.enable '' - [templates.vesktop] - input_path = "~/.config/matugen/templates/vesktop.css" + [templates.vesktop-midnight] + input_path = "~/.config/matugen/templates/discord-midnight.css" + output_path = "~/.config/vesktop/themes/midnight.css" + + [templates.vesktop-system24] + input_path = "~/.config/matugen/templates/discord-system24.css" output_path = "~/.config/vesktop/themes/system24.css" ''} @@ -86,13 +90,45 @@ in post_hook = "dunstctl reload" ''} + ${lib.optionalString config.programs.rofi.enable '' + [templates.rofi] + input_path = '~/.config/matugen/templates/rofi-colors.rasi' + output_path = '~/.config/rofi/shared/colors.rasi' + ''} + + [templates.gtk3] + input_path = '~/.config/matugen/templates/gtk.css' + output_path = '~/.config/gtk-3.0/matugen.css' + + [templates.gtk4] + input_path = '~/.config/matugen/templates/gtk.css' + output_path = '~/.config/gtk-4.0/matugen.css' + + [templates.neovim] + input_path = '~/.config/matugen/templates/neovim.json' + output_path = '~/.config/beestuff/nvim-colors.json' + + [templates.waybarStyle] + input_path = '~/.config/matugen/templates/waybar.css' + output_path = '~/.config/waybar/style.css' + + [templates.waybarConfig] + input_path = '~/.config/matugen/templates/waybar.jsonc' + output_path = '~/.config/waybar/config.jsonc' + post_hook = 'pkill -SIGUSR2 waybar' + + [templates.pywalfox] + input_path = '~/.config/matugen/templates/pywalfox-colors.json' + output_path = '~/.cache/wal/colors.json' + post_hook = 'sh -c "command -v pywalfox && test -f ~/.cache/wal/colors.json && pywalfox {{ mode }} && pywalfox update"' + ${lib.optionalString (config.beeMods.terminal.default == "foot" || config.beeMods.terminal.default == "ghostty") '' [templates.sequences] input_path = '~/.config/matugen/templates/sequences' - output_path = '~/.config/sequences' - post_hook = "sh '${config.home.homeDirectory}/.config/sequences'" + output_path = '~/.config/beestuff/sequences' + post_hook = "sh '${config.home.homeDirectory}/.config/beestuff/sequences'" '' } ''; |
