diff --git a/ansible/inventory/group_vars/desktop.yml b/ansible/inventory/group_vars/desktop.yml index ff7e9a2..dc43e2a 100644 --- a/ansible/inventory/group_vars/desktop.yml +++ b/ansible/inventory/group_vars/desktop.yml @@ -88,6 +88,7 @@ profile_packages: - libXft-devel - meld - mpv + - nerd-fonts-ttf - nerd-fonts-symbols-ttf - pdfarranger - playerctl diff --git a/dotfiles/desktop/.config/alacritty/alacritty.toml b/dotfiles/desktop/.config/alacritty/alacritty.toml index 745977c..855124d 100644 --- a/dotfiles/desktop/.config/alacritty/alacritty.toml +++ b/dotfiles/desktop/.config/alacritty/alacritty.toml @@ -4,7 +4,7 @@ opacity = 1.0 [font] normal = { family = "Liberation Mono", style = "Regular" } -size = 10 +size = 12 [scrolling] history = 10000 @@ -41,4 +41,4 @@ white = "#ffffff" bindings = [ { key = "V", mods = "Control|Shift", action = "Paste" }, { key = "C", mods = "Control|Shift", action = "Copy" } -] \ No newline at end of file +] diff --git a/dotfiles/desktop/.emacs.d/lisp/misc/terminal.el b/dotfiles/desktop/.emacs.d/lisp/misc/terminal.el index 53d612f..153c2d8 100644 --- a/dotfiles/desktop/.emacs.d/lisp/misc/terminal.el +++ b/dotfiles/desktop/.emacs.d/lisp/misc/terminal.el @@ -19,8 +19,21 @@ :type 'string :group 'fscotto) +(defvar-local fscotto/vterm-font-cookie nil + "Face remap cookie used to set a custom font in vterm buffers.") + +(defun fscotto/apply-vterm-font () + "Use Hack Nerd Font only inside vterm buffers." + (when fscotto/vterm-font-cookie + (face-remap-remove-relative fscotto/vterm-font-cookie)) + (setq fscotto/vterm-font-cookie + (face-remap-add-relative + 'default + '(:family "Hack Nerd Font" :height 120 :weight regular)))) + (use-package vterm - :ensure t) + :ensure t + :hook (vterm-mode . fscotto/apply-vterm-font)) (use-package multi-vterm :ensure t