diff options
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | volsv | 4 | ||||
-rw-r--r-- | volsv.1 | 4 |
3 files changed, 5 insertions, 4 deletions
@@ -31,4 +31,5 @@ I made volsv so that I could use it with keybindings to control the volume, rega - toggle microphone mute\*: `mic` or `-m` - get volume level: `getv` or `-v` - get mute state: `getm` or `-g` +- help message: `-h` @@ -1,8 +1,4 @@ #!/bin/sh -# calculate average of two integers (for ALSA) -average () { - echo "$(( $(( $1 + $2 )) / 2 ))$" -} # print error message printerror () { echo "$1 is not a recognized command or flag" @@ -9,6 +9,7 @@ volsv \- volume set variable .RB [ \-m ] .RB [ \-v ] .RB [ \-g ] +.RB [ \-h ] .SH DESCRIPTION .B volsv Volsv is a free software, POSIX shell compliant script ZachIR wrote in 2020, and @@ -17,6 +18,9 @@ pulseaudio if it is running, and ALSA if it is not. More sound servers are intended to be added in future versions. .SH OPTIONS .TP +.B \-h +volsv displays help message +.TP .B \-i volsv increases the volume by 5% .TP |