diff --git a/screenfetch-dev b/screenfetch-dev index 0b782d4c..99691feb 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -2489,8 +2489,8 @@ detectwmtheme () { Win_theme="Not Applicable" ;; 'Awesome') - if [ -f "/usr/bin/awesome-client" ]; then - Win_theme="$(/usr/bin/awesome-client "return require('beautiful').theme_path" | grep -oP '[^/]*(?=/"$)')" + if type -p awesome-client >/dev/null 2>&1; then + Win_theme="$(awesome-client "return require('beautiful').theme_path" | grep -oP '[^/]*(?=/"$)')" fi ;; 'BlackBox')