fix emacsd script naming ; improve setup on android ; add tasker to android

This commit is contained in:
KemoNine 2022-08-06 15:46:25 -04:00
parent e3496c43b6
commit d0addc284c
3 changed files with 11 additions and 3 deletions

View File

@ -42,6 +42,9 @@ fi
# termux tuning
if grep -q "Android" <<< `uname -a`; then
# grab always run in background permission during early setup
termux-wake-lock
termux-wake-unlock
if ! [ -d ~/.termux ]; then
mkdir ~/.termux
fi
@ -56,9 +59,14 @@ if grep -q "Android" <<< `uname -a`; then
if ! [ -d ~/.termux/boot ]; then
mkdir ~/.termux/boot
fi
# tasker scripts (in case boot ones fail, they can be poked via tasker automations)
if ! [ -d ~/.termux/tasker ]; then
mkdir ~/.termux/tasker
fi
# cannot use symlinks -- termux forces full path execution from android launcher shortcuts
cp $PATH_PREFIX/shortcuts/* ~/.shortcuts/
cp $PATH_PREFIX/boot/* ~/.termux/boot/
cp $PATH_PREFIX/emacsd/* ~/.termux/boot
cp $PATH_PREFIX/emacsd/* ~/.termux/tasker
# reload settings
termux-reload-settings
fi

View File

@ -1,2 +1,2 @@
#!/data/data/com.termux/files/usr/bin/sh
/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacs-code '/data/data/com.termux/files/usr/bin/emacs --with-profile code'
/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacsd-code '/data/data/com.termux/files/usr/bin/emacs --with-profile code'

View File

@ -1,2 +1,2 @@
#!/data/data/com.termux/files/usr/bin/sh
/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacs-org '/data/data/com.termux/files/usr/bin/emacs --with-profile org'
/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacsd-org '/data/data/com.termux/files/usr/bin/emacs --with-profile org'