aboutsummaryrefslogtreecommitdiff
path: root/dpass
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-03-20 17:12:40 +0530
committersinanmohd <sinan@firemail.cc>2023-03-20 17:12:40 +0530
commit4387ee91cf388be1a2769755c5993e1f35497602 (patch)
treede312020092d00437ee8e248ecdbb7668977a735 /dpass
parent91a695a17cd0c77369a80680c59dd1fe715dfe4d (diff)
font: switch to font awesome for icons
Diffstat (limited to 'dpass')
-rwxr-xr-xdpass19
1 files changed, 9 insertions, 10 deletions
diff --git a/dpass b/dpass
index e1592b2..99654b2 100755
--- a/dpass
+++ b/dpass
@@ -3,12 +3,19 @@
pass_store_dir="${PASSWORD_STORE_DIR:-$HOME/.pass}"
menu="wmenu"
-die()
+note()
{
: "${1:?}"
command -v notify-send > /dev/null &&
- notify-send " dpass" "$1"
+ notify-send "󰟵 dpass" "$1"
+}
+
+die()
+{
+ : "${1:?}"
+
+ note "$1"
printf "\033[31;1merr: %b\033[0m\n" "$1"
exit "${2:-1}"
@@ -26,14 +33,6 @@ dep_check()
unset dep
}
-note()
-{
- : "${1:?}"
-
- command -v notify-send > /dev/null &&
- notify-send "󰟵 dpass" "$1"
-}
-
search()
{
# usage: search directory