From bf7565e9168e2af7516bdae2458a51bd273f0c41 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 21 Oct 2024 16:57:10 -0500 Subject: [PATCH 1/3] move sync to synchron --- .config/isync/phone-config | 21 +++++++++++++++++++++ builds/utils/{sync => synchron} | 9 +++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .config/isync/phone-config rename builds/utils/{sync => synchron} (60%) diff --git a/.config/isync/phone-config b/.config/isync/phone-config new file mode 100644 index 0000000..1b36029 --- /dev/null +++ b/.config/isync/phone-config @@ -0,0 +1,21 @@ +IMAPStore main-remote +Host mail.beepboop.systems +Port 993 +User ryan@beepboop.systems +PassCmd "rbw get mail.beepboop.systems" +SSLType IMAPS +# termux is weird +CertificateFile /data/data/com.termux/files/usr/etc/tls + +MaildirStore main-local +Path ~/Mail/main/ +Inbox ~/Mail/main/INBOX +Subfolders Verbatim + +Channel main +Far :main-remote: +Near :main-local: +Create Both +Expunge Both +Patterns * +SyncState * diff --git a/builds/utils/sync b/builds/utils/synchron similarity index 60% rename from builds/utils/sync rename to builds/utils/synchron index 4bc8b6c..4cde79b 100755 --- a/builds/utils/sync +++ b/builds/utils/synchron @@ -1,5 +1,10 @@ -is_school && echo "enable the vpn" -mbsync --config=$HOME/.config/isync/config main +if [ "$(hostname)" = "localhost" ]; then + mbsync --config=$HOME/.config/isync/phone-config +else + is_school && echo "enable the vpn" + mbsync --config=$HOME/.config/isync/config main +fi + vdirsyncer sync rbw sync From e6040371004a403572fbd0118a526e0b475a92be Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 21 Oct 2024 17:03:13 -0500 Subject: [PATCH 2/3] make phone/out-of-tree install git-annex --- .config/bash/profile | 4 ++++ boxes/phone/out-of-tree/.gitignore | 2 ++ boxes/phone/out-of-tree/Makefile | 6 +++++- boxes/phone/out-of-tree/install-git-annex.sh | 7 +++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 boxes/phone/out-of-tree/.gitignore create mode 100755 boxes/phone/out-of-tree/install-git-annex.sh diff --git a/.config/bash/profile b/.config/bash/profile index 306ac61..4c59602 100644 --- a/.config/bash/profile +++ b/.config/bash/profile @@ -2,6 +2,10 @@ # paths and stuff export PATH="$PATH:$HOME/.local/bin" + +if [ $(hostname) = "localhost" ]; then # this is phone + export PATH="$PATH:$HOME/dot_testing/boxes/phone/out-of-tree/git-annex.linux" +fi export MANPATH="$(manpath -q):$HOME/.local/share/man" export EDITOR="nvim" mkdir -p "$HOME/.local/bin" "$HOME/.share/man" diff --git a/boxes/phone/out-of-tree/.gitignore b/boxes/phone/out-of-tree/.gitignore new file mode 100644 index 0000000..5b54086 --- /dev/null +++ b/boxes/phone/out-of-tree/.gitignore @@ -0,0 +1,2 @@ +git-annex-install +git-annex.linux diff --git a/boxes/phone/out-of-tree/Makefile b/boxes/phone/out-of-tree/Makefile index dc1908a..b7959b7 100644 --- a/boxes/phone/out-of-tree/Makefile +++ b/boxes/phone/out-of-tree/Makefile @@ -1,4 +1,4 @@ -termux: termux-pkgs termux-dots utils-sh st pip-pkgs +termux: termux-pkgs termux-dots utils-sh st pip-pkgs git-annex.linux st: cd ../../../builds/st/ && CFLAGS="-DIS_PHONE" CC=clang make && cp st ~/.local/bin/st @@ -40,6 +40,7 @@ termux-pkgs: jq \ isync \ neomutt \ + wget \ x11-repo termux-dots: @@ -51,3 +52,6 @@ termux-dots: cp $(CURDIR)/../../../home/wallpapers/pape.jpg ~/.local/share mkdir -p ~/.shortcuts cp $(CURDIR)/shortcuts/* ~/.shortcuts + +git-annex.linux: + bash install-git-annex.sh diff --git a/boxes/phone/out-of-tree/install-git-annex.sh b/boxes/phone/out-of-tree/install-git-annex.sh new file mode 100755 index 0000000..3ee041b --- /dev/null +++ b/boxes/phone/out-of-tree/install-git-annex.sh @@ -0,0 +1,7 @@ +wget https://git-annex.branchable.com/install/Android/git-annex-install +MY_WD=$(pwd) + +source git-annex-install || printf "failed\n" + +cd "$MY_WD" +mv ~/git-annex.linux ./ From 7b5954997ea64ab2f99e581a6c4c5fceea039651 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 21 Oct 2024 17:04:23 -0500 Subject: [PATCH 3/3] update the .gitignore for termux --- .config/.gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/.gitignore b/.config/.gitignore index d1ab355..d915cf4 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -1,2 +1,4 @@ .config +mimeapps.list +pulse/ rbw