diff --git a/dotfiles/hypr-lap/binds.conf b/dotfiles/hypr-lap/binds.conf index 8cdaa25..7699007 100644 --- a/dotfiles/hypr-lap/binds.conf +++ b/dotfiles/hypr-lap/binds.conf @@ -6,7 +6,7 @@ ### KEYBINDINGSS ### #################### -$terminal = kitty +$terminal = alacritty $fileManager = dolphin $menu = wofi --show drun $calc = qalculate-gtk diff --git a/dotfiles/hypr-lap/hyprland.conf b/dotfiles/hypr-lap/hyprland.conf index 013e828..0a7ee7c 100644 --- a/dotfiles/hypr-lap/hyprland.conf +++ b/dotfiles/hypr-lap/hyprland.conf @@ -18,11 +18,6 @@ monitor=,preferred,auto,1 # See https://wiki.hyprland.org/Configuring/Keywords/ -# Set programs that you use -$terminal = kitty -$fileManager = dolphin -$menu = wofi --show drun - ################# ### AUTOSTART ### @@ -176,3 +171,4 @@ device { # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. +windowrulev2 = opacity 0.70 0.70,class:^(Alacritty)$ diff --git a/modules/home-manager/terminal/alacritty.nix b/modules/home-manager/terminal/alacritty.nix new file mode 100644 index 0000000..3d051f1 --- /dev/null +++ b/modules/home-manager/terminal/alacritty.nix @@ -0,0 +1,48 @@ +{ smayzy, lib, ... }: +let + inherit (lib) mkIf mkOption types; +in +{ + options.smayzy.alacritty.enable = mkOption { + type = types.bool; + default = false; + description = "alacritty config"; + }; + + config = mkIf smayzy.alacritty.enable { + programs.alacritty = { + enable = true; + settings = { + window = { + padding = { + x = 5; + y = 5; + }; + }; + font = { + normal = { + family = "JetBrainsMono Nerd Font"; + style = "Medium"; + }; + bold = { + family = "JetBrainsMono Nerd Font"; + style = "Bold"; + }; + italic = { + family = "JetBrainsMono Nerd Font"; + style = "MediumItalic"; + }; + bold_italic = { + family = "JetBrainsMono Nerd Font"; + style = "BoldItalic"; + }; + }; +# colors = { +# primary = { +# background = "#000000"; +# }; +# }; + }; + }; + }; +} diff --git a/modules/home-manager/terminal/default.nix b/modules/home-manager/terminal/default.nix index 045327c..df9672c 100644 --- a/modules/home-manager/terminal/default.nix +++ b/modules/home-manager/terminal/default.nix @@ -2,5 +2,6 @@ { imports = [ ./kitty.nix + ./alacritty.nix ]; }