Rigellute / spotify-tui

Spotify for the terminal written in Rust 🚀
MIT License
17.34k stars 518 forks source link

[Feature Request] Volume Adjustment, Increase/Decrease from CLI #1079

Open cheyngoodman opened 1 year ago

cheyngoodman commented 1 year ago

From the TUI you can use + or - to increase or decrease volume. Can the cli be update to allow for spt playback --volume +5 to increase the volume by 5% from the current setting?

An example workaround would be a wrapper script that can be used as spt-vol +5 or spt-vol -5 to increase or decrease volume by 5.

#!/bin/sh
# spt-vol
set -eu

change="$1"
device="$(spt playback --status --format "%d")"
current="$(spt list --devices --format "%d %v" | awk -v f="^$device" '/f/ {print$2}')"

spt playback --volume=$((current + change))

Could this be a native feature for spt directly?

apprehensions commented 1 year ago

Spotify-tui had been abandoned, and this won't be fixed. Please use https://github.com/aome510/spotify-player