From d694bcf2d9bd20849abe38a821e194ba300ee8e2 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 21 Mar 2024 06:20:13 +0100 Subject: [PATCH] docs(scripts): script to make Emacs usable in a browser --- docs/scripts.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/scripts.org b/docs/scripts.org index 35d5bc1..36ba0a7 100644 --- a/docs/scripts.org +++ b/docs/scripts.org @@ -1044,6 +1044,28 @@ _ytdl_download_batch And that’s all! If you’re interested with a very simple interface for downloading one video once, I wrote a small [[file:./scripts.md#rofi-ytdl][=rofi-ytdl=]] script that calls the ~rofi~ utility to specify a single link and download it. + +** Misc +*** Broadway +:PROPERTIES: +:HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/broadway +:END: +This simple script launches broadwayd, a utility that renders GTK +applications as web apps, and a program displayed to broadway +directly. +#+begin_src sh +export display_screen=:5 +broadwayd $display_screen & +GDK_BACKEND=broadway BROADWAY_DISPLAY=$display_screen "$@" +#+end_src + +But let’s cut the middleman for most of my uses of Broadway. +#+begin_src sh :tangle ~/.local/bin/emacs-web +export display_screen=:5 +broadwayd $display_screen & +GDK_BACKEND=broadway BROADWAY_DISPLAY=$display_screen emacs +#+end_src + ** Plock :PROPERTIES: :HEADER-ARGS: :shebang "#!/usr/bin/env sh" :mkdirp yes :tangle ~/.local/bin/plock