reddit / emacs

Changing font/face of frame title

mclearc · 2022-04-12 04:43
I've been toying with the idea of listing tabs in the frame title. The following code works to do that, but I can't figure out how to change the font or faces. Right now it is in variable width and bold. I welcome any tips on whether changing this is possible (there is no frame face to set so far as I can tell). ```emacs-lisp (defun frame-line-tab-list () "Return a list of `tab-bar' tabs/workspaces." (require 'tab-bar) (let ((tab-names (mapcar (lambda (tab) (alist-get 'name tab)) (tab-bar-tabs)))) (mapconcat 'identity tab-names " "))) (setq frame-title-format '((:eval ;; Left (format-mode-line '(" " (:eval (if tab-bar-mode (frame-line-tab-list)))))))) ```
podtatranec · 2022-04-12 05:38
Frames are decorated by the window manager, not emacs so that's probably why. On wayland it could in theory do client side decorations but I don't think that's a good idea 😂
mclearc · 2022-04-12 05:46
Ah -- good to know. Seems like an even more difficult task to hack on macOS. Ok -- so much for replacing tab-bar with frame-title. Thanks!