Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t9md/atom-theme-switch
Switch theme quickly
https://github.com/t9md/atom-theme-switch
atom
Last synced: 2 months ago
JSON representation
Switch theme quickly
- Host: GitHub
- URL: https://github.com/t9md/atom-theme-switch
- Owner: t9md
- License: mit
- Created: 2015-05-03T01:30:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-17T17:35:10.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T20:01:06.379Z (8 months ago)
- Topics: atom
- Language: JavaScript
- Homepage: https://atom.io/packages/theme-switch
- Size: 22.5 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# theme-switch
Switch theme(ui and syntax pair).
![gif](https://raw.githubusercontent.com/t9md/t9md/2391f495870160c16ee560e0ee5dc913f0df74d4/img/atom-theme-switch.gif)
# Commands
- `theme-switch:next`: Set next theme in `profiles`
- `theme-switch:prev`: Set previous theme in `profiles`
- `theme-switch:next-dark`: Set next theme in `darkProfiles`
- `theme-switch:prev-dark`: Set previous theme in `darkProfiles`
- `theme-switch:next-light`: Set next theme in `lightProfiles`
- `theme-switch:prev-light`: Set previous theme in `lightProfiles`
- `theme-switch:add-to-profiles`: Add currently active theme to `profiles`
- `theme-switch:add-to-dark-profiles`: Add currently active theme to `darkProfiles`
- `theme-switch:add-to-light-profiles`: Add currently active theme to `lightProfiles`
- `theme-switch:clip-current-theme`: Save current active theme to clipboard# Keymap
No keymap by default.
Keymap example is here.
```coffeescript
'atom-workspace:not([mini])':
'cmd-shift-up': 'theme-switch:prev'
'cmd-shift-down': 'theme-switch:next'
```# Configuration
Set "ui and syntax theme pair" as member of each theme-set.
You can add currently active "ui and syntax theme" to each profile by `add-to-profiles`, `add-to-dark-profiles` and `add-to-light-profiles`.
Technically "ui and syntax theme pair" can be built by `atom.config.get('core.themes').join(" ")`.e.g.
```coffeescript
"theme-switch":
profiles: [
"atom-dark-ui spacegray-dark-syntax"
"atom-dark-ui atom-dark-syntax"
"atom-light-ui atom-light-syntax"
],
darkProfiles: [
"atom-dark-ui atom-dark-syntax"
"one-dark-ui one-dark-syntax"
],
lightProfiles: [
"atom-light-ui atom-light-syntax"
"one-light-ui one-light-syntax"
]
```