Some tweaks to increase friendliness of linux kitty
This commit is contained in:
parent
6b18ad64f4
commit
dff7e69dab
4 changed files with 46 additions and 52 deletions
|
@ -2,32 +2,11 @@
|
|||
|
||||
let
|
||||
cfg = config.nki.programs.kitty;
|
||||
|
||||
# iosevka = pkgs.iosevka.override {
|
||||
# privateBuildPlan = ''
|
||||
# [buildPlans.iosevka-kagami]
|
||||
# family = "Iosevka Kagami"
|
||||
# spacing = "normal"
|
||||
# serifs = "sans"
|
||||
# no-cv-ss = true
|
||||
|
||||
# [buildPlans.iosevka-kagami.variants]
|
||||
# inherits = "ss06"
|
||||
|
||||
# [buildPlans.iosevka-kagami.variants.design]
|
||||
# k = "cursive-serifless"
|
||||
|
||||
# [buildPlans.iosevka-kagami.ligations]
|
||||
# inherits = "haskell"
|
||||
# '';
|
||||
# set = "kagami";
|
||||
# };
|
||||
|
||||
cmd = if pkgs.stdenv.isDarwin then "cmd" else "ctrl";
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
imports = [ ./darwin.nix ];
|
||||
imports = [ ./darwin.nix ./linux.nix ];
|
||||
|
||||
options.nki.programs.kitty = {
|
||||
enable = mkEnableOption "Enable kitty";
|
||||
|
@ -56,28 +35,26 @@ with lib;
|
|||
|
||||
theme = "Ayu Light";
|
||||
|
||||
extraConfig =
|
||||
settings =
|
||||
let
|
||||
background =
|
||||
if isNull cfg.background then ''
|
||||
background_opacity 1
|
||||
dynamic_background_opacity yes
|
||||
'' else ''
|
||||
background_image ${cfg.background}
|
||||
background_image_layout scaled
|
||||
background_tint 0.85
|
||||
'';
|
||||
in
|
||||
''
|
||||
# Background color and transparency
|
||||
${background}
|
||||
|
||||
background =
|
||||
if isNull cfg.background then {
|
||||
background_opacity = "0.9";
|
||||
dynamic_background_opacity = true;
|
||||
} else {
|
||||
background_image = cfg.background;
|
||||
background_image_layout = "scaled";
|
||||
background_tint = "0.85";
|
||||
};
|
||||
in
|
||||
background // {
|
||||
# Scrollback (128MBs)
|
||||
scrollback_pager_history_size 128
|
||||
scrollback_pager_history_size = 128;
|
||||
|
||||
# Disable Shell integration (leave it for Nix)
|
||||
shell_integration no-rc
|
||||
'';
|
||||
shell_integration = "no-rc";
|
||||
};
|
||||
|
||||
keybindings = { };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue