mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Adjust terminal fonts for Alacritty and Emacs vterm
This commit is contained in:
@@ -88,6 +88,7 @@ profile_packages:
|
|||||||
- libXft-devel
|
- libXft-devel
|
||||||
- meld
|
- meld
|
||||||
- mpv
|
- mpv
|
||||||
|
- nerd-fonts-ttf
|
||||||
- nerd-fonts-symbols-ttf
|
- nerd-fonts-symbols-ttf
|
||||||
- pdfarranger
|
- pdfarranger
|
||||||
- playerctl
|
- playerctl
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ opacity = 1.0
|
|||||||
|
|
||||||
[font]
|
[font]
|
||||||
normal = { family = "Liberation Mono", style = "Regular" }
|
normal = { family = "Liberation Mono", style = "Regular" }
|
||||||
size = 10
|
size = 12
|
||||||
|
|
||||||
[scrolling]
|
[scrolling]
|
||||||
history = 10000
|
history = 10000
|
||||||
@@ -41,4 +41,4 @@ white = "#ffffff"
|
|||||||
bindings = [
|
bindings = [
|
||||||
{ key = "V", mods = "Control|Shift", action = "Paste" },
|
{ key = "V", mods = "Control|Shift", action = "Paste" },
|
||||||
{ key = "C", mods = "Control|Shift", action = "Copy" }
|
{ key = "C", mods = "Control|Shift", action = "Copy" }
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -19,8 +19,21 @@
|
|||||||
:type 'string
|
:type 'string
|
||||||
:group 'fscotto)
|
: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
|
(use-package vterm
|
||||||
:ensure t)
|
:ensure t
|
||||||
|
:hook (vterm-mode . fscotto/apply-vterm-font))
|
||||||
|
|
||||||
(use-package multi-vterm
|
(use-package multi-vterm
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|||||||
Reference in New Issue
Block a user