added compatibility with LeftWM temes

This commit is contained in:
blackdragon2447 2021-11-19 17:19:51 +01:00
parent 24b1281f9a
commit c26bf9fb4a
No known key found for this signature in database
GPG key ID: E6F44EFC9EC549AD

View file

@ -2177,6 +2177,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")