docs(scripts): script to make Emacs usable in a browser

This commit is contained in:
Lucien Cartier-Tilet 2024-03-21 06:20:13 +01:00
parent 392ec1d137
commit d694bcf2d9
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 22 additions and 0 deletions

View File

@ -1044,6 +1044,28 @@ _ytdl_download_batch
And thats all! If youre 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 lets 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