31 lines
1.2 KiB
Bash
Executable File
31 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Indicator for status of encrypted directory mount
|
|
#
|
|
# Copyright (C) 2012 Mike Gerwitz
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
# The rationale behind this color scheme is that the system is unlikely to
|
|
# function properly (for standard use) if the directory is not mounted. For
|
|
# example, I symlink ~/.mozilla into this directory so that my sync'd
|
|
# data---containing browsing habits and years worth of bookmarks---is not
|
|
# available when I am not physically present at the PC.
|
|
##
|
|
|
|
color=r
|
|
[ -f ~/.enc/.available ] && color=m
|
|
|
|
echo -n "\005{+ ."$color"}*\005{-}"
|