Alacritty and Emacs hide title bar and set opacity

Here's how to remove the title bar from Alacritty and Emacs
and set the opacity

alacritty.toml

Code:
[window]
decorations = "none"
decorations_theme_variant = "Dark"
startup_mode = "Maximized"
opacity = 0.90

emacs early-init.el

Code:
;; start the initial frame maximized
(add-to-list 'initial-frame-alist '(fullscreen . maximized))

;; start every frame maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))

;; no title bar
(add-to-list 'default-frame-alist '(undecorated . t))

;; opacity
(add-hook 'after-make-frame-functions
          (lambda (frame)
            (set-frame-parameter frame 'alpha-background 90)))

;; You might also want to set it for the initial frame if the hook doesn't catch it
(when (and (boundp 'initial-frame) initial-frame)
  (set-frame-parameter initial-frame 'alpha-background 90))

switched my main machine from Freebsd to Nixos running Gnome
because the latest Nvidia drivers on Freebsd just crashed the system when playing videos

still running Freebsd on my old Macbook air 2011

wallpaper is a screenshot from Akira
opacity set to 90%

emacs and alacritty theme modus-vivendi-tinted

alacritty screenshot

Screenshot From 2025-04-24 13-32-56.png



Screenshot From 2025-04-24 13-21-13.png


emacs screenshot

Screenshot From 2025-04-24 13-33-10.png


Screenshot From 2025-04-24 13-20-02.png


Wallpaper

wallpaper.jpg
 
Back
Top