forked from colonelpanic/dotfiles
13 lines
303 B
Bash
Executable File
13 lines
303 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
function set_volume {
|
|
current_default=$(pahelper list | grep '*' | all_after_char ":" | xargs)
|
|
environment_variable_exists USE_ONLY_O_PASINK && pahelper "$current_default"
|
|
|
|
# XXX: this does not prevent volumes higher than 100
|
|
pulsemixer "$@"
|
|
pashowvolume
|
|
}
|
|
|
|
set_volume "$@"
|