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
1 changed files with 25 additions and 10 deletions

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 \
wm=$(
tasklist |
grep -Fom 1 \
-e bugn \
-e Windawesome \
-e blackbox \
-e emerge \
-e litestep)
-e litestep
)
[[ $wm == blackbox ]] && wm="bbLean (Blackbox)"
wm=${wm:+$wm, }Explorer
[[ $wm == blackbox ]] &&
wm="bbLean (Blackbox)"
wm=${wm:+$wm, }DWM.exe
;;
FreeMiNT)