diff options
author | ZachIR <zachir@librem.one> | 2021-02-01 01:13:01 -0600 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2021-02-01 01:13:01 -0600 |
commit | 240ea435c5bd71a6dde66fed604d7ca4279747da (patch) | |
tree | 4b009be7cc27d00da364eafd661846bb5c367cd5 | |
parent | d44f18fa503376d450acb05113aed34f1478e89e (diff) |
Add help flag
-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 |