Added hardcoded DE detection for OS X

This commit is contained in:
Dylan 2016-03-31 20:26:20 +11:00
parent a506eb44a3
commit ea2482c7d7
2 changed files with 7 additions and 2 deletions

3
1.6.md
View file

@ -85,6 +85,9 @@ This is much faster than the default method.
**Theme**<br \> **Theme**<br \>
- Use `$GTK2_RC_FILES` if the envar is set. **[@onespaceman](https://github.com/onespaceman)** - Use `$GTK2_RC_FILES` if the envar is set. **[@onespaceman](https://github.com/onespaceman)**
**Desktop Environment**<br \>
- Added OS X detection.
**Song**<br \> **Song**<br \>
- [ MPD ] Fixed function when mpd is running on another PC and not your own. - [ 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. - Song now displays `Not Playing` instead of `Unknown` when no music player is found.

View file

@ -769,9 +769,11 @@ getshell () {
# }}} # }}}
# Desktop Environment {{{ # Desktop Environment {{{
getde () { getde () {
de="${XDG_CURRENT_DESKTOP/i3}" case "$os" in
"Mac OS X") de="Aqua" ;;
*) de="${XDG_CURRENT_DESKTOP/i3}" ;;
esac
} }
# }}} # }}}