diff --git a/dmenu-transmission b/dmenu-transmission index 262ed07..18d4f34 100755 --- a/dmenu-transmission +++ b/dmenu-transmission @@ -1,6 +1,8 @@ #!/bin/env bash -id=$(transmission-remote -l | dmenu -l 10 | awk '{print $1}'| sed 's/*//') +source $HOME/.config/dmenu/config + +id=$(transmission-remote -l | $DMENU -l 10 | awk '{print $1}'| sed 's/*//') [ -z "$id" ] && exit 0 @@ -16,7 +18,7 @@ move () { current=$(transmission-remote -t 1 -i | grep -i location | awk '{print $2}') - choice=$(printf '%s\n' "${paths[@]}" | dmenu -p "Current: $current") + choice=$(printf '%s\n' "${paths[@]}" | $DMENU -p "Current: $current") [ -z "$choice" ] && quick-notify "Transmission" "No path chosen" && exit @@ -31,7 +33,7 @@ move () { } -case "$(printf "Start\\nStop\\nMove\\nRemove" | dmenu -p "Torrent Action: ")" in +case "$(printf "Start\\nStop\\nMove\\nRemove" | $DMENU -p "Torrent Action: ")" in Remove) transmission-remote -t $id -rad quick-notify "Transmission" "Removed $id" ;;