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
30d8f5e8
Commit
30d8f5e8
authored
Jul 14, 2017
by
Dylan Araps
Committed by
GitHub
Jul 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #774 from mstraube/wmaker
WM: Fix/add Window Maker detection
parents
03f85176
17cb5786
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
neofetch
neofetch
+4
-1
No files found.
neofetch
View file @
30d8f5e8
...
@@ -663,11 +663,14 @@ get_wm() {
...
@@ -663,11 +663,14 @@ get_wm() {
if [[ -n "
$DISPLAY
" && "
$os
" != "
Mac OS X
" ]]; then
if [[ -n "
$DISPLAY
" && "
$os
" != "
Mac OS X
" ]]; then
id="
$(
xprop
-root
-notype
|
awk
'$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'
)
"
id="
$(
xprop
-root
-notype
|
awk
'$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'
)
"
wm="
$(
xprop
-id
"
$id
"
-notype
-f
_NET_WM_NAME 8t
)
"
wm="
$(
xprop
-id
"
$id
"
-notype
-
len
100
-
f
_NET_WM_NAME 8t
)
"
wm="
${
wm
/*_NET_WM_NAME =
}
"
wm="
${
wm
/*_NET_WM_NAME =
}
"
wm="
${
wm
/\
"}"
wm="
${
wm
/\
"}"
wm=
"
${
wm
/\
"*}"
wm=
"
${
wm
/\
"*}"
# Window Maker does not set _NET_WM_NAME
[[
"
$wm
"
=~
"WINDOWMAKER"
]] && wm=
"wmaker"
# Fallback for Wayland wms.
# Fallback for Wayland wms.
[[
"
$wm
"
==
"xwlc"
]] && \
[[
"
$wm
"
==
"xwlc"
]] && \
wm=
"
$(
ps
-e
|
grep
-m
1
-o
-F
-e
"sway"
-e
"orbment"
-e
"velox"
-e
"orbital"
)
"
wm=
"
$(
ps
-e
|
grep
-m
1
-o
-F
-e
"sway"
-e
"orbment"
-e
"velox"
-e
"orbital"
)
"
...
...
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