Does anyone read this? I'll be at the coffee shop accross the street.

This commit is contained in:
coolnsx
2022-12-09 13:40:35 +05:30
parent 04a094e53c
commit 461706e8d6
2 changed files with 9 additions and 6 deletions

2
bkmark
View File

@@ -21,7 +21,7 @@ elif [ "$*" = "rm" ];then
del=$(printf "%s" "$data" | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "delete-bookmark :" | cut -f1)
[ -z "$del" ] || (sed -i "${del}d" "$file" && notify-send "Bookmarked deleted")
else
doas ydotool type "$(cat "$file" | sed '/^$/d' | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "Put-bookmark :" | tr '\`' '\n')"
wtype -d 10 "$(cat "$file" | sed '/^$/d' | bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "Put-bookmark :" | tr '\`' '\n')"
fi
sed -i '/^$/d' "$file"