add ghostty config

This commit is contained in:
DACHXY 2024-12-31 12:12:32 +08:00
parent 58f85834ff
commit d54c4da55e
7 changed files with 163 additions and 53 deletions

View file

@ -1,29 +1,17 @@
{ pkgs, ... }:
{ pkgs, cursor-size, ... }:
let
cursorName = "catppuccin-macchiato-lavender-cursors";
themeName = "catppuccin-macchiato-lavender-compact";
cursorSize = "24";
cursorSize = pkgs.lib.strings.toInt cursor-size;
in
{
home.sessionVariables = {
XCURSOR_THEME = cursorName;
XCURSOR_SIZE = cursorSize;
HYPERCURSOR_SIZE = cursorSize;
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.catppuccin-cursors.macchiatoLavender;
name = cursorName;
size = 24;
};
gtk = {
enable = true;
cursorTheme = {
name = cursorName;
package = pkgs.catppuccin-cursors.macchiatoLavender;
size = cursorSize;
};
theme = {