aboutsummaryrefslogtreecommitdiff
path: root/dbook
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 /dbook
parent91a695a17cd0c77369a80680c59dd1fe715dfe4d (diff)
font: switch to font awesome for icons
Diffstat (limited to 'dbook')
-rwxr-xr-xdbook12
1 files changed, 6 insertions, 6 deletions
diff --git a/dbook b/dbook
index 487011e..758f646 100755
--- a/dbook
+++ b/dbook
@@ -9,7 +9,7 @@ note()
: "${1:?}"
command -v notify-send > /dev/null &&
- notify-send " dbook" "$1"
+ notify-send " dbook" "$1"
}
die()
@@ -141,7 +141,7 @@ rm_data()
entry()
{
- printf "" | "$menu" -p " ${1:?} " ||
+ printf "" | "$menu" -p " ${1:?} " ||
die "input empty"
}
@@ -252,11 +252,11 @@ main()
printf "%s\t|\t%s\n" "$name" "$data" >> "$book_conf"
;;
-d)
- rm_data "${2:-"$(parse_name | "$menu" -p " " -l 25)"}"
+ rm_data "${2:-"$(parse_name | "$menu" -p " " -l 25)"}"
;;
-t)
shift > /dev/null 2>&1
- data="${*:-"$(parse_name | "$menu" -p " " -l 25 | parse_data)"}"
+ data="${*:-"$(parse_name | "$menu" -p " " -l 25 | parse_data)"}"
[ -z "$data" ] &&
die "empty, use -i to add an entry"
@@ -271,7 +271,7 @@ main()
;;
-c)
shift > /dev/null 2>&1
- data="${*:-"$(parse_name | "$menu" -p " " -l 25 | parse_data)"}"
+ data="${*:-"$(parse_name | "$menu" -p " " -l 25 | parse_data)"}"
[ -z "$data" ] &&
die "empty, use -i to add an entry"
@@ -290,7 +290,7 @@ main()
"")
dep_check "xdg-open"
- data="$(parse_name | "$menu" -p " " -l 25 | parse_data)"
+ data="$(parse_name | "$menu" -p " " -l 25 | parse_data)"
[ -z "$data" ] &&
die "empty, use -i to add an entry"