From ea2482c7d78c92afd32388724bc07fea5edf829d Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 31 Mar 2016 20:26:20 +1100 Subject: [PATCH] Added hardcoded DE detection for OS X --- 1.6.md | 3 +++ neofetch | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/1.6.md b/1.6.md index 4ac7857d..28a61eb3 100644 --- a/1.6.md +++ b/1.6.md @@ -85,6 +85,9 @@ This is much faster than the default method. **Theme**
- Use `$GTK2_RC_FILES` if the envar is set. **[@onespaceman](https://github.com/onespaceman)** +**Desktop Environment**
+- Added OS X detection. + **Song**
- [ MPD ] Fixed function when mpd is running on another PC and not your own. - Song now displays `Not Playing` instead of `Unknown` when no music player is found. diff --git a/neofetch b/neofetch index d0fb8d65..4f1d03ad 100755 --- a/neofetch +++ b/neofetch @@ -769,9 +769,11 @@ getshell () { # }}} # Desktop Environment {{{ - getde () { - de="${XDG_CURRENT_DESKTOP/i3}" + case "$os" in + "Mac OS X") de="Aqua" ;; + *) de="${XDG_CURRENT_DESKTOP/i3}" ;; + esac } # }}}