common/fs: re-organize ~/Books to be simpler
This commit is contained in:
@@ -6,6 +6,9 @@
|
|||||||
"dev"
|
"dev"
|
||||||
"ref"
|
"ref"
|
||||||
"use"
|
"use"
|
||||||
|
"Books/Audiobook"
|
||||||
|
"Books/Books"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Music"
|
"Music"
|
||||||
|
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
sandbox.whitelistDbus = [ "user" ]; # mpris
|
sandbox.whitelistDbus = [ "user" ]; # mpris
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
|
"Books/Audiobooks"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
];
|
];
|
||||||
|
@@ -6,6 +6,9 @@
|
|||||||
sandbox.autodetectCliPaths = "existingOrParent";
|
sandbox.autodetectCliPaths = "existingOrParent";
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
"archive"
|
"archive"
|
||||||
|
"Books/Audiobooks"
|
||||||
|
"Books/Books"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"records"
|
"records"
|
||||||
|
@@ -7,6 +7,7 @@
|
|||||||
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
|
"Books/Books"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"tmp" #< for downloaded files
|
"tmp" #< for downloaded files
|
||||||
|
@@ -50,6 +50,7 @@ in {
|
|||||||
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
sandbox.whitelistDri = true; # reduces startup time and subjective page flip time
|
||||||
sandbox.whitelistWayland = true;
|
sandbox.whitelistWayland = true;
|
||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
|
"Books/Books"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
];
|
];
|
||||||
|
@@ -194,6 +194,8 @@ in
|
|||||||
".local/share/applications" #< for xdg-terminal-exec (sane-cast)
|
".local/share/applications" #< for xdg-terminal-exec (sane-cast)
|
||||||
# it's common for album (or audiobook, podcast) images/lyrics/metadata to live adjacent to the primary file.
|
# it's common for album (or audiobook, podcast) images/lyrics/metadata to live adjacent to the primary file.
|
||||||
# CLI detection is too poor to pick those up, so expose the common media dirs to the sandbox to make that *mostly* work.
|
# CLI detection is too poor to pick those up, so expose the common media dirs to the sandbox to make that *mostly* work.
|
||||||
|
"Books/Audiobooks"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"Music"
|
"Music"
|
||||||
|
@@ -99,6 +99,9 @@ in
|
|||||||
sandbox.extraHomePaths = [
|
sandbox.extraHomePaths = [
|
||||||
".local/share/applications" #< to locate .desktop files
|
".local/share/applications" #< to locate .desktop files
|
||||||
"Apps" #< provide a means to transition from the filebrowser to the app launcher
|
"Apps" #< provide a means to transition from the filebrowser to the app launcher
|
||||||
|
"Books/Audiobooks"
|
||||||
|
"Books/Books"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"Music"
|
"Music"
|
||||||
|
@@ -20,6 +20,9 @@ in
|
|||||||
# for file-chooser portal users (fractal, firefox, ...), need to provide anything they might want.
|
# for file-chooser portal users (fractal, firefox, ...), need to provide anything they might want.
|
||||||
# i think (?) portal users can only access the files here interactively, i.e. by me interacting with the portal's visual filechooser,
|
# i think (?) portal users can only access the files here interactively, i.e. by me interacting with the portal's visual filechooser,
|
||||||
# so shoving stuff here is trusting the portal but not granting any trust to the portal user.
|
# so shoving stuff here is trusting the portal but not granting any trust to the portal user.
|
||||||
|
"Books/Audiobooks"
|
||||||
|
"Books/Books"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"Music"
|
"Music"
|
||||||
|
@@ -14,6 +14,9 @@ in
|
|||||||
# for file-chooser portal users (fractal, firefox, ...), need to provide anything they might want.
|
# for file-chooser portal users (fractal, firefox, ...), need to provide anything they might want.
|
||||||
# i think (?) portal users can only access the files here interactively, i.e. by me interacting with the portal's visual filechooser,
|
# i think (?) portal users can only access the files here interactively, i.e. by me interacting with the portal's visual filechooser,
|
||||||
# so shoving stuff here is trusting the portal but not granting any trust to the portal user.
|
# so shoving stuff here is trusting the portal but not granting any trust to the portal user.
|
||||||
|
"Books/Audiobooks"
|
||||||
|
"Books/Books"
|
||||||
|
"Books/Visual"
|
||||||
"Books/local"
|
"Books/local"
|
||||||
"Books/servo"
|
"Books/servo"
|
||||||
"Music"
|
"Music"
|
||||||
|
@@ -59,7 +59,7 @@ syncHost() {
|
|||||||
rsync -arv --exclude servo-macros "$mobyHome/Pictures/" "$deskoHome/Pictures/from/moby/"
|
rsync -arv --exclude servo-macros "$mobyHome/Pictures/" "$deskoHome/Pictures/from/moby/"
|
||||||
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
|
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
|
||||||
ifExists /mnt/servo/media/Books/Books \
|
ifExists /mnt/servo/media/Books/Books \
|
||||||
rsync -arv --delete --exclude '*.sdr' /mnt/servo/media/Books/ "$mobyHome/Books/local/servo/"
|
rsync -arv --delete --exclude '*.sdr' /mnt/servo/media/Books/ "$mobyHome/Books/"
|
||||||
# copy music
|
# copy music
|
||||||
ifExists /mnt/servo/media/Music/Various.Artists \
|
ifExists /mnt/servo/media/Music/Various.Artists \
|
||||||
sane-sync-music --compat /mnt/servo/media/Music "$mobyHome/Music" "${syncFlags[@]}"
|
sane-sync-music --compat /mnt/servo/media/Music "$mobyHome/Music" "${syncFlags[@]}"
|
||||||
|
Reference in New Issue
Block a user