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

@ -10,5 +10,6 @@ window-theme = ghostty
confirm-close-surface = false
window-decoration = false
keybind = ctrl+shift+zero=toggle_tab_overview
mouse-hide-while-typing = true
keybind = ctrl+shift+zero=toggle_tab_overview

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 = {

View file

@ -1,4 +1,4 @@
{ pkgs, lib, inputs, system, ... }:
{ pkgs, lib, inputs, system, cursor-size, ... }:
let
startScript = import ./hypr/exec.nix { inherit pkgs lib inputs system; };
@ -7,11 +7,13 @@ let
windowrule = import ./hypr/windowrule.nix;
input = import ./hypr/input.nix;
plugins = import ./hypr/plugin.nix;
cursorSize = cursor-size;
cursorName = "catppuccin-macchiato-lavender-cursors";
in
{
home.packages = with pkgs; [
hyprpaper
hyprcursor
];
systemd.user.targets.hyprland-session.Unit.Wants = [
@ -38,6 +40,12 @@ in
monitor = import ./hypr/monitor.nix;
plugin = plugins;
exec-once = ''${startScript}'';
env = [
''HYPRCURSOR_THEME, ${cursorName}''
''HYPRCURSOR_SIZE, ${cursorSize}''
''XCURSOR_THEME, ${cursorName}''
''XCURSOR_SIZE, ${cursorSize}''
];
} // window // windowrule // input;
};