Advancedfeatures

Nicholas edited this page Feb 17, 2016 · 17 revisions

Table of Contents

Hide the key

To hide the key inside an image file (jpeg):

tomb bury -k /path/to/key /path/to/file.jpg

Extracts an hidden key

To extract a pre-hidden key:

tomb exhume -k /path/to/key /path/to/file.jpg

Hooks

Hooks are special files that can be placed inside the tomb and trigger actions when it is opened and closed.

Bind Hooks

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.

Post Hooks

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!