[PR] #94 from medanisjbara: WM exact name matches

This commit is contained in:
Hykilpikonna 2023-02-14 13:24:39 -05:00 committed by GitHub
commit 037a1a58ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2297,37 +2297,37 @@ get_wm() {
# On those systems we search for a list of known window managers, this can mistakenly # 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. # match processes for another user or session and will miss unlisted window managers.
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o -F \ wm=$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
-e arcan \ -e ^arcan$ \
-e asc \ -e ^asc$ \
-e clayland \ -e ^clayland$ \
-e dwc \ -e ^dwc$ \
-e dwl \ -e ^dwl$ \
-e fireplace \ -e ^fireplace$ \
-e gnome-shell \ -e ^gnome-shell$ \
-e greenfield \ -e ^greenfield$ \
-e grefsen \ -e ^grefsen$ \
-e hikari \ -e ^hikari$ \
-e Hyprland \ -e ^Hyprland$ \
-e kwin \ -e ^kwin$ \
-e lipstick \ -e ^lipstick$ \
-e maynard \ -e ^maynard$ \
-e mazecompositor \ -e ^mazecompositor$ \
-e motorcar \ -e ^motorcar$ \
-e orbital \ -e ^orbital$ \
-e orbment \ -e ^orbment$ \
-e perceptia \ -e ^perceptia$ \
-e river \ -e ^river$ \
-e rustland \ -e ^rustland$ \
-e sway$ \ -e ^sway$ \
-e ulubis \ -e ^ulubis$ \
-e velox \ -e ^velox$ \
-e wavy \ -e ^wavy$ \
-e way-cooler \ -e ^way-cooler$ \
-e wayfire \ -e ^wayfire$ \
-e wayhouse \ -e ^wayhouse$ \
-e westeros \ -e ^westeros$ \
-e westford \ -e ^westford$ \
-e weston) -e ^weston$ )
fi fi
elif [[ $DISPLAY && $os != "Mac OS X" && $os != "macOS" && $os != FreeMiNT ]]; then elif [[ $DISPLAY && $os != "Mac OS X" && $os != "macOS" && $os != FreeMiNT ]]; then