stumpwm/terminal-fonts.lisp @ 417f91fae3c2
More
author |
Steve Losh <steve@stevelosh.com> |
date |
Thu, 28 Mar 2024 16:06:55 -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))