change ``bash headers to
``sh
This commit is contained in:
@@ -9,13 +9,13 @@ Check with `which pulseaudio`. No output means you need to use alsa (below).
|
||||
|
||||
# Volume Control
|
||||
|
||||
```bash
|
||||
```sh
|
||||
pactl set sink @DEFAULT_SINK@ +5%
|
||||
```
|
||||
|
||||
Find working outputs:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
aplay -l
|
||||
```
|
||||
|
||||
@@ -30,7 +30,7 @@ amixer scontrols
|
||||
|
||||
# Change a Sound setting
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer set Master 5%-
|
||||
```
|
||||
|
||||
@@ -42,19 +42,19 @@ pulseaudio -k && sudo alsa force-reload
|
||||
|
||||
Toggle, mute, increase or decrase audio:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer sset Master toggle
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer sset Master mute
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer sset Master 5%+
|
||||
```
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer sset Master 5%-
|
||||
```
|
||||
|
||||
@@ -62,14 +62,14 @@ amixer sset Master 5%-
|
||||
|
||||
Start with:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
alsamixer
|
||||
```
|
||||
|
||||
Then press `F6` to see available Sound cards.
|
||||
If you find a Sound card called 'PinePhone', then you can select an audio source there, and adjust with:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
amixer -c PinePhone set 'Headphone' 50%
|
||||
```
|
||||
|
||||
|
@@ -40,13 +40,13 @@ You can use alsa instead of pulse, but don't unless you're on a Pi.
|
||||
|
||||
Since this is run as the mpd user, you'll need to grant that user pulse acceess, often with the user-group `pulse` or `pulse-access`, but your distro may vary.
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo usermod -aG pulse-access mpd
|
||||
```
|
||||
|
||||
Working with mpd will be easier if you have access to its files, so maybe:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo usermod -aG mpd $USER
|
||||
```
|
||||
|
||||
@@ -56,7 +56,7 @@ sudo usermod -aG mpd $USER
|
||||
|
||||
Install `mpd-notification` and then start the service:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
systemctl --user enable mpd-notification
|
||||
```
|
||||
|
||||
|
@@ -17,7 +17,7 @@ I couldn't change volume, so in mpd.conf I uncommented the pulse audio lines and
|
||||
|
||||
Also, make sure the user mpd is part of the group pulse:
|
||||
|
||||
```bash
|
||||
```sh
|
||||
sudo adduser mpd pulse
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user