From 1d901448ca277ae4a0b2bac8167d01048050b07c Mon Sep 17 00:00:00 2001 From: LailaTheElf Date: Mon, 27 Jan 2025 14:20:35 +0100 Subject: [PATCH] update bisync scripts and add python venv --- configs/rclone/bisync_documents.filter | 3 +++ configs/rclone/bisync_documents.sh | 4 ++++ configs/rclone/bisync_home.filter | 7 +------ configs/rclone/bisync_music.sh | 3 +++ first-boot.sh | 4 ++-- 5 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 configs/rclone/bisync_documents.filter create mode 100755 configs/rclone/bisync_documents.sh create mode 100755 configs/rclone/bisync_music.sh diff --git a/configs/rclone/bisync_documents.filter b/configs/rclone/bisync_documents.filter new file mode 100644 index 0000000..f3bea0f --- /dev/null +++ b/configs/rclone/bisync_documents.filter @@ -0,0 +1,3 @@ ++ ** + +- qoi diff --git a/configs/rclone/bisync_documents.sh b/configs/rclone/bisync_documents.sh new file mode 100755 index 0000000..0f368ed --- /dev/null +++ b/configs/rclone/bisync_documents.sh @@ -0,0 +1,4 @@ +#/bin/bash + +rclone bisync "$HOME/Documents" pdrive:Documents --verbose --progress \ + --filter-from "$HOME/.config/rclone/bisync_documents.filter" $* diff --git a/configs/rclone/bisync_home.filter b/configs/rclone/bisync_home.filter index 8bafe2f..d2e2c85 100644 --- a/configs/rclone/bisync_home.filter +++ b/configs/rclone/bisync_home.filter @@ -1,10 +1,5 @@ -+ /Music/** -+ /Documents/** + /InstantUpload/** -+ /verenigingen/* -+ /Desktop/** -+ /Public/** -+ /Videos/** ++ /verenigingen/** + /.vault/** - ** diff --git a/configs/rclone/bisync_music.sh b/configs/rclone/bisync_music.sh new file mode 100755 index 0000000..b8b74ac --- /dev/null +++ b/configs/rclone/bisync_music.sh @@ -0,0 +1,3 @@ +#/bin/bash + +rclone bisync "$HOME/Music" pdrive:Music --verbose --progress $* diff --git a/first-boot.sh b/first-boot.sh index 8d3be62..9676fd4 100755 --- a/first-boot.sh +++ b/first-boot.sh @@ -52,11 +52,11 @@ EOF " run "$USERNAME" "create home dirs" "mkdir -p \ - /home/$USERNAME/.local/python-env \ + /home/$USERNAME/.local/py-glob \ /home/$USERNAME/.ssh \ /home/$USERNAME/projects \ /home/$USERNAME/.local/share/flatpak/overrides/" -# run ubuntu "create python env" "python3 -m venv /home/$USERNAME/.local/python-env" +run "$USERNAME" "create python env" "python3 -m venv /home/$USERNAME/.local/py-glob" run "$USERNAME" "copy ssh config" "cp $CONFIG_DIR/sshConfig /home/$USERNAME/.ssh/config" run "$USERNAME" "copy git config" "cp $CONFIG_DIR/gitconfig /home/$USERNAME/.gitconfig" run "$USERNAME" "copy vim config" "cp $CONFIG_DIR/vimrc /home/$USERNAME/.vimrc"