From 5d4e428f97863e3f2cf81bc0818bf9b063e262bf Mon Sep 17 00:00:00 2001 From: krolxon Date: Thu, 16 May 2024 19:14:59 +0530 Subject: [PATCH] add '+' to increase volume --- README.md | 60 ++++++++++++++++++++++---------------------- src/event/handler.rs | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 82e569c..4bacc26 100755 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/event/handler.rs b/src/event/handler.rs index 454b5c4..3d472a6 100755 --- a/src/event/handler.rs +++ b/src/event/handler.rs @@ -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(); }