dotfiles/system/.local/bin/increase-volume
Severin Kaderli 348ece6f11
Change email in all files
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-03-07 17:27:17 +01:00

18 lines
394 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# increase-volume
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script uses pamixer to increase the volume by 5% as long
# as the current volume is less than 150%. I call this script
# using custom i3 keybindings.
#
# USAGE:
# ./increase-volume
if [[ $(pamixer --get-volume) -lt 150 ]]; then
pamixer -i 5 --allow-boost
fi