From b78599bcc5339d93a00426d2efff0624b674ee1e Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 4 Dec 2024 19:41:17 +0100 Subject: [PATCH] feat(hypr): switch back to alacritty & fix font --- dot_config/alacritty/alacritty.toml | 8 -------- dot_config/alacritty/alacritty.toml.tmpl | 12 ++++++++++++ dot_config/hypr/hyprland.conf | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) delete mode 100644 dot_config/alacritty/alacritty.toml create mode 100644 dot_config/alacritty/alacritty.toml.tmpl diff --git a/dot_config/alacritty/alacritty.toml b/dot_config/alacritty/alacritty.toml deleted file mode 100644 index 5ac8290..0000000 --- a/dot_config/alacritty/alacritty.toml +++ /dev/null @@ -1,8 +0,0 @@ -[font] -size = 13 - -[font.normal] -family = "Hasklug Nerd font" - -[window] -option_as_alt = "Both" diff --git a/dot_config/alacritty/alacritty.toml.tmpl b/dot_config/alacritty/alacritty.toml.tmpl new file mode 100644 index 0000000..e2885c4 --- /dev/null +++ b/dot_config/alacritty/alacritty.toml.tmpl @@ -0,0 +1,12 @@ +[font] +size = 13 + +[font.normal] +{{- if eq .chezmoi.os "darwin"}} +family = "Hasklug Nerd font" +{{- else if eq .chezmoi.os "linux" }} +family = "Cascadia Code" +{{- end }} + +[window] +option_as_alt = "Both" diff --git a/dot_config/hypr/hyprland.conf b/dot_config/hypr/hyprland.conf index 252f577..d018813 100644 --- a/dot_config/hypr/hyprland.conf +++ b/dot_config/hypr/hyprland.conf @@ -104,7 +104,7 @@ windowrulev2 = tile,class:^(dev.warp.Warp)$ $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more -bind = $mainMod, Return, exec, warp-terminal +bind = $mainMod, Return, exec, alacritty bind = $mainMod, q, killactive, bind = $mainMod, BackSpace, exit, bind = $mainMod, E, exec, thunar