From fc0598d2e726f03ba96842a962e92db88ff780c0 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 21 May 2011 21:29:45 +0000 Subject: [PATCH] added awesome de version numbering --- inxi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index fd0531b..3b41c07 100755 --- a/inxi +++ b/inxi @@ -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