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
8de31f07
Unverified
Commit
8de31f07
authored
Dec 12, 2019
by
dylan
Committed by
GitHub
Dec 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1369 from arisinfenix/wm
Detect Mutter on GNOME Wayland and Openbox theme on LXQt
parents
231c8fb2
00f1dadb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
neofetch
neofetch
+15
-12
No files found.
neofetch
View file @
8de31f07
...
...
@@ -1646,6 +1646,7 @@ get_wm() {
-e clayland \
-e dwc \
-e fireplace \
-e gnome-shell \
-e greenfield \
-e grefsen \
-e kwin \
...
...
@@ -1678,10 +1679,6 @@ get_wm() {
wm=${wm/\"*}
}
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *"GNOME Shell"* ]] && wm=Mutter
# Fallback for non-EWMH WMs.
[[ $wm ]] ||
wm=$(ps "${ps_flags[@]}" | grep -m 1 -o \
...
...
@@ -1741,6 +1738,10 @@ get_wm() {
esac
fi
# Rename window managers to their proper values.
[[ $wm == *WINDOWMAKER* ]] && wm=wmaker
[[ $wm == *GNOME*Shell* ]] && wm=Mutter
wm_run=1
}
...
...
@@ -1764,7 +1765,7 @@ get_wm_theme() {
wm_theme="$detheme (${wm_theme})"
;;
"Compiz" | "Mutter" | "G
NOME Shell" | "G
ala")
"Compiz" | "Mutter" | "Gala")
if type -p gsettings >/dev/null; then
wm_theme="$(gsettings get org.gnome.shell.extensions.user-theme name)"
...
...
@@ -1808,15 +1809,17 @@ get_wm_theme() {
;;
"Openbox")
if [[ "$de" == "LXDE" && -f "${HOME}/.config/openbox/lxde-rc.xml" ]]; then
ob_file="lxde-rc"
case $de in
"LXDE"*) ob_file="lxde-rc" ;;
"LXQt"*) ob_file="lxqt-rc" ;;
*) ob_file="rc" ;;
esac
elif [[ -f "${HOME}/.config/openbox/rc.xml" ]]; then
ob_file="rc"
fi
ob_file="${XDG_CONFIG_HOME}/openbox/${ob_file}.xml"
wm_theme="$(awk -F "[<,>]" '/<theme/ {getline; print $3}' \
"${XDG_CONFIG_HOME}/openbox/${ob_file}.xml")";
[[ -f "$ob_file" ]] && \
wm_theme="$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/))
{l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$ob_file")"
;;
"PekWM")
...
...
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