added awesome de version numbering

This commit is contained in:
inxi-svn 2011-05-21 21:29:45 +00:00
parent 7a7d90d4f6
commit fc0598d2e7

6
inxi
View file

@ -2682,7 +2682,11 @@ detect_desktop_environment()
fi
desktop_environment="pekwm${version}"
elif [[ -n $( grep -is 'awesome' <<< "$ps_aux" | grep -v 'grep' ) ]];then
desktop_environment="Awesome"
version=$( awesome --version 2>/dev/null | grep -Esi 'awesome ([[:digit:]]|GIT)' | gawk '{print $2}' )
if [[ -n $version ]];then
version=" $version"
fi
desktop_environment="Awesome${version}"
fi
fi
fi