add '+' to increase volume
This commit is contained in:
parent
0b184ec714
commit
5d4e428f97
60
README.md
60
README.md
|
|
@ -9,36 +9,36 @@ rmptui is a minimal tui mpd client made with rust.
|
||||||

|

|
||||||
|
|
||||||
### Keys
|
### Keys
|
||||||
| Key | Action |
|
| Key | Action |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `q` OR `Ctr+C` | Quit |
|
| `q`/`Ctr+C` | Quit |
|
||||||
| `p` | Toggle pause |
|
| `p` | Toggle pause |
|
||||||
| `+` | Increase volume |
|
| `+`/'=' | Increase volume |
|
||||||
| `-` | Decrease volume |
|
| `-` | Decrease volume |
|
||||||
| `D` | Get dmenu prompt |
|
| `D` | Get dmenu prompt |
|
||||||
| `j` OR `Down` | Scroll down |
|
| `j`/`Down` | Scroll down |
|
||||||
| `k` OR `Up` | Scroll up |
|
| `k`/`Up` | Scroll up |
|
||||||
| `J` | Swap highlighted song with next one |
|
| `J` | Swap highlighted song with next one |
|
||||||
| `K` | Swap highlighted song with previous one |
|
| `K` | Swap highlighted song with previous one |
|
||||||
| `l` OR `Right` | Add song to playlist or go inside the directory |
|
| `l`/`Right` | Add song to playlist or go inside the directory |
|
||||||
| `h` OR `Left` | Go back to previous directory |
|
| `h`/`Left` | Go back to previous directory |
|
||||||
| `Tab` | Cycle through tabs |
|
| `Tab` | Cycle through tabs |
|
||||||
| `1` | Go to queue |
|
| `1` | Go to queue |
|
||||||
| `2` | Go to directory browser |
|
| `2` | Go to directory browser |
|
||||||
| `3` | Go to playlists view |
|
| `3` | Go to playlists view |
|
||||||
| `Enter` OR `l` OR `Right` | Add song/playlist to current playlist |
|
| `Enter`/`l`/`Right` | Add song/playlist to current playlist |
|
||||||
| `a` | Append the song to current playing queue |
|
| `a` | Append the song to current playing queue |
|
||||||
| `Space`/`BackSpace` | Delete the highlighted song from queue |
|
| `Space`/`BackSpace` | Delete the highlighted song from queue |
|
||||||
| `f` | Go forwards |
|
| `f` | Go forwards |
|
||||||
| `b` | Go backwards |
|
| `b` | Go backwards |
|
||||||
| `>` | Play next song from queue |
|
| `>` | Play next song from queue |
|
||||||
| `<` | Play previous song from queue |
|
| `<` | Play previous song from queue |
|
||||||
| `U` | Update the MPD database |
|
| `U` | Update the MPD database |
|
||||||
| `r` | Toggle repeat |
|
| `r` | Toggle repeat |
|
||||||
| `z` | Toggle random |
|
| `z` | Toggle random |
|
||||||
| `/` | Search |
|
| `/` | Search |
|
||||||
| `g` | Go to top of list |
|
| `g` | Go to top of list |
|
||||||
| `G` | Go to bottom of list |
|
| `G` | Go to bottom of list |
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
- [MPD](https://wiki.archlinux.org/title/Music_Player_Daemon) installed and configured.
|
- [MPD](https://wiki.archlinux.org/title/Music_Player_Daemon) installed and configured.
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Volume controls
|
// Volume controls
|
||||||
KeyCode::Char('=') => {
|
KeyCode::Char('=') | KeyCode::Char('+') => {
|
||||||
app.conn.inc_volume(2);
|
app.conn.inc_volume(2);
|
||||||
app.conn.update_status();
|
app.conn.update_status();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue