diff --git a/_setup.sh b/_setup.sh index 26fe0ef..509e146 100755 --- a/_setup.sh +++ b/_setup.sh @@ -71,7 +71,7 @@ if grep -q "Android" <<< `uname -a`; then echo "use chsh from termux-tools to change default shell to zsh" fi -echo "eza fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow progress s-tui killport micro btop bmon" +echo "eza fd bat tmux htop nano most ripgrep zsh lf restic rclone glow progress s-tui killport micro btop bmon" echo "lazydocker for docker systems" echo "nvtop for gpu systems" echo "termux-api for termux systems" diff --git a/shortcuts/code.sh b/shortcuts/code.sh deleted file mode 100755 index 3a7c77a..0000000 --- a/shortcuts/code.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/data/data/com.termux/files/home/.shortcuts/emacs code diff --git a/shortcuts/emacs b/shortcuts/emacs deleted file mode 100755 index f68274b..0000000 --- a/shortcuts/emacs +++ /dev/null @@ -1,30 +0,0 @@ -#!/data/data/com.termux/files/usr/bin/bash - -# debugging -#echo $1 -#echo $2 - -# get a wake lock so we dont get background killed -/data/data/com.termux/files/usr/bin/termux-wake-lock - -# sync nc -> local based on emacs profile and on/off arg -if [ "$1" == "org" ] && [ "$2" == "" ]; then - /data/data/com.termux/files/home/.shortcuts/rclone-nc-local -fi -if [ "$1" == "code" ] && [ "$2" != "" ]; then - /data/data/com.termux/files/home/.shortcuts/rclone-devdocs -fi - -# run emacs ; assume this will run awhile -- mind battery drain -/data/data/com.termux/files/usr/bin/emacs --with-profile $1 - -# sync local -> nc based on emacs profile and on/off arg -if [ "$1" == "org" ] && [ "$2" == "" ]; then - /data/data/com.termux/files/home/.shortcuts/rclone-local-nc -fi -# conditional here to save typing when it needs sestup -#if [ "$1" == "code" ] && [ "$2" != "" ]; then -#fi - -# release wake lock -/data/data/com.termux/files/usr/bin/termux-wake-unlock diff --git a/shortcuts/org-mode.sh b/shortcuts/org-mode.sh deleted file mode 100755 index c4e9d69..0000000 --- a/shortcuts/org-mode.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -/data/data/com.termux/files/home/.shortcuts/emacs org diff --git a/shortcuts/rclone-devdocs b/shortcuts/rclone-devdocs deleted file mode 100755 index a60f24a..0000000 --- a/shortcuts/rclone-devdocs +++ /dev/null @@ -1,29 +0,0 @@ -#!/data/data/com.termux/files/usr/bin/sh - -# org storage locations -export LOCAL="/data/data/com.termux/files/home/storage/shared" -export NC="nc-personal:" - -# rclone common flags/switches -export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P --transfers=10" - -# get a wake lock so we dont get background killed -/data/data/com.termux/files/usr/bin/termux-wake-lock - -# sync org data to local device (pull down outstanding changes, if any) -echo "syncing devdocs.el data from nextcloud -> local storage" -/data/data/com.termux/files/usr/bin/rclone sync \ - $RC_COMMON \ - ${NC}/devdocs.el/ ${LOCAL}/devdocs.el - -echo "syncing devdocs-browser data from nextcloud -> local storage" -/data/data/com.termux/files/usr/bin/rclone sync \ - $RC_COMMON \ - ${NC}/devdocs-browser/ ${LOCAL}/devdocs-broswer/ - -# pause to review rclone output -echo "press enter to continue" -read junkvar - -# release wake lock -/data/data/com.termux/files/usr/bin/termux-wake-unlock diff --git a/shortcuts/rclone-local-nc b/shortcuts/rclone-local-nc deleted file mode 100755 index 765ef2c..0000000 --- a/shortcuts/rclone-local-nc +++ /dev/null @@ -1,33 +0,0 @@ -#!/data/data/com.termux/files/usr/bin/sh - -# debugging -#echo $1 -#export RC_DEBUG="-P --dry-run" - -# org storage locations -#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/" -export LOCAL_ORG="/data/data/com.termux/files/home/org/" -export NC_ORG="nc-personal:/org/" - -# rclone common flags/switches -export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable --interactive" - -# get a wake lock so we dont get background killed -/data/data/com.termux/files/usr/bin/termux-wake-lock - -# sync any local changes up to the main server -echo "starting rclone from local storage -> nextcloud" -/data/data/com.termux/files/usr/bin/rclone sync \ - $RC_COMMON $RC_DEBUG \ - --filter "+ /Documents/Resume/**" \ - --filter "- archivebox" \ - --filter "- /Attic/" \ - --filter "- /Documents/" \ - $LOCAL_ORG $NC_ORG - -# pause to review rclone output -echo "press enter to continue" -read junkvar - -# release wake lock -/data/data/com.termux/files/usr/bin/termux-wake-unlock diff --git a/shortcuts/rclone-nc-books b/shortcuts/rclone-nc-books deleted file mode 100755 index aaf06eb..0000000 --- a/shortcuts/rclone-nc-books +++ /dev/null @@ -1,29 +0,0 @@ -#!/data/data/com.termux/files/usr/bin/sh - -# debugging -#echo $1 -#export RC_DEBUG="-P --dry-run" - -# org storage locations -export LOCAL_BOOKS="/data/data/com.termux/files/home/storage/shared/Books/" -export NC_BOOKS="nc-personal:/Books/" - -# rclone common flags/switches -export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable --interactive" -export RC_EXCLUDE="--exclude=/Apps/** --exclude=/.MoonReader/** --exclude=/MoonReader/**" - -# get a wake lock so we dont get background killed -/data/data/com.termux/files/usr/bin/termux-wake-lock - -# sync org data to local device (pull down outstanding changes, if any) -echo "starting books rclone from nextcloud -> local storage" -/data/data/com.termux/files/usr/bin/rclone sync \ - $RC_COMMON $RC_EXCLUDE $RC_DEBUG \ - $NC_BOOKS $LOCAL_BOOKS - -# pause to review rclone output -echo "press enter to continue" -read junkvar - -# release wake lock -/data/data/com.termux/files/usr/bin/termux-wake-unlock diff --git a/shortcuts/rclone-nc-local b/shortcuts/rclone-nc-local deleted file mode 100755 index 6f9b0b8..0000000 --- a/shortcuts/rclone-nc-local +++ /dev/null @@ -1,36 +0,0 @@ -#!/data/data/com.termux/files/usr/bin/sh - -# debugging -#echo $1 -#export RC_DEBUG="-P --dry-run" - -# org storage locations -#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/" -export LOCAL_ORG="/data/data/com.termux/files/home/org/" -export NC_ORG="nc-personal:/org/" - -# rclone common flags/switch -export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P" - -# get a wake lock so we dont get background killed -/data/data/com.termux/files/usr/bin/termux-wake-lock - -# sync org data to local device (pull down outstanding changes, if any) -echo "starting rclone from nextcloud -> local storage" -/data/data/com.termux/files/usr/bin/rclone sync \ - $RC_COMMON $RC_DEBUG \ - --filter "+ /Documents/Resume/**" \ - --filter "- archivebox" \ - --filter "- /Attic/" \ - --filter "- /Documents/" \ - $NC_ORG $LOCAL_ORG - -# pause to review rclone output -#echo "press enter to continue" -#read junkvar - -# release wake lock -/data/data/com.termux/files/usr/bin/termux-wake-unlock - -echo "Press enter to exit" -read junkvar