From 4b5f4e33beec42db4d3278ab92c7549656dc8202 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 4 Oct 2020 13:42:05 +0300 Subject: [PATCH] de/wm: Fix Windows 10 issues. Closes #1571, #1573 --- neofetch | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/neofetch b/neofetch index 0df70a8a..5ae16b32 100755 --- a/neofetch +++ b/neofetch @@ -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)