Skip to content

Configuration

スーイツ edited this page May 4, 2018 · 4 revisions

Defaults

Below is a copy of the default configuration provided by Nougat, should you ever need it.

NOUGAT_SCREENSHOT_DIRECTORY="$HOME/Screenshots"
NOUGAT_ORGANIZATION_POLICY="${year}/${month}/${day}/${hour}:${minute}:${second}${suffix}"
NOUGAT_LINKING_POLICY="All/${year}-${month}-${day}.${hour}:${minute}:${second}${suffix}"
MAIM_BACKEND_OPTIONS=""
SCROT_BACKEND_OPTIONS=""
IMAGEMAGICK_BACKEND_OPTIONS=""

Screenshot Directory

This is the main directory where screenshots will be placed. Screenshots are only directly placed here if there are no directories in the organization policy. If there are, Nougat will create the appropriate directories as defined by the organization policy.

The default directory is set to $HOME/Screenshots

Organization Policy

The policy by which images are organized and named. The output path of a screenshot is the screenshot directory as the parent, and the organization policy as the subdirectory to the screenshot directory.

As an example, if your organization policy is set to ${year}/${month}-${day}/${hour}:${minute}:${second}${suffix}, then the path of an image you take at 5:42:01 on March 3rd, 2017 is $NOUGAT_SCREENSHOT_DIRECTORY/2017/March-3/05:42:01.png

Linking Policy

The linking policy is completely optional, but it is the directory where symlinks are placed to images as a way to quickly select a specific image from a large amount in your collection without having to traverse each individual directory defined by the organization policy.

If a linking policy is defined as all/${year}-${month}-${day}-${hour}:${minute}:${second}${suffix}, then an image taken at 5:42:01 on March 3rd, 2017 will have a symlink to it created at $NOUGAT_SCREENSHOT_DIRECTORY/all/2017-March-3-5:42:01.png

To disable screenshot linking simply remove or comment out (by placing a # in front of it) the NOUGAT_LINKING_POLICY.

Variables

There are a set of variables that can be used by either policies, such variables are defined below.

Variable Example
${year} 1970
${month} January
${day} 1
${hour} 00
${minute} 00
${second} 00
${suffix} _full

Backend Options

Any backend options in the configuration simply appends them to the arguments of a given command after Nougat has generated options for said backend. It is up to the backend to handle multiple instances of a single supplied option.

Clone this wiki locally