Ejemplo n.º 1
0
 def run(self):
     if config.get("codeEnabled"):
         vscode.switch_to_light()
     if config.get("atomEnabled"):
         atom.switch_to_light()
     if config.get("kdeEnabled"):
         kde.switch_to_light()
     if config.get("wallpaperEnabled"):
         wallpaper.switch_to_light()
     # kde support
     if config.get("gtkEnabled") and config.get("desktop") == "kde":
         gtkkde.switch_to_light()
     # gnome and budgie support
     if config.get("gtkEnabled") and config.get("desktop") == "gtk":
         gtk.switch_to_light()
     # gnome-shell
     if config.get("gnomeEnabled"):
         gnome.switch_to_light()
     # firefox support
     if config.get("firefoxEnabled"):
         firefox.switch_to_light()
     # kvantum support
     if config.get("kvantumEnabled"):
         kvantum.switch_to_light()
     play_sound("./assets/light.wav")
Ejemplo n.º 2
0
 def run(self):
     if config.get("codeEnabled"):
         vscode.switch_to_light()
     if config.get("atomEnabled"):
         atom.switch_to_light()
     if config.get("kdeEnabled"):
         kde.switch_to_light()
     if config.get("wallpaperEnabled"):
         wallpaper.switch_to_light()
     if config.get("gtkEnabled") and config.get("desktop") == "kde":
         gtkkde.switch_to_light()
     if config.get("gtkEnabled") and config.get("desktop") == "gtk":
         gtk.switch_to_light()
     play_sound("./assets/light.wav")