Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
794 B

#! /bin/sh
#mute=$(amixer get Master | awk -F'[][]' 'END{ print $6 }' )
#vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }' )
mute=$(pamixer --get-mute)
vol=$(pamixer --get-volume)
iconmute=󰖁
ramp1=󰕿
ramp2=󰖀
ramp3=󰕾
mbg=^b#cc241d^
tfg=^c#292541^
ibg=^b#875b82^
tbg=^b#cdabb8^
reset=^d^
if [[ $mute == "true" ]]; then
echo "$mbg$tfg $iconmute $tbg$tfg $vol% $reset"
elif [[ "$vol" == "100" ]]; then
echo "$ibg$tfg $ramp3 $tbg$tfg $vol% $reset"
elif [[ "$vol" < "33" ]]; then
echo "$ibg$tfg $ramp1 $tbg$tfg $vol% $reset"
elif [[ "$vol" < "66" ]]; then
echo "$ibg$tfg $ramp2 $tbg$tfg $vol% $reset"
elif [[ "$vol" = "66" ]]; then
echo "$ibg$tfg $ramp2 $tbg$tfg $vol% $reset"
elif [[ "$vol" > "66" ]]; then
echo "$ibg$tfg $ramp3 $tbg$tfg $vol% $reset"
fi