|
|
|
@ -12,13 +12,16 @@
|
|
|
|
|
###
|
|
|
|
|
### Author : gotbletu
|
|
|
|
|
### Name : diana-mui
|
|
|
|
|
### Version : 0.2.1
|
|
|
|
|
### Date : 20190607
|
|
|
|
|
### Version : 0.2.2
|
|
|
|
|
### Date : 20190720
|
|
|
|
|
### Description : diana-mui is a Menu User Interface to the diana program. Diana is a commandline interface to aria2 daemon
|
|
|
|
|
### Depends On : bash aria2 coreutils fzf gawk procps-ng xdg-utils diana (https://github.com/baskerville/diana)
|
|
|
|
|
### Video Demo : https://www.youtube.com/watch?v=y59JwlYsrAE
|
|
|
|
|
### References : https://github.com/baskerville/diana/blob/87c5b1b57425585b4c0f543edcf7e9038cf793c5/diana#L427-L429
|
|
|
|
|
|
|
|
|
|
# 20190720 v0.2.2 added tmux clear scrollback
|
|
|
|
|
# 20190607 v0.2.1 added extra hotkeys
|
|
|
|
|
|
|
|
|
|
# download path
|
|
|
|
|
DIANA_DOWNLOAD_DIR=~/Downloads/Aria
|
|
|
|
|
# cli frontend to aria2 daemon
|
|
|
|
@ -31,7 +34,9 @@ DIANAMUI_PROGRESS_BIN=~/.scripts/diana-progress
|
|
|
|
|
main_program () {
|
|
|
|
|
while true; do
|
|
|
|
|
clear
|
|
|
|
|
printf '%s\n\n' '======== Diana MUI ========'
|
|
|
|
|
pidof tmux >/dev/null && tmux clear-history
|
|
|
|
|
|
|
|
|
|
printf '%s\n' '======== Diana MUI ========'
|
|
|
|
|
printf '%s\n' ' o|l) Open File <==> List All Downloads'
|
|
|
|
|
printf '%s\n' ' a|A) Add <==> Add Paused'
|
|
|
|
|
printf '%s\n' ' i|f) File Info <==> Show Filename'
|
|
|
|
|