Add mount-protondrive script
This commit is contained in:
parent
65a6e2e514
commit
7ec88d955e
|
@ -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))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
3
system/home/scripts/shell/mount-protondrive.sh
Normal file
3
system/home/scripts/shell/mount-protondrive.sh
Normal 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"
|
Loading…
Reference in a new issue