mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
added awesome de version numbering
This commit is contained in:
parent
7a7d90d4f6
commit
fc0598d2e7
6
inxi
6
inxi
|
@ -2682,7 +2682,11 @@ detect_desktop_environment()
|
||||||
fi
|
fi
|
||||||
desktop_environment="pekwm${version}"
|
desktop_environment="pekwm${version}"
|
||||||
elif [[ -n $( grep -is 'awesome' <<< "$ps_aux" | grep -v 'grep' ) ]];then
|
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
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue