From 932436d47af1c73b6d5781dedec84bd82bfe7ff4 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 6 May 2026 13:20:02 +0200 Subject: Add toggle command to resume/pause playback and fix queue display bug - Add 'rsp toggle' command to toggle between play and pause - Fix queue display showing wrong track as playing when shuffle is enabled - Update shell completion scripts for new toggle command --- src/cli.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index a18b8f1..0da3078 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -37,6 +37,8 @@ pub enum Commands { Pause, /// Resume playback Resume, + /// Toggle play/pause + Toggle, /// Stop playback StopPlayback, /// Skip to next track @@ -133,6 +135,9 @@ impl Cli { Commands::Resume => { crate::daemon::send_command("resume".to_string())?; } + Commands::Toggle => { + crate::daemon::send_command("toggle".to_string())?; + } Commands::StopPlayback => { crate::daemon::send_command("stop".to_string())?; } -- cgit v1.2.3