Kitty: Difference between revisions
m Added link |
m Removed numbering |
||
| Line 5: | Line 5: | ||
== Installation == | == Installation == | ||
==== | ==== Using nix-shell ==== | ||
<syntaxhighlight lang="bash" start="3"> | <syntaxhighlight lang="bash" start="3"> | ||
nix-shell -p kitty | nix-shell -p kitty | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== System-Wide Installation on NixOS ==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
| Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== User-Specific Installation with Home Manager ==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
home.packages = [ | home.packages = [ | ||
| Line 31: | Line 31: | ||
{{Note|Currently, configuring Kitty is possible only by using Home Manager.}} | {{Note|Currently, configuring Kitty is possible only by using Home Manager.}} | ||
==== | ==== Basic ==== | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.kitty = { | programs.kitty = { | ||
| Line 38: | Line 38: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== Advanced ==== | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.kitty = lib.mkForce { | programs.kitty = lib.mkForce { | ||
| Line 79: | Line 79: | ||
== Tips and Tricks == | == Tips and Tricks == | ||
==== | ==== Where to see a list of options? ==== | ||
The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.kitty.enable Home Manager Options Manual]. | The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-programs.kitty.enable Home Manager Options Manual]. | ||
==== | ==== Can this be used with stylix? ==== | ||
Yes, it can. See the following configuration:<syntaxhighlight lang="nix"> | Yes, it can. See the following configuration:<syntaxhighlight lang="nix"> | ||
extraConfig = with config.stylix.base16Scheme; '' | extraConfig = with config.stylix.base16Scheme; '' | ||
| Line 133: | Line 133: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== | ==== How to map kitty to a key? ==== | ||
It depends on the window manager that you are using. On [https://wiki.nixos.org/wiki/Hyprland Hyprland] it's fairly easy:<syntaxhighlight lang="nix"> | It depends on the window manager that you are using. On [https://wiki.nixos.org/wiki/Hyprland Hyprland] it's fairly easy:<syntaxhighlight lang="nix"> | ||
bind = [ | bind = [ | ||