mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Fix bug where i3 would show up as a desktop environment and a window manager
This commit is contained in:
5
neofetch
5
neofetch
@@ -27,6 +27,7 @@ SYS_LOCALE="$LANG"
|
|||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
|
|
||||||
# Config Options {{{
|
# Config Options {{{
|
||||||
|
|
||||||
|
|
||||||
@@ -727,7 +728,7 @@ getshell () {
|
|||||||
# Desktop Environment {{{
|
# Desktop Environment {{{
|
||||||
|
|
||||||
getde () {
|
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
|
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')"
|
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')"
|
state="$(osascript -e 'tell application "iTunes" to player state as string')"
|
||||||
|
|
||||||
elif [ -n "$(ps aux | awk '!(/awk/) && /spotify/')" ]; then
|
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')"
|
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')"
|
state="$(osascript -e 'tell application "Spotify" to player state as string')"
|
||||||
|
Reference in New Issue
Block a user