Cleanup OS X workaround

This commit is contained in:
Dylan 2016-02-21 08:38:07 +11:00
parent 22939ba502
commit 5d5bf3a068
1 changed files with 2 additions and 7 deletions

9
fetch
View File

@ -1077,7 +1077,7 @@ getsong () {
;; ;;
esac esac
# Display Artist and song on seperate lines. # Display Artist and Title on seperate lines.
if [ "$song_shorthand" == "on" ]; then if [ "$song_shorthand" == "on" ]; then
artist="${song/ -*}" artist="${song/ -*}"
song=${song/*- } song=${song/*- }
@ -1126,11 +1126,6 @@ getstyle () {
# is run multiple times. # is run multiple times.
unset gtk2theme gtk3theme theme path unset gtk2theme gtk3theme theme path
# Disable theme output on OS X
case "$os" in
"Mac OS X") return ;;
esac
case "$1" in case "$1" in
theme) theme)
name="gtk-theme-name" name="gtk-theme-name"
@ -1159,7 +1154,7 @@ getstyle () {
;; ;;
esac esac
if [ -n "$DISPLAY" ]; then if [ -n "$DISPLAY" ] && [ "$os" != "Mac OS X" ]; then
# Current DE # Current DE
desktop="$XDG_CURRENT_DESKTOP" desktop="$XDG_CURRENT_DESKTOP"
desktop=${desktop,,} desktop=${desktop,,}