sxmo-utils/scripts/core/sxmo_terminal.sh
Stacy Harper 8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00

24 lines
448 B
Bash
Executable file

#!/usr/bin/env sh
# shellcheck disable=SC2086
if [ -z "$TERMNAME" ]; then
TERMNAME="$*"
fi
case "$TERMCMD" in
"st -e")
set -- st -T "$TERMNAME" -e "$@"
;;
"foot")
set -- foot -T "$TERMNAME" "$@"
;;
*)
printf "%s: '%s'\n" "Not implemented for TERMCMD" "$TERMCMD" >&2
set -- $TERMCMD "$@"
esac
if [ -z "$*" ]; then
echo "sxmo_terminal.sh called in TERMMODE without any arguments (returning, nothing to do)" >&2
else
exec "$@"
fi