diff --git a/screenfetch-dev b/screenfetch-dev index 7f42800..53c11cb 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -2480,8 +2480,8 @@ detectwmtheme () { Win_theme="Not Applicable" ;; 'Awesome') - if [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua" ]; then - Win_theme="$(grep '^[^-].*\(theme\|beautiful\).*lua' "${XDG_CONFIG_HOME:-${HOME}/.config}/awesome/rc.lua" | grep '[^/]\+/[^/]\+.lua' -o | cut -d'/' -f1 | head -1)" + if [ -f "/usr/bin/awesome-client" ]; then + Win_theme="$(/usr/bin/awesome-client "return require('beautiful').theme_path" | grep -oP '[^/]*(?=/"$)')" fi ;; 'BlackBox')