We then simplify the sxmo_modemtext that was already using SSH related behaviors. Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>master
parent
33e6ce14b3
commit
a3e4dc0fa4
6 changed files with 41 additions and 21 deletions
@ -0,0 +1,9 @@ |
||||
#!/usr/bin/env sh |
||||
|
||||
TERMMODE=$([ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "true") |
||||
|
||||
if [ "$TERMMODE" != "true" ]; then |
||||
exec dmenu "$@" |
||||
else |
||||
exec vis-menu -i -l 10 |
||||
fi |
@ -0,0 +1,14 @@ |
||||
#!/usr/bin/env sh |
||||
|
||||
TERMMODE=$([ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && echo "true") |
||||
|
||||
if [ "$TERMMODE" = "true" ]; then |
||||
while [ "-e" != "$1" ] || [ 0 -eq $# ]; do |
||||
shift |
||||
done |
||||
shift |
||||
else |
||||
set -- st "$@" |
||||
fi |
||||
|
||||
exec "$@" |
Loading…
Reference in new issue