]> git.armaanb.net Git - bin.git/commit
Audio-set: Add script. Volume change script for WM
authorArmaan Bhojwani <me@armaanb.net>
Fri, 29 Jan 2021 02:54:30 +0000 (21:54 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 29 Jan 2021 02:54:30 +0000 (21:54 -0500)
commit8bcdc9b10495dd3d8be425a971ffd5a191d31e35
tree256247afa28f47f23bd34cbb710829d55f9f6587
parent25ba57f5ba65e5d403afba523d5687eda93d7214
Audio-set: Add script. Volume change script for WM

Instead of calling pactl or amixer directly, you can use this script.
The advantage is that this script checks whether the sound is muted,
and unmutes it for you when you change the volume, more closely
mimicking the behavior of most desktop environments. It also sends a
notification with the current audio status. This implementation relies
on amixer and pulseaudio, although could easily work with an alsa-only
setup if that's your thing, just by replacing the pactl commands with
amixer (or any other alsa mixer) commands.
audio-set [new file with mode: 0755]