#!/bin/bash START_DIR="$HOME/Downloads" ROFI_THEME="ErikaScythe" # CHANGE THEME DIR="$START_DIR" FULL_DIR="$DIR" while [[ -n $DIR && $DIR != "." ]]; do DIR="$( { echo -e ".\n.."; find "${FULL_DIR}" -mindepth 1 -maxdepth 1 -type d | sed -r "s|^.*\/||g" | sort -V ; } | rofi -dmenu -i -no-custom -p "" -theme "$ROFI_THEME" -async-pre-read 3 -no-click-to-exit )" FULL_DIR="${FULL_DIR}/${DIR}" done [[ -z "$DIR" ]] && exit -1 for file in "$@"; do transmission-remote -a "$file" -w "$FULL_DIR" done