#!/bin/bash [[ "$1" == "up" ]] && amixer set Master 5%+ [[ "$1" == "down" ]] && amixer set Master 5%- [[ "$1" == "mute" ]] && amixer sset Master toggle VOL=$(amixer get Master | grep 'Front Left:' | cut -c 31-33) [[ $(amixer get Master | grep "\[off\]") ]] && sudo -u kuba volnoti-show -m $VOL && exit sudo -u kuba volnoti-show $VOL