mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
Rush B!
This commit is contained in:
4
bkmark
4
bkmark
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user