Code Monkey home page Code Monkey logo

switcheroo's Introduction

Switcheroo

Switch between your two favorite themes with F8.

For example, you can switch between a dark theme (atom-dark-ui, atom-dark-syntax) and a light theme (atom-light-ui, atom-light-syntax).

switcheroo's People

Contributors

adiospace avatar alxgnon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

switcheroo's Issues

Failed to activate the switcheroo package

[Enter steps to reproduce below:]

  1. Start atom from command line (atom .)
  2. Hit FN + F8, my key combo for Switcheroo.

Atom Version: 0.207.0
System: Ubuntu 14.04.2
Thrown From: switcheroo package, v0.5.0

Stack Trace

Failed to activate the switcheroo package

At Cannot read property 'command' of undefined

TypeError: Cannot read property 'command' of undefined
    at Object.module.exports.activate (/home/arthur/.atom/packages/switcheroo/lib/switcheroo.coffee:8:32)
    at Package.module.exports.Package.activateNow (/usr/share/atom/resources/app.asar/src/package.js:238:19)
    at /usr/share/atom/resources/app.asar/src/package.js:770:25
    at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:219:20)
    at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
    at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:177:20)

Commands

     -0:00.5.0 switcheroo:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".SyncID",
      ".SyncIgnore",
      ".SyncArchive"
    ],
    "projectHome": "/usr/local/dev/",
    "audioBeep": false,
    "disabledPackages": [
      "open-on-github",
      "package-generator",
      "autocomplete",
      "spell-check",
      "welcome",
      "autosave",
      "background-tips",
      "bookmarks",
      "deprecation-cop",
      "image-view",
      "link",
      "release-notes",
      "snippets",
      "styleguide"
    ]
  }
}

Installed Packages

# User
editorconfig, v0.3.3
language-latex, v0.4.1
markdown-preview-pandoc, v0.0.12
switcheroo, v0.5.0

# Dev
No dev packages

Auto switch theme (at night/daytime)

It would be great if you could add some features to auto-switch a theme. Here are some methods to do it:

  1. the first approach is quite simple: A time-based auto switch. So just let the user enter two times and switcheroo will switch automatically.
  2. as mentioned by @olivierlacan in #1 by detecting luminosity with the camera
  3. However as I assume this is a bit difficult you could also just use a mix of 1 and 2 by locating the user (or let him enter geo coordinates) and calculate the sunrise and sunset times where you automatically switch. This way it's e.g. done by satnavs or software like f.lux.

Basically I would really like the first thing to be implemented and maybe the second and/or third thing as an 'extra-feature'. ๐Ÿ˜ƒ

F12 triggers Dashboard

I'm guessing you have a custom assignment of F12 for it to work because by default (new machine running 10.9.2) it triggers the display of the OS X Dashboard.

There might be a better default shortcut to use so that it works for most people.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.