de/wm: Fix Windows 10 issues. Closes #1571, #1573

This commit is contained in:
Dylan Araps 2020-10-04 13:42:05 +03:00
parent 5f8ce9bbc4
commit 4b5f4e33be
No known key found for this signature in database
GPG key ID: 46D62DD9F1DE636E

View file

@ -1688,8 +1688,17 @@ get_de() {
Windows)
case $distro in
"Windows 8"*|"Windows 10"*) de="Modern UI/Metro" ;;
*) de=Aero
"Windows 10"*)
de=Fluent
;;
"Windows 8"*)
de=Metro
;;
*)
de=Aero
;;
esac
;;
@ -1870,15 +1879,21 @@ get_wm() {
;;
Windows)
wm=$(tasklist | grep -m 1 -o -F \
-e bugn \
-e Windawesome \
-e blackbox \
-e emerge \
-e litestep)
wm=$(
tasklist |
[[ $wm == blackbox ]] && wm="bbLean (Blackbox)"
wm=${wm:+$wm, }Explorer
grep -Fom 1 \
-e bugn \
-e Windawesome \
-e blackbox \
-e emerge \
-e litestep
)
[[ $wm == blackbox ]] &&
wm="bbLean (Blackbox)"
wm=${wm:+$wm, }DWM.exe
;;
FreeMiNT)