From 7b8774cc31a61972b38d39958fcbda39bce4d2f5 Mon Sep 17 00:00:00 2001 From: Anton Bulakh Date: Mon, 22 Mar 2021 18:26:45 +0200 Subject: [PATCH] Fix awesomewm theme detection, closes #690 (#713) --- screenfetch-dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')