Add mount-protondrive script

This commit is contained in:
Evie Litherland-Smith 2025-01-13 06:39:03 +00:00
parent 65a6e2e514
commit 7ec88d955e
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh)) (pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
(pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh)) (pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh))
(pkgs.writeShellScriptBin "animate-wallpaper" (builtins.readFile ./shell/animate-wallpaper.sh)) (pkgs.writeShellScriptBin "animate-wallpaper" (builtins.readFile ./shell/animate-wallpaper.sh))
(pkgs.writeShellScriptBin "mount-protondrive" (builtins.readFile ./shell/mount-protondrive.sh))
(pkgs.writeShellScriptBin "mount-onedrive" (builtins.readFile ./shell/mount-onedrive.sh)) (pkgs.writeShellScriptBin "mount-onedrive" (builtins.readFile ./shell/mount-onedrive.sh))
]; ];
} }

View file

@ -0,0 +1,3 @@
PROTONDRIVE="$HOME/ProtonDrive"
[ -d "$PROTONDRIVE" ] || mkdir -p "$PROTONDRIVE"
[ -z "$(ls -A "$PROTONDRIVE")" ] && rclone --vfs-cache-mode writes mount --daemon ProtonDrive: "$PROTONDRIVE"