Skip to content

Test for user-defined $WM variable

jschx requested to merge ArcticVanguard:master into master

Created by: ArcticVanguard

Parsing xinitrc isn't flawless, particularly when people are using window managers like dwm or 2bwm that frequently get wrapped in a while loop. When that happens, the script doesn't parse the window manager properly. For example, my xinitrc has this in it:

while :; do
  ~/git/2bwm/2bwm
done

And when I run ufetch, it thinks that my wm is "done" when it's actually 2bwm.

Merge request reports