diff options
author | Yigit Sever | 2020-09-16 15:22:27 +0300 |
---|---|---|
committer | Yigit Sever | 2020-09-16 15:22:27 +0300 |
commit | 7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0 (patch) | |
tree | dbc1e308cfbb398f77c784b7ea52c08e5aeb8332 /bin/bukuadd_c | |
parent | 44ff427c77e4c3848d273b0bc3484435ec9528c7 (diff) | |
download | dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.tar.gz dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.tar.bz2 dotfiles-7419b9fc45ba291d5d10a9f5bea3fa5d33dfedc0.zip |
move bin to .local/bin
Diffstat (limited to 'bin/bukuadd_c')
-rwxr-xr-x | bin/bukuadd_c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/bin/bukuadd_c b/bin/bukuadd_c deleted file mode 100755 index d4e1a3d..0000000 --- a/bin/bukuadd_c +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | #set -e | ||
4 | url=$(xsel -b) | ||
5 | tags=$(zenity --entry --text="enter tags for $url") | ||
6 | |||
7 | if [[ $? -ne 0 ]]; then | ||
8 | exit 0 | ||
9 | fi | ||
10 | |||
11 | FOO=$(buku --np --nc -p -1) | ||
12 | OUT="$(buku --np --nc -a "$url" "$tags" 2>&1)" | ||
13 | #echo "OUT>$OUT" | ||
14 | if [[ $OUT =~ "ERROR" ]] ; then | ||
15 | notify-send "Bookmarking Failed" "$OUT" --app-name="buku" --icon="dialog-error" | ||
16 | exit 1 | ||
17 | fi | ||
18 | |||
19 | BAR=$FOO | ||
20 | |||
21 | while [[ $BAR == "$FOO" ]]; do | ||
22 | sleep 1 | ||
23 | BAR=$(buku --np --nc -p -1) | ||
24 | #echo "BAR>$BAR" | ||
25 | done; | ||
26 | |||
27 | notify-send "Success" "$BAR" --app-name="buku" --icon="checkmark" | ||
28 | |||
29 | exit 0 | ||