Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
bc4c3bc8
Commit
bc4c3bc8
authored
Oct 04, 2020
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:dylanaraps/neofetch into master
parents
a6137b26
fb572770
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
29 deletions
+37
-29
neofetch
neofetch
+37
-29
No files found.
neofetch
View file @
bc4c3bc8
...
@@ -1821,35 +1821,43 @@ get_wm() {
...
@@ -1821,35 +1821,43 @@ get_wm() {
*) ps_flags=(-e) ;;
*) ps_flags=(-e) ;;
esac
esac
if [[ $WAYLAND_DISPLAY ]]; then
if [[ -O "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" ]]; then
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
if tmp_pid="$(lsof -t "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" 2>&1)" ||
-e arcan \
tmp_pid="$(fuser "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY:-wayland-0}" 2>&1)"; then
-e asc \
wm="$(ps -p "${tmp_pid}" -ho comm=)"
-e clayland \
else
-e dwc \
# lsof may not exist, or may need root on some systems. Similarly fuser.
-e fireplace \
# On those systems we search for a list of known window managers, this can mistakenly
-e gnome-shell \
# match processes for another user or session and will miss unlisted window managers.
-e greenfield \
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o -F \
-e grefsen \
-e arcan \
-e kwin \
-e asc \
-e lipstick \
-e clayland \
-e maynard \
-e dwc \
-e mazecompositor \
-e fireplace \
-e motorcar \
-e gnome-shell \
-e orbital \
-e greenfield \
-e orbment \
-e grefsen \
-e perceptia \
-e kwin \
-e rustland \
-e lipstick \
-e sway \
-e maynard \
-e ulubis \
-e mazecompositor \
-e velox \
-e motorcar \
-e wavy \
-e orbital \
-e way-cooler \
-e orbment \
-e wayfire \
-e perceptia \
-e wayhouse \
-e rustland \
-e westeros \
-e sway \
-e westford \
-e ulubis \
-e weston)
-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
elif [[ $DISPLAY && $os != "Mac OS X" && $os != "macOS" && $os != FreeMiNT ]]; then
type -p xprop &>/dev/null && {
type -p xprop &>/dev/null && {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment