kitty: little-lightning

This commit is contained in:
Zynh Ludwig 2024-12-05 19:42:56 -08:00
parent 6a4626438b
commit d94884b7ae
4 changed files with 27 additions and 5 deletions

View file

@ -6,7 +6,7 @@
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
foreground #d8d8d8
background #050505
# background #050505
selection_foreground #e0def4
selection_background #403d52

View file

@ -23,8 +23,7 @@ in
background_opacity = 0.98;
font_size = 12;
# FIXME: I really should remove this
allow_remote_control = "yes";
# allow_remote_control = "yes";
};
extraConfig =
@ -34,7 +33,7 @@ in
''
include ${../../home/kitty/alacritty-colors.conf}
map ctrl+k ${pkgs.writeShellScript "kitten-snap" "${kitten} @ get-text --self --ansi > /tmp/test"}
# map ctrl+k ${pkgs.writeShellScript "kitten-snap" "${kitten} @ get-text --self --ansi > /tmp/test"}
'';
};
};

View file

@ -118,7 +118,12 @@
'';
};
session = pkgs.writeText "main-kitty-session" ''
cd /Users/zynh
'';
yabai = lib.getExe pkgs.yabai;
kitty = lib.getExe pkgs.kitty;
in
{
enable = true;
@ -127,7 +132,7 @@
alt - t : ${yabai} -m window --toggle float --grid 4:4:1:1:2:2
# open terminal window using shell script
cmd - return : ${lib.getExe newAlacrityWindow}
cmd - return : ${kitty} --session ${session} --single-instance
# rebind space switching
ctrl - left : ${yabai} -m space --focus prev || ${yabai} -m space --focus last

View file

@ -7,6 +7,7 @@
snowhawk = {
alacritty.enable = true;
kitty.enable = true;
macos.enable = true;
sources.enable = true;
projects.enable = true;
@ -38,6 +39,18 @@
# set -g default-shell "$SHELL"
# '';
programs.kitty.settings = {
font_family = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"ExtraLight\"";
bold_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light\"";
italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"ExtraLight Italic\"";
bold_italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light Italic\"";
background_opacity = lib.mkForce 0.94;
background = lib.mkForce "#171717";
font_size = lib.mkForce 16.0;
hide_window_decorations = lib.mkForce "titlebar-only";
macos_option_as_alt = lib.mkForce "both";
};
programs.alacritty.settings = {
font.size = lib.mkForce 16.0;
window.opacity = lib.mkForce 0.94;
@ -53,6 +66,11 @@
darwin-rebuild switch --flake ~/nixos#little-lightning |& nom
'')
(writeShellScriptBin "restart-skhd" ''
launchctl stop org.nixos.skhd
launchctl start org.nixos.skhd
'')
wakeonlan
go