#!/bin/bash
#
# [Type]
# *
#
# [Description]
# Shows status notifications

case "$SCRIPT_TYPE" in
	pre_mount_command)
		state="Mounting stash"
		;;

	pre_unmount_command)
		state="Unmounting stash"
		;;

	post_*)
		if gnome-encfs-manager is_mounted "$MOUNT_DIR" >/dev/null; then
			state="Stash is mounted"
		else
			state="Stash is unmounted"
		fi
		;;

esac
notify-send --icon="gnome-encfs-manager" "`basename "$MOUNT_DIR"`" "$state"

