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
19bab649
Commit
19bab649
authored
Apr 02, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #212 from dylanaraps/de_detection
Better DE detection.
parents
12ea7591
7ce4b95a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
4 deletions
+33
-4
1.7.md
1.7.md
+9
-0
neofetch
neofetch
+24
-4
No files found.
1.7.md
View file @
19bab649
# Neofetch 1.7
# Neofetch 1.7
### Contributers
### Info
**Desktop Environment**
<br
\>
-
[
Linux
]
Fallback to using
`xprop`
if
`$XDG_CURRENT_DESKTOP`
is empty.
-
Use
`$de`
instead of
`$XDG_CURRENT_DESKTOP`
for wallpaper and theme detection.
neofetch
View file @
19bab649
...
@@ -775,8 +775,23 @@ getshell () {
...
@@ -775,8 +775,23 @@ getshell () {
getde () {
getde () {
case "
$os
" in
case "
$os
" in
"
Mac OS X
") de="
Aqua
" ;;
"
Mac OS X
") de="
Aqua
" ;;
*) de="
${
XDG_CURRENT_DESKTOP
/i3
}
" ;;
*)
de="
${
XDG_CURRENT_DESKTOP
/i3
}
"
de=
${
de
/
'X-'
}
;;
esac
esac
if [ -z "
$de
" ]; then
de="
$(
xprop
-root
|
awk
'/KDE_SESSION_VERSION|^_MARCO|^_MUFFIN|xfce4|xfce5/'
)
"
case "
$de
" in
"
KDE_SESSION_VERSION
"*) de="
KDE
${
de
/* =
}
" ;;
*"
MUFFIN
"*) de="
Cinnamon
" ;;
*"
MARCO
"*) de="
MATE
" ;;
*"
xfce4
"*) de="
XFCE4
" ;;
*"
xfce5
"*) de="
XFCE5
" ;;
esac
fi
}
}
# }}}
# }}}
...
@@ -1416,8 +1431,10 @@ getstyle () {
...
@@ -1416,8 +1431,10 @@ getstyle () {
esac
esac
if [ -n "
$DISPLAY
" ] && [ "
$os
" != "
Mac
OS X
" ]; then
if [ -n "
$DISPLAY
" ] && [ "
$os
" != "
Mac
OS X
" ]; then
# Current DE
# Get DE if user has disabled the function.
case "
$XDG_CURRENT_DESKTOP
" in
[ -z "
$de
" ] && getde
case "
$de
" in
"
KDE
"*)
"
KDE
"*)
kdeconfigdir
kdeconfigdir
...
@@ -1855,7 +1872,10 @@ getwallpaper () {
...
@@ -1855,7 +1872,10 @@ getwallpaper () {
img="
$(
awk
-F
'='
'/file/ {printf $2;exit;}'
"
$XDG_CONFIG_HOME
/nitrogen/bg-saved.cfg"
)
"
img="
$(
awk
-F
'='
'/file/ {printf $2;exit;}'
"
$XDG_CONFIG_HOME
/nitrogen/bg-saved.cfg"
)
"
elif type -p gsettings >/dev/null 2>&1; then
elif type -p gsettings >/dev/null 2>&1; then
case "
$XDG_CURRENT_DESKTOP
" in
# Get DE if user has disabled the function.
[ -z "
$de
" ] && getde
case "
$de
" in
"
MATE
"*) img="
$(
gsettings get org.mate.background picture-filename 2>/dev/null
)
" ;;
"
MATE
"*) img="
$(
gsettings get org.mate.background picture-filename 2>/dev/null
)
" ;;
*) img="
$(
gsettings get org.gnome.desktop.background picture-uri 2>/dev/null
)
" ;;
*) img="
$(
gsettings get org.gnome.desktop.background picture-uri 2>/dev/null
)
" ;;
esac
esac
...
...
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