diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-06 13:07:26 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-06 13:07:26 +0200 |
| commit | 26d6630f5b396964efb6df5cf424d536a59e5329 (patch) | |
| tree | 0146cc7f7be1b9577edbec57d2427ac9f95650ec /completions/rsp.bash | |
| parent | Mark unit tests as completed in TODO.md (diff) | |
| download | rsplayer-26d6630f5b396964efb6df5cf424d536a59e5329.tar.gz rsplayer-26d6630f5b396964efb6df5cf424d536a59e5329.zip | |
Add install script, shell completions, and systemd service
- Add install.sh script that builds release, stops daemon, and installs binary
- Add shell completions for bash, zsh, and fish
- Add systemd user service unit file
- Add public binary declaration in Cargo.toml
- Add install command to CLI
- Make current_track field public for MPRIS integration (placeholder)
Diffstat (limited to 'completions/rsp.bash')
| -rw-r--r-- | completions/rsp.bash | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/completions/rsp.bash b/completions/rsp.bash new file mode 100644 index 0000000..55a25b0 --- /dev/null +++ b/completions/rsp.bash | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #!/usr/bin/env bash | ||
| 2 | |||
| 3 | _rsp() { | ||
| 4 | local cur prev words cword | ||
| 5 | _init_completion || return | ||
| 6 | |||
| 7 | case $prev in | ||
| 8 | rsp) | ||
| 9 | COMPREPLY=($(compgen -W "start stop restart play pause resume next previous volume shuffle queue status scan settings" -- "$cur")) | ||
| 10 | ;; | ||
| 11 | play) | ||
| 12 | _filedir | ||
| 13 | ;; | ||
| 14 | volume) | ||
| 15 | COMPREPLY=($(compgen -W "0 10 20 30 40 50 60 70 80 90 100" -- "$cur")) | ||
| 16 | ;; | ||
| 17 | shuffle) | ||
| 18 | COMPREPLY=($(compgen -W "on off album" -- "$cur")) | ||
| 19 | ;; | ||
| 20 | settings) | ||
| 21 | COMPREPLY=($(compgen -W "get set list unset" -- "$cur")) | ||
| 22 | ;; | ||
| 23 | esac | ||
| 24 | } | ||
| 25 | |||
| 26 | complete -F _rsp rsp | ||
