From eb6282b3042197815071f2e0fe880a271fd1f260 Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Wed, 17 Jul 2024 19:30:14 -0800 Subject: [PATCH] no need for parsing neofetch when builtins exist :3 --- lisp/mir-defuns.el | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lisp/mir-defuns.el b/lisp/mir-defuns.el index 67e26c4..f0cdf29 100644 --- a/lisp/mir-defuns.el +++ b/lisp/mir-defuns.el @@ -66,19 +66,11 @@ console." (pixel-scroll-precision-mode t) (pixel-scroll-mode t)) ;; Size of text. おまえ わ もう しんでいる. - ;; (if (executable-find "neofetch") - ;; (let* ((resolution (mapcar #'string-to-number - ;; (split-string - ;; (cadr (split-string - ;; (shell-command-to-string - ;; "neofetch resolution"))) "x"))) - ;; (resx (car resolution)) - ;; (resy (cadr resolution)) - ;; (font-height (/ resy 11))) - ;; (set-face-attribute 'fixed-pitch nil :height font-height) - ;; (set-face-attribute 'default nil :height font-height) - ;; (set-face-attribute 'variable-pitch nil :height (+ font-height 10)))) - ) + (let* ((resy (display-pixel-height)) + (font-height (/ resy 8))) ; gonna be different on diff machines 💀 + (set-face-attribute 'fixed-pitch nil :height font-height) + (set-face-attribute 'default nil :height font-height) + (set-face-attribute 'variable-pitch nil :height (+ font-height 10)))) (defun toggle-ja-input () "Switch between english and japanese. Not broken."