This script is a downloader with support for cookies. Since it uses the switch –content-disposition it saves files with proper names instead of download.php?fa90394892384 and the likes. It relies on notify-send for sending notifications. Based on dl-cookies.sh
Copy this script to @scripts_dir/dl-dbus.sh.
#!/bin/bash DOWNLOAD_FOLDER=$HOME/incoming cookies="$XDG_DATA_HOME/uzbl/cookies.txt" WGET="wget --user-agent=Firefox --content-disposition\ --no-check-certificate --quiet --load-cookies $cookies" notify-send --icon /usr/share/uzbl/examples/data/uzbl.png ::uzbl:: "started download of $8" cd $DOWNLOAD_FOLDER $WGET $8 && notify-send --icon /usr/share/uzbl/examples/data/uzbl.png "::uzbl:: \"$8 downloaded to $DOWNLOAD_FOLDER\""
Just put
@on_event DOWNLOAD_REQUEST spawn @scripts_dir/dl-dbus.sh %s
in your config and your done.