#!/bin/sh init(){ # add menu items https://xrsh.isvery.ninja/#Launcher%20menu { find /root/.config/launcher -type f; find /root/.config/launcher -type l; } | while read item; do js ' let term = document.querySelector("[isoterminal]").components.isoterminal.term launcher.register({ name: "'$(basename $item)'", cb: () => term.emit("exec",["'$item'"]) }) return "'$item'" ' done > /tmp/log } "$@"