kitty
This commit is contained in:
parent
db45954236
commit
a94e2ae578
7 changed files with 140 additions and 4 deletions
30
programs/kanata/cfg.kbd
Normal file
30
programs/kanata/cfg.kbd
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
(defcfg
|
||||
process-unmapped-keys yes
|
||||
)
|
||||
|
||||
(defsrc
|
||||
esc
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
caps a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / rsft
|
||||
lctl lmet lalt spc ralt rctl
|
||||
)
|
||||
|
||||
(deflayer qwerty
|
||||
@esc
|
||||
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
|
||||
tab q w e r t y u i o p [ ] \
|
||||
@cap a s d f g h j k l ; ' ret
|
||||
lsft z x c v b n m , . / rsft
|
||||
lctl lmet lalt spc ralt rctl
|
||||
)
|
||||
|
||||
(defalias
|
||||
esc (tap-hold 200 800 esc caps)
|
||||
cap (tap-dance 300 (esc C-k esc))
|
||||
|
||||
qwr (layer-switch qwerty)
|
||||
)
|
||||
|
||||
|
||||
30
programs/kanata/default.nix
Normal file
30
programs/kanata/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{pkgs, config, ...}: {
|
||||
# sudo groupadd uinput
|
||||
# sudo usermod -aG input $USER
|
||||
# sudo usermod -aG uinput $USER
|
||||
# echo "KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"" >> /etc/udev/rules.d/99-input.rules
|
||||
# reboot or sudo udevadm control --reload-rules && sudo udevadm trigger
|
||||
# sudo modprobe uinput
|
||||
systemd.user.services.kanata ={
|
||||
Unit = {
|
||||
Description = "kanata";
|
||||
};
|
||||
|
||||
Service = {
|
||||
Restart = "always";
|
||||
RestartSec = "3";
|
||||
ExecStart = "${pkgs.kanata}/bin/kanata --cfg ${config.home.file.kanata.target}";
|
||||
Nice = "-20";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
home.file.kanata = {
|
||||
target = ".config/kanata/kanata.kbd";
|
||||
text = builtins.readFile ./cfg.kbd;
|
||||
};
|
||||
}
|
||||
40
programs/kitty/default.nix
Normal file
40
programs/kitty/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{pkgs, inputs, ...}: {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font.name = "Jetbrains Mono";
|
||||
font.size = 13.0;
|
||||
font.package = pkgs.jetbrains-mono;
|
||||
|
||||
settings = {
|
||||
scrollback_lines = 20000;
|
||||
|
||||
repaint_delay = 10;
|
||||
input_delay = 3;
|
||||
|
||||
enable_audio_bell = false;
|
||||
update_check_interval = 0;
|
||||
|
||||
initial_window_width = "95c";
|
||||
initial_window_height = "30c";
|
||||
remember_window_size = "no";
|
||||
|
||||
draw_minimal_borders = false;
|
||||
hide_window_decorations = true;
|
||||
|
||||
shell = "${pkgs.tmux}/bin/tmux";
|
||||
clipboard_control = "write-clipboard write-primary read-clipboard read-primary";
|
||||
|
||||
foreground = "#fcfcfc";
|
||||
background = "#232627";
|
||||
linux_display_server = "auto";
|
||||
};
|
||||
|
||||
keybindings = {
|
||||
"ctrl+f" = "launch --location=hsplit --allow-remote-control kitty +kitten ${inputs.kitty-search}/search.py @active-kitty-window-id";
|
||||
"ctrl+r" = "load_config_file";
|
||||
"ctrl+EQUAL" = "change_font_size all +2.0";
|
||||
"ctrl+minus" = "change_font_size all -2.0";
|
||||
"ctrl+0" = "change_font_size all 0";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue