diff options
Diffstat (limited to 'home-manager')
| -rw-r--r-- | home-manager/alacritty/alacritty.toml | 12 | ||||
| -rw-r--r-- | home-manager/alacritty/hosts/default.toml | 3 | ||||
| -rw-r--r-- | home-manager/alacritty/hosts/diamond.toml | 3 | ||||
| -rw-r--r-- | home-manager/fastfetch/config.jsonc | 64 | ||||
| -rw-r--r-- | home-manager/home.nix | 2 | ||||
| -rw-r--r-- | home-manager/hypr/config/variables.lua | 2 | ||||
| -rw-r--r-- | home-manager/matugen/config.toml | 4 | ||||
| -rw-r--r-- | home-manager/matugen/templates/alacritty-colors.toml | 27 | ||||
| -rw-r--r-- | home-manager/modules/alacritty.nix | 12 | ||||
| -rw-r--r-- | home-manager/modules/fastfetch.nix | 3 |
10 files changed, 131 insertions, 1 deletions
diff --git a/home-manager/alacritty/alacritty.toml b/home-manager/alacritty/alacritty.toml new file mode 100644 index 0000000..249840d --- /dev/null +++ b/home-manager/alacritty/alacritty.toml @@ -0,0 +1,12 @@ +[general] +import = [ + "~/.cache/matugen/alacritty-colors.toml", + "~/.config/alacritty/host.toml", +] + +[window] +opacity = 0.85 +padding = { x = 10, y = 5 } + +[env] +TERM = "xterm-256color" diff --git a/home-manager/alacritty/hosts/default.toml b/home-manager/alacritty/hosts/default.toml new file mode 100644 index 0000000..f87bef1 --- /dev/null +++ b/home-manager/alacritty/hosts/default.toml @@ -0,0 +1,3 @@ +[font] +normal = { family = "JetBrains Mono Nerd Font" } +size = 12 diff --git a/home-manager/alacritty/hosts/diamond.toml b/home-manager/alacritty/hosts/diamond.toml new file mode 100644 index 0000000..4c3c56e --- /dev/null +++ b/home-manager/alacritty/hosts/diamond.toml @@ -0,0 +1,3 @@ +[font] +normal = { family = "JetBrains Mono Nerd Font" } +size = 10 diff --git a/home-manager/fastfetch/config.jsonc b/home-manager/fastfetch/config.jsonc new file mode 100644 index 0000000..3cad86d --- /dev/null +++ b/home-manager/fastfetch/config.jsonc @@ -0,0 +1,64 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json", + "logo": { + "type": "small", + "color": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "", + "7": "", + "8": "", + "9": "" + } + }, + "display": { + "separator": " ", + "key": { + "type": "icon" + }, + "color": { + "keys": "", + "title": "", + "output": "", + "separator": "" + }, + "brightColor": false + }, + "modules": [ + "title", + { + "type": "os", + "key": "os" + }, + { + "type": "cpu", + "key": "cpu" + }, + { + "type": "memory", + "key": "ram", + "percent": { + "type": 0 + } + }, + { + "type": "shell", + "key": "sh" + }, + "break", + { + "type": "colors", + "symbol": "circle", + "paddingLeft": 2, + "block": { + "range": [ + 0, + 7 + ] + } + } + ] +} diff --git a/home-manager/home.nix b/home-manager/home.nix index a869ef7..c3241dd 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -5,8 +5,10 @@ ... }: { imports = [ + ./modules/alacritty.nix ./modules/base.nix ./modules/bash.nix + ./modules/fastfetch.nix ./modules/foot.nix ./modules/git.nix ./modules/hyprland.nix diff --git a/home-manager/hypr/config/variables.lua b/home-manager/hypr/config/variables.lua index 8a789e1..66030f1 100644 --- a/home-manager/hypr/config/variables.lua +++ b/home-manager/hypr/config/variables.lua @@ -1,2 +1,2 @@ mainMod = "SUPER" -terminal = "foot" +terminal = "alacritty" diff --git a/home-manager/matugen/config.toml b/home-manager/matugen/config.toml index b2cb2da..6e2119a 100644 --- a/home-manager/matugen/config.toml +++ b/home-manager/matugen/config.toml @@ -7,6 +7,10 @@ output_path = "~/.cache/matugen/foot-colors.ini" # Optional: Make foot reload colors instantly without restarting the terminal post_hook = "pkill -SIGUSR1 foot" +[templates.alacritty] +input_path = "~/.config/matugen/templates/alacritty-colors.toml" +output_path = "~/.cache/matugen/alacritty-colors.toml" + [templates.hyprland_lua] input_path = "~/.config/matugen/templates/colors.lua" output_path = "~/.cache/matugen/colors.lua" diff --git a/home-manager/matugen/templates/alacritty-colors.toml b/home-manager/matugen/templates/alacritty-colors.toml new file mode 100644 index 0000000..55ab6dc --- /dev/null +++ b/home-manager/matugen/templates/alacritty-colors.toml @@ -0,0 +1,27 @@ +[colors.primary] +background = "#{{colors.background.default.hex_stripped}}" +foreground = "#{{colors.on_background.default.hex_stripped}}" + +[colors.cursor] +cursor = "#{{colors.primary.default.hex_stripped}}" +text = "#{{colors.on_primary.default.hex_stripped}}" + +[colors.normal] +black = "#{{colors.surface.default.hex_stripped}}" +red = "#{{colors.error.default.hex_stripped}}" +green = "#{{colors.primary.default.hex_stripped}}" +yellow = "#{{colors.secondary.default.hex_stripped}}" +blue = "#{{colors.tertiary.default.hex_stripped}}" +magenta = "#{{colors.inverse_primary.default.hex_stripped}}" +cyan = "#{{colors.primary_container.default.hex_stripped}}" +white = "#{{colors.on_surface.default.hex_stripped}}" + +[colors.bright] +black = "#{{colors.surface_variant.default.hex_stripped}}" +red = "#{{colors.error_container.default.hex_stripped}}" +green = "#{{colors.primary_container.default.hex_stripped}}" +yellow = "#{{colors.secondary_container.default.hex_stripped}}" +blue = "#{{colors.tertiary_container.default.hex_stripped}}" +magenta = "#{{colors.inverse_surface.default.hex_stripped}}" +cyan = "#{{colors.on_primary_container.default.hex_stripped}}" +white = "#{{colors.on_surface_variant.default.hex_stripped}}" diff --git a/home-manager/modules/alacritty.nix b/home-manager/modules/alacritty.nix new file mode 100644 index 0000000..927127d --- /dev/null +++ b/home-manager/modules/alacritty.nix @@ -0,0 +1,12 @@ +{ osConfig, ... }: +let + host = osConfig.networking.hostName; + hostFile = ../alacritty/hosts + "/${host}.toml"; +in { + xdg.configFile."alacritty/alacritty.toml".source = ../alacritty/alacritty.toml; + + xdg.configFile."alacritty/host.toml".source = + if builtins.pathExists hostFile + then hostFile + else ../alacritty/hosts/default.toml; +} diff --git a/home-manager/modules/fastfetch.nix b/home-manager/modules/fastfetch.nix new file mode 100644 index 0000000..4ed561d --- /dev/null +++ b/home-manager/modules/fastfetch.nix @@ -0,0 +1,3 @@ +{ ... }: { + xdg.configFile."fastfetch/config.jsonc".source = ../fastfetch/config.jsonc; +} |
