12 lines
358 B
Python
12 lines
358 B
Python
# script that changes the volume and then shows a notfication with it using dunst
|
|
import subprocess
|
|
import argparse
|
|
import audiotools
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("volchange")
|
|
args = parser.parse_args()
|
|
|
|
subprocess.check_output(["amixer", "set", "Master", args.volchange])
|
|
audiotools.display_volume(audiotools.get_amixer_volume())
|