stumpwm/terminal-fonts.lisp @ c0175626e056
More
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Wed, 27 Mar 2024 11:49:51 -0400 |
| parents | e6e13bf8dad4 |
| children | 2c74f844352e |
(in-package :stumpwm-user) (defun read-terminal-font-size-from-config () (if (probe-file "/home/sjl/.terminal-font") (with-open-file (f "/home/sjl/.terminal-font") (read f)) 11)) (defvar *terminal-font-size* (read-terminal-font-size-from-config)) (defcommand reload-terminal-font-size () () (setf *terminal-font-size* (read-terminal-font-size-from-config))) (defcommand st-font-up () () (loop :repeat 7 :do (meta (kbd "C-S-SunPageUp")))) (defcommand st-font-down () () (loop :repeat 7 :do (meta (kbd "C-S-SunPageDown")))) (defcommand st-font-reset () () (meta (kbd "C-S-Home"))) (defcommand tfont (size) ((:integer "Size: ")) (setf *terminal-font-size* size))