#!/bin/bash # A script to manage the volume on my system universally sink="$(pactl list short sinks | grep "pci-0000_00_1b.0" | awk '{print $1}')" volume="$(pamixer --get-volume)" if [ "$1" = "increase" ] then pactl set-sink-volume "$sink" +5% elif [ "$1" = "decrease" ] then pactl set-sink-volume "$sink" -5% elif [ "$1" = "mute" ] then # TODO: Make this a toggle with memory pactl set-sink-volume "$sink" 0% elif [ "$1" = "check" ] then printf "%s\n" "$volume" else printf "[ Error ] Not enough arguments.\n" fi