diff options
Diffstat (limited to 'shortcuts')
-rwxr-xr-x | shortcuts/pc-connect | 9 | ||||
-rwxr-xr-x | shortcuts/pc-disconnect | 7 | ||||
-rwxr-xr-x | shortcuts/sync-tab | 5 | ||||
-rwxr-xr-x | shortcuts/toggle-vault | 6 |
4 files changed, 27 insertions, 0 deletions
diff --git a/shortcuts/pc-connect b/shortcuts/pc-connect new file mode 100755 index 0000000..0c5fe12 --- /dev/null +++ b/shortcuts/pc-connect @@ -0,0 +1,9 @@ +#!/bin/sh + +termux-wake-lock +su -c setprop service.adb.tcp.port 43896 +su -c start adbd + +for prog in sshd syncthing; do + pidof -q "$prog" || "$prog" & +done >/dev/null 2>&1 diff --git a/shortcuts/pc-disconnect b/shortcuts/pc-disconnect new file mode 100755 index 0000000..4f5ed19 --- /dev/null +++ b/shortcuts/pc-disconnect @@ -0,0 +1,7 @@ +#!/bin/sh + +pkill syncthing +pkill sshd + +su -c stop adbd +termux-wake-unlock diff --git a/shortcuts/sync-tab b/shortcuts/sync-tab new file mode 100755 index 0000000..6ded2de --- /dev/null +++ b/shortcuts/sync-tab @@ -0,0 +1,5 @@ +#!/bin/sh + +. ~/.profile + +synctab diff --git a/shortcuts/toggle-vault b/shortcuts/toggle-vault new file mode 100755 index 0000000..36393ef --- /dev/null +++ b/shortcuts/toggle-vault @@ -0,0 +1,6 @@ +#!/bin/sh + +state="Not Implemented" +echo "$state" +termux-toast "Toggle Vault is $state" +sleep 1 |