Derp, asset redirection in dev mode

This commit is contained in:
coolnsx
2024-02-29 15:17:10 +05:30
parent 09ab6e0765
commit 80de39466a
11 changed files with 81 additions and 41 deletions

View File

@@ -7,7 +7,7 @@ data="$(wl-paste -p | tr '\n' '\`' | sed 's/$/ /g')"
file="$HOME/.cache/bookmarks"
oshi_file="$HOME/.cache/oshi-urls"
menu(){
menu() {
bemenu --fn 'Roboto 15' -i -c -W 0.6 -B 3 -l 30 -p "$1" --bdr="#$GLOBAL_ACCENT" --tf="#$GLOBAL_ACCENT" --hf="#$GLOBAL_ACCENT"
}
@@ -25,7 +25,7 @@ case $1 in
rm)
data="$(sed '/^$/d' "$file" | nl -n'ln')"
[ -z "$data" ] && notify-send "Bookmark is empty" && exit 0
del=$(printf "%s" "$data" | menu "delete-bookmark :" | cut -f1)
del=$(printf "%s" "$data" | menu "delete-bookmark :" | cut -f1)
[ -z "$del" ] || (sed -i "${del}d" "$file" && notify-send -i "bookmark-missing" "Bookmark deleted" -u critical)
;;
copy)