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
0c4d4eb2
Unverified
Commit
0c4d4eb2
authored
Mar 21, 2017
by
Jorge Gonzalez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce macOS WM detections to one ps call
parent
1bd18587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
neofetch
neofetch
+11
-4
No files found.
neofetch
View file @
0c4d4eb2
...
@@ -636,10 +636,17 @@ get_wm() {
...
@@ -636,10 +636,17 @@ get_wm() {
else
else
case
"
$os
"
in
case
"
$os
"
in
"Mac OS X"
)
"Mac OS X"
)
wm=
"Quartz Compositor"
ps_line=
"
$(
ps
-e
|
grep
-o
'[S]pectacle\|[A]methyst\|[k]wm'
)
"
ps -e | grep -q
'[S]pectacle'
&& wm=
'Spectacle'
ps -e | grep -q
"[A]methyst"
&& wm=
"Amethyst"
if echo
"
$ps_line
"
| grep -q
"kwm"
; then
ps -e | grep -q
"[k]wm"
&& wm=
"Kwm"
wm=
"Kwm"
elif echo
"
$ps_line
"
| grep -q
"Amethyst"
; then
wm=
"Amethyst"
elif echo
"
$ps_line
"
| grep -q
"Spectacle"
; then
wm=
"Spectacle"
else
wm=
"Quartz Compositor"
fi
;;
;;
"Windows"
)
"Windows"
)
...
...
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