Toggle light/dark theme command
Created by jasonrudolph
# Add a command to toggle between Atom's one-light and one-dark themes
atom.commands.add 'atom-workspace', 'custom:toggle-theme', ->
activeThemes = atom.themes.getActiveThemeNames()
if activeThemes[0].indexOf("light") > 0
atom.config.set("core.themes", ["one-dark-ui", "one-dark-syntax"])
else
atom.config.set("core.themes", ["one-light-ui", "one-light-syntax"])