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"
|
||||
else
|
||||
printf "%s" "$data" >> "$file"
|
||||
printf "\n" >> "$file"
|
||||
notify-send "Bookmarked" "$data"
|
||||
fi
|
||||
elif [ "$*" = "rm" ];then
|
||||
@@ -24,3 +23,6 @@ elif [ "$*" = "rm" ];then
|
||||
else
|
||||
xdotool type "$(cat "$file" | sed '/^$/d' | dmenu -p "Put-bookmark :" | tr '\`' '\n')"
|
||||
fi
|
||||
|
||||
sed -i '/^$/d' "$file"
|
||||
printf "\n" >> "$file"
|
||||
|
||||
Reference in New Issue
Block a user