summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.uzbl/scripts/mytest.sh14
-rwxr-xr-x.uzbl/scripts/ytdl.sh8
-rwxr-xr-xbin/downloads5
3 files changed, 5 insertions, 22 deletions
diff --git a/.uzbl/scripts/mytest.sh b/.uzbl/scripts/mytest.sh
deleted file mode 100755
index f310e49..0000000
--- a/.uzbl/scripts/mytest.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-. "$UZBL_UTIL_DIR/uzbl-dir.sh"
-
->> "$UZBL_BOOKMARKS_FILE" || exit 1
-
-which zenity >/dev/null 2>&1 || exit 2
-
-tags="$( zenity --entry --text="Enter space-separated tags for bookmark $UZBL_URI:" )"
-exitstatus="$?"
-[ "$exitstatus" -eq 0 ] || exit "$exitstatus"
-
-# TODO: check if already exists, if so, and tags are different: ask if you want to replace tags
-echo "$UZBL_URI $tags" >> "$UZBL_BOOKMARKS_FILE"
diff --git a/.uzbl/scripts/ytdl.sh b/.uzbl/scripts/ytdl.sh
deleted file mode 100755
index acf327a..0000000
--- a/.uzbl/scripts/ytdl.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-cd ~/Downloads # change this line to determine where the file is saved
-python2 youtube-dl -o %\(title\)s.%\(ext\)s "$1" # -o output template is optional
-# play with mplayer after download
-savename=`python2 youtube-dl -o %\(title\)s.%\(ext\)s --get-filename "$1"`
-mplayer -really-quiet "$savename"
-ratpoison -c "echo [ytdl-uzbl] $1 done." # change this line to change how you are notified of a
- # completed download
diff --git a/bin/downloads b/bin/downloads
new file mode 100755
index 0000000..c4c306e
--- /dev/null
+++ b/bin/downloads
@@ -0,0 +1,5 @@
+#!/bin/bash
+DOWNLOAD_DIR="$HOME/Downloads"
+PDF=$(ls -t $DOWNLOAD_DIR/*.pdf)
+TARGET=$(echo "${PDF//"$DOWNLOAD_DIR/"/}" | dmenu -i -p "Open File:")
+[[ -n $TARGET ]] && zathura "$DOWNLOAD_DIR/$TARGET" &