add '+' to increase volume

This commit is contained in:
krolxon 2024-05-16 19:14:59 +05:30
parent 0b184ec714
commit 5d4e428f97
2 changed files with 31 additions and 31 deletions

View File

@ -9,36 +9,36 @@ rmptui is a minimal tui mpd client made with rust.
![](https://raw.githubusercontent.com/krolyxon/rmptui/master/assets/ss.png)
### Keys
| Key | Action |
| --- | --- |
| `q` OR `Ctr+C` | Quit |
| `p` | Toggle pause |
| `+` | Increase volume |
| `-` | Decrease volume |
| `D` | Get dmenu prompt |
| `j` OR `Down` | Scroll down |
| `k` OR `Up` | Scroll up |
| `J` | Swap highlighted song with next one |
| `K` | Swap highlighted song with previous one |
| `l` OR `Right` | Add song to playlist or go inside the directory |
| `h` OR `Left` | Go back to previous directory |
| `Tab` | Cycle through tabs |
| `1` | Go to queue |
| `2` | Go to directory browser |
| `3` | Go to playlists view |
| `Enter` OR `l` OR `Right` | Add song/playlist to current playlist |
| `a` | Append the song to current playing queue |
| `Space`/`BackSpace` | Delete the highlighted song from queue |
| `f` | Go forwards |
| `b` | Go backwards |
| `>` | Play next song from queue |
| `<` | Play previous song from queue |
| `U` | Update the MPD database |
| `r` | Toggle repeat |
| `z` | Toggle random |
| `/` | Search |
| `g` | Go to top of list |
| `G` | Go to bottom of list |
| Key | Action |
| --- | --- |
| `q`/`Ctr+C` | Quit |
| `p` | Toggle pause |
| `+`/'=' | Increase volume |
| `-` | Decrease volume |
| `D` | Get dmenu prompt |
| `j`/`Down` | Scroll down |
| `k`/`Up` | Scroll up |
| `J` | Swap highlighted song with next one |
| `K` | Swap highlighted song with previous one |
| `l`/`Right` | Add song to playlist or go inside the directory |
| `h`/`Left` | Go back to previous directory |
| `Tab` | Cycle through tabs |
| `1` | Go to queue |
| `2` | Go to directory browser |
| `3` | Go to playlists view |
| `Enter`/`l`/`Right` | Add song/playlist to current playlist |
| `a` | Append the song to current playing queue |
| `Space`/`BackSpace` | Delete the highlighted song from queue |
| `f` | Go forwards |
| `b` | Go backwards |
| `>` | Play next song from queue |
| `<` | Play previous song from queue |
| `U` | Update the MPD database |
| `r` | Toggle repeat |
| `z` | Toggle random |
| `/` | Search |
| `g` | Go to top of list |
| `G` | Go to bottom of list |
### Prerequisites
- [MPD](https://wiki.archlinux.org/title/Music_Player_Daemon) installed and configured.

View File

@ -119,7 +119,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
}
// Volume controls
KeyCode::Char('=') => {
KeyCode::Char('=') | KeyCode::Char('+') => {
app.conn.inc_volume(2);
app.conn.update_status();
}