sucklessConfigs

configurations of the suckless.org software that I use
Log | Files | Refs

volumeStatusChecker.sh (221B)


      1 #! /bin/sh
      2 
      3 output=$(amixer get Master | grep -c '\[on\]')
      4 volume=$(amixer get Master | grep 'Front Left:' | awk -F'[][]' '{print $2}')
      5 if [ "$output" -eq 0 ]; then
      6 	echo " 󰖁  $volume"
      7 else
      8 	echo " 󰕾  $volume" 
      9 fi
     10