kaas
This commit is contained in:
parent
9aa634bd71
commit
3528e22c67
54 changed files with 380 additions and 1243 deletions
43
modules/home/terminal/alacritty/default.nix
Normal file
43
modules/home/terminal/alacritty/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, lib, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.terminal.alacritty;
|
||||
in
|
||||
{
|
||||
options.${namespace}.terminal.alacritty = {
|
||||
enable = mkEnableOption "enable alacritty";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
env = {
|
||||
TERM = "xterm-256color";
|
||||
WINIT_X11_SCALE_FACTOR = "1.0";
|
||||
};
|
||||
|
||||
window.dynamic_title = true;
|
||||
|
||||
scrolling = {
|
||||
history = 5000;
|
||||
multiplier = 3;
|
||||
};
|
||||
|
||||
selection = {
|
||||
semantic_escape_chars = '',│`|:"' ()[]{}<>'';
|
||||
save_to_clipboard = false;
|
||||
};
|
||||
|
||||
general.live_config_reload = true;
|
||||
|
||||
# terminal.shell = {
|
||||
# program = "${getExe pkgs.zsh}";
|
||||
# args = ["-l" "-c" "tmux new || tmux"];
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
24
modules/home/terminal/ghostty/default.nix
Normal file
24
modules/home/terminal/ghostty/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, lib, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.${namespace}.terminal.ghostty;
|
||||
in
|
||||
{
|
||||
options.${namespace}.terminal.ghostty = {
|
||||
enable = mkEnableOption "enable ghostty";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
rograms.ghostty = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background-blur-radius = 20;
|
||||
theme = "dark:stylix,light:stylix";
|
||||
window-theme = (config.${namespace}.themes.polarity or "dark");
|
||||
background-opacity = 0.8;
|
||||
minimum-contrast = 1.1;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue