Skip to content

Commit

Permalink
[PR] dylanaraps/neofetch#1963 from blackdragon2447 - added compatibil…
Browse files Browse the repository at this point in the history
…ity with LeftWM temes

Upstream PR: dylanaraps/neofetch#1963
Thanks to @blackdragon2447

Co-authored-by: blackdragon2447 <blackdragon2447@e.email>
  • Loading branch information
hykilpikonna and blackdragon2447 committed Aug 12, 2022
2 parents b0b4ef9 + c26bf9f commit 783a006
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 783a006

Please sign in to comment.