This commit is contained in:
CoolnsX
2022-11-09 01:54:18 +05:30
parent 4a90838025
commit d1e0f875dc

4
bkmark
View File

@@ -13,7 +13,6 @@ if [ "$*" = "add" ];then
notify-send "Already bookmarked" notify-send "Already bookmarked"
else else
printf "%s" "$data" >> "$file" printf "%s" "$data" >> "$file"
printf "\n" >> "$file"
notify-send "Bookmarked" "$data" notify-send "Bookmarked" "$data"
fi fi
elif [ "$*" = "rm" ];then elif [ "$*" = "rm" ];then
@@ -24,3 +23,6 @@ elif [ "$*" = "rm" ];then
else else
xdotool type "$(cat "$file" | sed '/^$/d' | dmenu -p "Put-bookmark :" | tr '\`' '\n')" xdotool type "$(cat "$file" | sed '/^$/d' | dmenu -p "Put-bookmark :" | tr '\`' '\n')"
fi fi
sed -i '/^$/d' "$file"
printf "\n" >> "$file"