From 6a44c6b441ce6a977624609ad0350e72079d51e8 Mon Sep 17 00:00:00 2001 From: Med Anis Jbara <74317212+medanisjbara@users.noreply.github.com> Date: Mon, 13 Feb 2023 00:56:58 +0100 Subject: [PATCH] WM exact name matches --- neofetch | 62 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/neofetch b/neofetch index b5d15192..ebffd251 100755 --- a/neofetch +++ b/neofetch @@ -2297,37 +2297,37 @@ get_wm() { # On those systems we search for a list of known window managers, this can mistakenly # match processes for another user or session and will miss unlisted window managers. wm=$(ps "${ps_flags[@]}" | grep -m 1 -o -F \ - -e arcan \ - -e asc \ - -e clayland \ - -e dwc \ - -e dwl \ - -e fireplace \ - -e gnome-shell \ - -e greenfield \ - -e grefsen \ - -e hikari \ - -e Hyprland \ - -e kwin \ - -e lipstick \ - -e maynard \ - -e mazecompositor \ - -e motorcar \ - -e orbital \ - -e orbment \ - -e perceptia \ - -e river \ - -e rustland \ - -e sway$ \ - -e ulubis \ - -e velox \ - -e wavy \ - -e way-cooler \ - -e wayfire \ - -e wayhouse \ - -e westeros \ - -e westford \ - -e weston) + -e ^arcan$ \ + -e ^asc$ \ + -e ^clayland$ \ + -e ^dwc$ \ + -e ^dwl$ \ + -e ^fireplace$ \ + -e ^gnome-shell$ \ + -e ^greenfield$ \ + -e ^grefsen$ \ + -e ^hikari$ \ + -e ^Hyprland$ \ + -e ^kwin$ \ + -e ^lipstick$ \ + -e ^maynard$ \ + -e ^mazecompositor$ \ + -e ^motorcar$ \ + -e ^orbital$ \ + -e ^orbment$ \ + -e ^perceptia$ \ + -e ^river$ \ + -e ^rustland$ \ + -e ^sway$ \ + -e ^ulubis$ \ + -e ^velox$ \ + -e ^wavy$ \ + -e ^way-cooler$ \ + -e ^wayfire$ \ + -e ^wayhouse$ \ + -e ^westeros$ \ + -e ^westford$ \ + -e ^weston$ ) fi elif [[ $DISPLAY && $os != "Mac OS X" && $os != "macOS" && $os != FreeMiNT ]]; then