aboutsummaryrefslogtreecommitdiffstats
path: root/.config/cs/post_mount/media
diff options
context:
space:
mode:
Diffstat (limited to '.config/cs/post_mount/media')
-rwxr-xr-x.config/cs/post_mount/media10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/cs/post_mount/media b/.config/cs/post_mount/media
new file mode 100755
index 0000000..0e12ea7
--- /dev/null
+++ b/.config/cs/post_mount/media
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+sudo mkdir -vp /mnt/{music,photos}
+sudo mount -v --bind /mnt/media/music /mnt/music
+sudo mount -v --bind /mnt/media/photos /mnt/photos
+if [ ! -h ~/.cache/shotwell ]; then
+ ln -sv /mnt/photos/shotwell/ ~/.cache/shotwell
+fi