summaryrefslogtreecommitdiff
path: root/rmt-action
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2023-09-01 16:10:45 +0200
committerLM-LCL <hello@exaltedelite.club>2023-09-01 16:14:11 +0200
commitb3ba749406e2591493813090c3186dfd9b8f9953 (patch)
tree6911d9614aaf27a6f74feab5c7c0ab4a7ccfb55f /rmt-action
parent9aa290b9667832c8ae41ed8bc36e57da7a74b9c2 (diff)
minor syntax fixes
Diffstat (limited to 'rmt-action')
-rwxr-xr-xrmt-action13
1 files changed, 5 insertions, 8 deletions
diff --git a/rmt-action b/rmt-action
index 13924fb..6b3db9b 100755
--- a/rmt-action
+++ b/rmt-action
@@ -18,13 +18,13 @@ case "$selected" in
"${CHOICES[2]}")
setsid -f mpv --stream-record="$HOME/$(date '+%Y-%m-%d—%T.mkv')" "$url" > /dev/null 2>&1 ;;
"${CHOICES[3]}")
- from="$(print | dmenu -p 'From (00:00/n)')"
+ from="$(echo -n | dmenu -p 'From (00:00/n)')"
[ -z "$from" ] && exit 1
- to="$(print | dmenu -p 'To (00:00/n)')"
+ to="$(echo -n | dmenu -p 'To (00:00/n)')"
[ -z "$to" ] && exit 1
- filename="$(print | dmenu -p 'Filename')"
+ filename="$(echo -n | dmenu -p 'Filename')"
[ -z "$filename" ] && exit 1
ffmpeg -n \
@@ -45,11 +45,8 @@ case "$selected" in
--audio-format mp3 \
--embed-chapters \
"$url" ;;
- "${CHOICES[6]}")
- setsid -f xdg-open "$url" > /dev/null 2>&1 ;;
- "${CHOICES[7]}")
- print "$url" | xclip -r -sel c
- print "$url" | xclip -r ;;
+ "${CHOICES[6]}") setsid -f xdg-open "$url" > /dev/null 2>&1 ;;
+ "${CHOICES[7]}") printf '%s' "$url" | xclip -r -sel c ;;
'') exit 0 ;;
*) exit 1 ;;
esac