18 lines
400 B
Bash
Executable file
18 lines
400 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# SCRIPT NAME:
|
|
# increase_volume
|
|
#
|
|
# AUTHOR:
|
|
# Severin Kaderli <severin.kaderli@gmail.com>
|
|
#
|
|
# 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
|