mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
alacritty: make configs work under plasma
This commit is contained in:
parent
ad31a423c2
commit
253dc6d4cf
1 changed files with 18 additions and 10 deletions
|
@ -7,7 +7,22 @@ in
|
|||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.alacritty ];
|
||||
environment.systemPackages = [
|
||||
pkgs.alacritty
|
||||
(pkgs.writeTextFile {
|
||||
name = "alacritty.yml";
|
||||
destination = "/etc/xdg/alacritty.yml";
|
||||
text = ''
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
key_bindings:
|
||||
- { key: N, mods: Control|Shift, action: SpawnNewInstance }
|
||||
- { key: T, mods: Control|Shift, action: SpawnNewInstance }
|
||||
- { key: PageUp, mods: Shift, action: ScrollHalfPageUp }
|
||||
- { key: PageDown, mods: Shift, action: ScrollHalfPageDown }
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
programs.bash.interactiveShellInit = ''
|
||||
function _set_title() {
|
||||
|
@ -16,15 +31,8 @@ in
|
|||
[ -z "$VTE_VERSION" ] && PROMPT_COMMAND="_set_title; $PROMPT_COMMAND"
|
||||
'';
|
||||
|
||||
environment.etc."xdg/alacritty.yml".text = ''
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
key_bindings:
|
||||
- { key: N, mods: Control|Shift, action: SpawnNewInstance }
|
||||
- { key: T, mods: Control|Shift, action: SpawnNewInstance }
|
||||
- { key: PageUp, mods: Shift, action: ScrollHalfPageUp }
|
||||
- { key: PageDown, mods: Shift, action: ScrollHalfPageDown }
|
||||
'';
|
||||
environment.etc."xdg/alacritty.yml".source =
|
||||
"/run/current-system/sw/etc/xdg/alacritty.yml";
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue