diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..7a1263e --- /dev/null +++ b/.config/alacritty/alacritty.toml @@ -0,0 +1,31 @@ +[bell] +animation = "EaseOutExpo" +color = "#666666" +duration = 30 + +[colors.primary] +background = "#1d1f21" +foreground = "#c5c8c6" + +[font] +size = 7.0 + +[[keyboard.bindings]] +action = "Paste" +key = "V" +mode = "~Vi" +mods = "Control|Shift" + +[[keyboard.bindings]] +action = "Copy" +key = "C" +mods = "Control|Shift" + +[[keyboard.bindings]] +action = "SearchForward" +key = "F" +mode = "~Search" +mods = "Control|Shift" + +[window] +opacity = 0.8 diff --git a/.config/alacritty/alacritty_full.toml b/.config/alacritty/alacritty_full.toml new file mode 100644 index 0000000..3e7e46d --- /dev/null +++ b/.config/alacritty/alacritty_full.toml @@ -0,0 +1,20 @@ +[bell] +animation = "EaseOutExpo" +color = "#333333" +duration = 100 + +[colors.primary] +background = "#1d1f21" +foreground = "#c5c8c6" + +[font] +size = 9.0 + +[window] +decorations = "none" +opacity = 0.75 +startup_mode = "Maximized" + +[window.position] +x = 0 +y = 0 diff --git a/home.nix b/home.nix index de93fa4..39440f2 100755 --- a/home.nix +++ b/home.nix @@ -5,15 +5,19 @@ home.homeDirectory = "/home/felix"; home.file.".config/ssh-find-agent.sh".source = ./.config/ssh-find-agent.sh; - # link the configuration file in current directory to the specified location in home directory - # link all files in `./scripts` to `~/.config/i3/scripts` + home.file.".config/alacritty" = { + source = ./.config/alacritty; + recursive = true; + }; + # home.file.".config/i3/scripts" = { # source = ./scripts; # recursive = true; # link recursively # executable = true; # make all files executable # }; + # encode the file content in nix configuration file directly # home.file.".xxx".text = '' # xxx