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