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 # termux tuning
if grep -q "Android" <<< `uname -a`; then 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 if ! [ -d ~/.termux ]; then
mkdir ~/.termux mkdir ~/.termux
fi fi
@ -56,9 +59,14 @@ if grep -q "Android" <<< `uname -a`; then
if ! [ -d ~/.termux/boot ]; then if ! [ -d ~/.termux/boot ]; then
mkdir ~/.termux/boot mkdir ~/.termux/boot
fi 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 # cannot use symlinks -- termux forces full path execution from android launcher shortcuts
cp $PATH_PREFIX/shortcuts/* ~/.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 # reload settings
termux-reload-settings termux-reload-settings
fi fi

View file

@ -1,2 +1,2 @@
#!/data/data/com.termux/files/usr/bin/sh #!/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/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'