[GH-ISSUE #1079] [Feature Request] Volume Adjustment, Increase/Decrease from CLI #494

Open
opened 2026-02-28 14:49:30 +03:00 by kerem · 1 comment
Owner

Originally created by @cheyngoodman on GitHub (Apr 11, 2023).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1079

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?

Originally created by @cheyngoodman on GitHub (Apr 11, 2023). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/1079 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. ```sh #!/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?
Author
Owner

@sewnie commented on GitHub (Apr 11, 2023):

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

<!-- gh-comment-id:1502763484 --> @sewnie commented on GitHub (Apr 11, 2023): Spotify-tui had been abandoned, and this won't be fixed. Please use https://github.com/aome510/spotify-player
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#494
No description provided.