Initial commit

This commit is contained in:
Xavier Moffett 2025-03-13 00:50:27 -04:00
commit c0ef08732f
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC
3 changed files with 231 additions and 0 deletions

53
README.md Normal file
View file

@ -0,0 +1,53 @@
# volbash
WirePlumber Control CLI wrapper for use with window manager keybindings.
Features include a volume limiter with an override toggle switch.
## Install
```
$ install -Dm 750 volbash ~/.local/bin/volbash
```
## Usage
```
Usage: volbash [OPERATION] | [OPTION]
Operations:
up Increment volume
down Decrement volume
mute Mute volume
unmute Unmute volume
toggle Toggle mute
Options:
--delta, -d VALUE Set delta value
--source, -s Apply operation to source
--bypass Allow increments past 100%
--version Print version information
--help Print this help and exit
All operations apply to the default sink only.
```
## hyprland Example
For use with a window manager like hyprland:
```
# Volume up/down
bindel = ,XF86AudioRaiseVolume, exec, volbash up
bindel = ,XF86AudioLowerVolume, exec, volbash down
# Volume up/down past 100%
bindel = SHIFT,XF86AudioRaiseVolume, exec, volbash up --bypass
bindel = SHIFT,XF86AudioLowerVolume, exec, volbash down --bypass
```
# License
[MIT license](./LICENSE)