From a15c1ef7b2332edb9d164c6be3d25691ffdc5700 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 6 Aug 2022 16:25:16 -0400 Subject: [PATCH] remove boot script stuff ; couldnt get it to work ; add tasker support --- _setup.sh | 7 +------ emacsd/emacsd-code.sh | 3 ++- emacsd/emacsd-org.sh | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/_setup.sh b/_setup.sh index a583b2c..8b31db4 100755 --- a/_setup.sh +++ b/_setup.sh @@ -55,23 +55,18 @@ if grep -q "Android" <<< `uname -a`; then if ! [ -d ~/.shortcuts ]; then mkdir ~/.shortcuts fi - # boot scripts - 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/emacsd/* ~/.termux/boot cp $PATH_PREFIX/emacsd/* ~/.termux/tasker # reload settings termux-reload-settings fi -echo "ensure Termux:Boot android helper app is installed from f-droid" +echo "use tasker scripts to launch emacsd styled setup on boot ; Termux::Boot does not work for me" echo "exa fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow" echo "copy restic.sh if desired/needed" echo "run tmux and do -I to install plugins and finish setup" diff --git a/emacsd/emacsd-code.sh b/emacsd/emacsd-code.sh index 51b755e..6d5991f 100755 --- a/emacsd/emacsd-code.sh +++ b/emacsd/emacsd-code.sh @@ -1,2 +1,3 @@ #!/data/data/com.termux/files/usr/bin/sh -/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' +/data/data/com.termux/files/usr/bin/termux-wake-lock +/data/data/com.termux/files/usr/bin/tmux new-session -s emacsd-code '/data/data/com.termux/files/usr/bin/emacs --with-profile code' diff --git a/emacsd/emacsd-org.sh b/emacsd/emacsd-org.sh index ec5c538..e8d7cb4 100755 --- a/emacsd/emacsd-org.sh +++ b/emacsd/emacsd-org.sh @@ -1,2 +1,3 @@ #!/data/data/com.termux/files/usr/bin/sh +/data/data/com.termux/files/usr/bin/termux-wake-lock /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'