
import os

def check_active(kha):
    return kha.check_installed('atom')

def get_files(kha):
    return ['~/.atom/config.cson']

def update(kha):
    # Sadly Atom uses "cson" files instead of json so instead of actually
    # inspecting the config.cson file we have to do basic text analysis
    path = os.path.expanduser("~/.atom/config.cson")
    dark = True

    if (os.path.exists(path)):
        text = open(path, 'r').read()
        dark = ("one-light-ui" not in text) and ("atom-light-ui" not in text)

    kha.rule(wmclass='atom', dark=dark)

6dd399f10dea299a39cd65cfc58430fa0819b39c
<mask token>


def check_active(kha):
    return kha.check_installed('atom')


<mask token>

<mask token>


def check_active(kha):
    return kha.check_installed('atom')


def get_files(kha):
    return ['~/.atom/config.cson']


<mask token>

<mask token>


def check_active(kha):
    return kha.check_installed('atom')


def get_files(kha):
    return ['~/.atom/config.cson']


def update(kha):
    path = os.path.expanduser('~/.atom/config.cson')
    dark = True
    if os.path.exists(path):
        text = open(path, 'r').read()
        dark = 'one-light-ui' not in text and 'atom-light-ui' not in text
    kha.rule(wmclass='atom', dark=dark)

import os


def check_active(kha):
    return kha.check_installed('atom')


def get_files(kha):
    return ['~/.atom/config.cson']


def update(kha):
    path = os.path.expanduser('~/.atom/config.cson')
    dark = True
    if os.path.exists(path):
        text = open(path, 'r').read()
        dark = 'one-light-ui' not in text and 'atom-light-ui' not in text
    kha.rule(wmclass='atom', dark=dark)


import os

def check_active(kha):
    return kha.check_installed('atom')

def get_files(kha):
    return ['~/.atom/config.cson']

def update(kha):
    # Sadly Atom uses "cson" files instead of json so instead of actually
    # inspecting the config.cson file we have to do basic text analysis
    path = os.path.expanduser("~/.atom/config.cson")
    dark = True

    if (os.path.exists(path)):
        text = open(path, 'r').read()
        dark = ("one-light-ui" not in text) and ("atom-light-ui" not in text)

    kha.rule(wmclass='atom', dark=dark)
