Skip to content

Commit

Permalink
dotter/onedrive setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
iliekturtles committed Sep 12, 2024
1 parent f2a01e3 commit fa750a1
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions aconfmgr/10-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ AddPackage unzip # For extracting and viewing files in .zip archives
{{#if dotter.packages.linux}}{{#if linux.surface}}AddPackage linux-surface-headers # Headers and scripts for building modules for the Linux kernel{{/if}}{{/if}}
{{#if dotter.packages.neovim-qt}}AddPackage neovim-qt # GUI for Neovim{{/if}}
{{#if dotter.packages.neovim}}AddPackage neovim # Fork of Vim aiming to improve user experience, plugins, and GUIs{{/if}}
{{#if dotter.packages.onedrive}}AddPackage --foreign onedrive-abraunegg-git # Free OneDrive client written in D - abraunegg's fork. Use `liblphobos` and `ldc`.{{/if}}
{{#if dotter.packages.pacman}}AddPackage --foreign pacdiff-pacman-hook-git # Pacman hook to review .pacnew files automatically{{/if}}
{{#if dotter.packages.pacman}}AddPackage pacman-contrib # Contributed scripts and tools for pacman systems{{/if}}
{{#if dotter.packages.paru}}AddPackage --foreign paru-bin # Feature packed AUR helper{{/if}}
Expand Down
1 change: 1 addition & 0 deletions dotter/fhcc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ packages = [
"linux",
"neovim",
"neovim-qt",
"onedrive",
"paru",
"ripgrep",
"rust",
Expand Down
4 changes: 4 additions & 0 deletions dotter/global.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ surface = false
[neovim-qt]
depends = ["neovim"]

[onedrive.files]
"onedrive/config" = "$XDG_CONFIG_HOME/onedrive/config"
"onedrive/sync_list" = "$XDG_CONFIG_HOME/onedrive/sync_list"

[pacman.variables]
pacman = "pacman"

Expand Down
1 change: 1 addition & 0 deletions dotter/jvzx.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ packages = [
"linux",
"neovim",
"neovim-qt",
"onedrive",
"paru",
"ripgrep",
"rust",
Expand Down
44 changes: 44 additions & 0 deletions onedrive/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
sync_dir = "~/OneDrive"
monitor_interval = "300"
log_dir = "/var/log/onedrive/"
drive_id = ""
upload_only = "false"
check_nomount = "false"
check_nosync = "false"
download_only = "false"
disable_notifications = "false"
disable_upload_validation = "false"
enable_logging = "false"
local_first = "false"
no_remote_delete = "false"
skip_symlinks = "false"
debug_https = "false"
skip_dotfiles = "false"
dry_run = "false"
min_notify_changes = "5"
monitor_log_frequency = "5"
monitor_fullscan_frequency = "10"
sync_root_files = "false"
classify_as_big_delete = "1000"
user_agent = ""
remove_source_files = "false"
skip_dir_strict_match = "false"
application_id = ""
resync = "false"
bypass_data_preservation = "false"
azure_ad_endpoint = ""
azure_tenant_id = "common"
sync_business_shared_folders = "false"
sync_dir_permissions = "700"
sync_file_permissions = "600"
rate_limit = "125000000"
operation_timeout = "3600"
webhook_enabled = "false"
webhook_public_url = ""
webhook_listening_host = ""
webhook_listening_port = "8888"
webhook_expiration_interval = "86400"
webhook_renewal_interval = "43200"
skip_file = "~*|.~*|*.tmp"
skip_dir = ""

12 changes: 12 additions & 0 deletions onedrive/dotupdate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{#if dotter.packages.systemd}}
if ! systemctl --user is-enabled onedrive.service > /dev/null; then
echo "Checking onedrive authorization..."
if ! onedrive --display-sync-status; then
onedrive --synchronize --resync
fi

echo "Enabling onedrive.service..."
systemctl --user enable onedrive.service
systemctl --user start onedrive.service
fi
{{/if}}
2 changes: 2 additions & 0 deletions onedrive/sync_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{#if dotter.packages.games}}{{#if games.poe.pob}}Games/Path of Exile{{/if}}{{/if}}
{{#if dotter.packages.keepassxc}}Serious Business/KeePass{{/if}}

0 comments on commit fa750a1

Please sign in to comment.