From d94884b7ae78871ac9b62a0dc980f2f5dc26d420 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 5 Dec 2024 19:42:56 -0800 Subject: [PATCH] kitty: little-lightning --- home/kitty/alacritty-colors.conf | 2 +- home/modules/kitty.nix | 5 ++--- hosts/little-lightning/configuration.nix | 7 ++++++- hosts/little-lightning/home.nix | 18 ++++++++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/home/kitty/alacritty-colors.conf b/home/kitty/alacritty-colors.conf index d8f0b28..3a2cf5f 100644 --- a/home/kitty/alacritty-colors.conf +++ b/home/kitty/alacritty-colors.conf @@ -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 diff --git a/home/modules/kitty.nix b/home/modules/kitty.nix index 636479c..483b815 100644 --- a/home/modules/kitty.nix +++ b/home/modules/kitty.nix @@ -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"} ''; }; }; diff --git a/hosts/little-lightning/configuration.nix b/hosts/little-lightning/configuration.nix index a3a3423..026cb6a 100644 --- a/hosts/little-lightning/configuration.nix +++ b/hosts/little-lightning/configuration.nix @@ -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 diff --git a/hosts/little-lightning/home.nix b/hosts/little-lightning/home.nix index 862affb..949063f 100644 --- a/hosts/little-lightning/home.nix +++ b/hosts/little-lightning/home.nix @@ -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