Lemur Pro nixos dotfiles
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.
 
 
 
 
 
 

8 lines
177 B

#!/bin/bash
X=$(mpc status 2>/dev/null | grep "%)")
if test $? -eq 0; then
echo "$X" | awk '{ print $4 }' | awk -F% '{ print $1 }' | awk 'sub(/^.{1}/,"")'
else
echo "0"
fi