From edd87f4cfec2c05701415d13b2e8739ed48008f1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 12 Mar 2016 19:11:17 +1100 Subject: [PATCH] Fix bug where i3 would show up as a desktop environment and a window manager --- neofetch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 6ef8714f..ac6079d6 100755 --- a/neofetch +++ b/neofetch @@ -27,6 +27,7 @@ SYS_LOCALE="$LANG" export LC_ALL=C export LANG=C + # Config Options {{{ @@ -727,7 +728,7 @@ getshell () { # Desktop Environment {{{ getde () { - [ "$XDG_CURRENT_DESKTOP" ] && de="$XDG_CURRENT_DESKTOP" + [ "$XDG_CURRENT_DESKTOP" != "i3" ] && de="$XDG_CURRENT_DESKTOP" } # }}} @@ -1142,7 +1143,7 @@ getsong () { elif [ -n "$(ps aux | awk '!(/awk/ || /Helper/) && /iTunes/')" ]; then song="$(osascript -e 'tell application "iTunes" to artist of current track as string & " - " name of current track as string')" state="$(osascript -e 'tell application "iTunes" to player state as string')" - + elif [ -n "$(ps aux | awk '!(/awk/) && /spotify/')" ]; then song="$(osascript -e 'tell application "Spotify" to artist of current track as string & " - " & name of current track as string')" state="$(osascript -e 'tell application "Spotify" to player state as string')"