-
-
Notifications
You must be signed in to change notification settings - Fork 159
Advancedfeatures
To hide the key inside an image file (jpeg):
tomb bury -k /path/to/key /path/to/file.jpg
To extract a pre-hidden key:
tomb exhume -k /path/to/key /path/to/file.jpg
Hooks are special files that can be placed inside the tomb and trigger actions when it is opened and closed.
This hook file is useful to mount specified directory from the tomb in the user's home.
Suppose that you want to store securely in a tomb some directory placed in your home but these directories must to be exactly where they are and not inside the tomb. For example the directories Mail and Documents.
Bind-hooks helps you to solve this problem. Just move these directories in the tomb's root and create a file named bind-hooks in the same place. Now put inside the file a two columns table like the one in the example:
mail Mail
documents Documents
In the first column are indicated paths relative to the tomb and in the second column are indicated paths relative to $HOME contents.
In this way every time you open the tomb your directories will be mounted in the right places.
This hook file can consist of a shell script or a binary executable executed after opening the tomb.
Suppose that you need to open your todolist.txt saved in the tomb's root every time you access it. Just create a file named post-hooks in the tomb's root with this content:
#!/bin/sh
<your preferred text editor> todolist.txt
That's it!