Back (Current repo: dotfiles)

my dotfiles to make it easy to transfer my settings
To clone this repository:
git clone https://git.viktor1993.net/dotfiles.git
Log | Download | Files | Refs

addbookmark (236B)


#!/bin/bash

FILE=$HOME/.local/share/bookmarks/bookmarks
BOOKMARK=$(xclip -o)

if [[ $(grep -c "$BOOKMARK" $FILE) -eq 0 ]]; then
    echo $BOOKMARK >> $FILE && notify-send "Bookmark added!"
else
    notify-send "Already bookmarked!"
fi