Using $DMENU instead of dmenu binary.
This commit is contained in:
parent
7a5c6c41ce
commit
c8ffcdd6ac
@ -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"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user