[PR] dylanaraps/neofetch#1963 from blackdragon2447 - added compatibility with LeftWM temes

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1963
Thanks to @blackdragon2447

Co-authored-by: blackdragon2447 <blackdragon2447@e.email>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-12 00:12:00 -04:00
commit 783a006abf

View file

@ -2443,6 +2443,13 @@ get_wm_theme() {
wm_theme=${wm_theme##*\\}
wm_theme=${wm_theme%.*}
;;
LeftWM*)
if command -v leftwm-theme &> /dev/null
then
wm_theme=$(leftwm-theme status | grep "Your current theme" | sed -e 's/Your current theme is //g' -e 's/\,.*$//g')
fi
;;
esac
wm_theme=$(trim_quotes "$wm_theme")