feat: implement zide

This commit is contained in:
2026-06-16 12:48:27 -04:00
parent e823f836d8
commit 2e14da59bb
8 changed files with 224 additions and 23 deletions
+23 -22
View File
@@ -1,5 +1,18 @@
{ pkgs, lib, ... }:
let
baseKeybinds = [
"ctrl+t=new_tab"
"ctrl+shift+w=close_tab"
"ctrl+tab=next_tab"
"ctrl+shift+o=new_split:right"
"ctrl+shift+e=new_split:down"
"ctrl+comma=open_config"
"ctrl+shift+comma=reload_config"
"ctrl+equal=increase_font_size:1"
"ctrl+minus=decrease_font_size:1"
"ctrl+zero=reset_font_size"
];
in
{
programs.ghostty = {
enable = true;
@@ -12,13 +25,14 @@
# Theme & Colors (OneDark)
"background" = "#282c34";
"foreground" = "#ffffff";
"foreground" = "#abb2bf";
"cursor-style" = "block";
"palette" = [
"0=#1d1f21" "1=#cc6666" "2=#b5bd68" "3=#f0c674" "4=#81a2be"
"5=#b294bb" "6=#8abeb7" "7=#c5c8c6" "8=#666666" "9=#d54e53"
"10=#b9ca4a" "11=#e7c547" "12=#7aa6da" "13=#c397d8" "14=#70c0b1"
"15=#eaeaea" "16=#000000" "17=#00005f" "18=#000087" "19=#0000af"
"0=#282c34" "1=#e06c75" "2=#98c379" "3=#e5c07b"
"4=#61afef" "5=#c678dd" "6=#56b6c2" "7=#abb2bf"
"8=#5c6370" "9=#e06c75" "10=#98c379" "11=#e5c07b"
"12=#61afef" "13=#c678dd" "14=#56b6c2" "15=#ffffff"
"16=#000000" "17=#00005f" "18=#000087" "19=#0000af"
"20=#0000d7" "21=#0000ff" "22=#005f00" "23=#005f5f" "24=#005f87"
"25=#005faf" "26=#005fd7" "27=#005fff" "28=#008700" "29=#00875f"
"30=#008787" "31=#0087af" "32=#0087d7" "33=#0087ff" "34=#00af00"
@@ -78,24 +92,11 @@
"confirm-close-surface" = true;
# Keybindings (Tabs & Splits)
"keybind" = [
"ctrl+t=new_tab"
"ctrl+shift+w=close_tab"
"ctrl+tab=next_tab"
"ctrl+shift+o=new_split:right"
"ctrl+shift+e=new_split:down"
"ctrl+comma=open_config"
"ctrl+shift+comma=reload_config"
"ctrl+equal=increase_font_size:1"
"ctrl+minus=decrease_font_size:1"
"ctrl+zero=reset_font_size"
];
}
// lib.optionalAttrs pkgs.stdenv.isDarwin {
# macOS Specifics
"keybind" = baseKeybinds
++ lib.optionals pkgs.stdenv.isDarwin [ "super+d=unbind" ];
} // lib.optionalAttrs pkgs.stdenv.isDarwin {
"macos-titlebar-style" = "transparent";
"macos-icon" = "official";
"keybind" = [ "super+d=unbind" ]; # Fix Linux conflict on Mac
};
};
}