home-manager/shell: add cosmic-term and change ls colors
This commit is contained in:
parent
553622ac66
commit
a2422d1f4e
5 changed files with 36 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
|
16
modules/home-manager/cosmic-term.nix
Normal file
16
modules/home-manager/cosmic-term.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.custom-hm.cosmic-term;
|
||||
in
|
||||
{
|
||||
options.custom-hm.cosmic-term = {
|
||||
enable = mkEnableOption "cosmic-term";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.cosmic-term ];
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./alacritty.nix
|
||||
./cosmic-term.nix
|
||||
./direnv.nix
|
||||
./fish.nix
|
||||
./git.nix
|
||||
|
|
|
@ -60,9 +60,10 @@ in
|
|||
function fish_command_not_found
|
||||
${pkgs.comma}/bin/comma $argv
|
||||
end
|
||||
set -gx LS_COLORS (${lib.getExe pkgs.vivid} generate catppuccin-mocha)
|
||||
'' else "";
|
||||
in ''
|
||||
fish_config prompt choose arrow
|
||||
fish_config prompt choose default
|
||||
'' + extraInit;
|
||||
functions = mkIf cfg.functions.enable {
|
||||
gitignore = "curl -sL https://www.gitignore.io/api/$argv";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -14,20 +14,22 @@ in
|
|||
enable = true;
|
||||
settings = {
|
||||
default_shell = "fish";
|
||||
keybinds = {
|
||||
unbind = [
|
||||
"Ctrl p"
|
||||
"Ctrl n"
|
||||
];
|
||||
shared_except = {
|
||||
_args = [ "pane" "locked" ];
|
||||
bind = {
|
||||
_args = [ "Ctrl b"];
|
||||
SwitchToMode = "Pane";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.configFile."zellij/config.kdl".text = ''
|
||||
keybinds {
|
||||
shared_except "pane" "locked" {
|
||||
bind "Ctrl b" { SwitchToMode "Pane"; }
|
||||
}
|
||||
shared_except "locked" {
|
||||
bind "Ctrl h" { MoveFocusOrTab "Left"; }
|
||||
bind "Ctrl l" { MoveFocusOrTab "Right"; }
|
||||
bind "Ctrl j" { MoveFocus "Down"; }
|
||||
bind "Ctrl k" { MoveFocus "Up"; }
|
||||
unbind "Alt h" "Alt l" "Alt j" "Alt k"
|
||||
}
|
||||
unbind "Ctrl p" "Ctrl n"
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue