Paste number 339819: Remove titlebar in GNOME for Emacs

Paste number 339819: Remove titlebar in GNOME for Emacs
Pasted by: roelj
When:4 years, 9 months ago
Share:Tweet this! | http://paste.lisp.org/+7A7F
Channel:None
Paste contents:
Raw Source | XML | Display As
;; Needs 'xwininfo' and 'xprop' packages.
(defun remove-window-titlebar ()
  "Remove the titlebar from the Emacs window."
  (interactive)
  (let ((commands (split-string
                   (shell-command-to-string
                    (concat
                     "xwininfo -root -tree | grep \"emacs\" | "
                     "awk '{ print \"xprop -id \" $1 \" "
                     "-f _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED 32c "
                     "-set _GTK_HIDE_TITLEBAR_WHEN_MAXIMIZED 0x1\" }'")) "\n")))
    (mapc 'shell-command commands)
    t))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.