commit
This commit is contained in:
parent
a3281fdab5
commit
adba5b6a30
@ -130,72 +130,100 @@ class Application:
|
|||||||
#### Desktop Switch ####
|
#### Desktop Switch ####
|
||||||
def on_desktop_switch_active_notify(self, switch, state):
|
def on_desktop_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/desktop.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Audio Switch ####
|
#### Audio Switch ####
|
||||||
def on_audio_switch_active_notify(self, switch, state):
|
def on_audio_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/audio.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Blur Switch ####
|
#### Blur Switch ####
|
||||||
def on_blur_switch_active_notify(self, switch, state):
|
def on_blur_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/blur.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/blur.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/blur.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### Tray Switch ####
|
#### Tray Switch ####
|
||||||
def on_tray_switch_active_notify(self, switch, state):
|
def on_tray_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/tray.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/tray.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/tray.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### workspace Switch ####
|
#### workspace Switch ####
|
||||||
def on_workspace_switch_active_notify(self, switch, state):
|
def on_workspace_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/workspace.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/workspace.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/workspace.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### x11 Switch ####
|
#### x11 Switch ####
|
||||||
def on_x11_switch_active_notify(self, switch, state):
|
def on_x11_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/x11.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/x11.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/x11.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### clipboard Switch ####
|
#### clipboard Switch ####
|
||||||
def on_clipboard_switch_active_notify(self, switch, state):
|
def on_clipboard_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True :
|
if switch.get_active() == True :
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/clipboard.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/clipboard.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/clipboard.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### caffeine Switch ####
|
#### caffeine Switch ####
|
||||||
def on_caffeine_switch_active_notify(self, switch, state):
|
def on_caffeine_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/caffeine.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/caffeine.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/caffeine.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### supergfxctl Switch ####
|
#### supergfxctl Switch ####
|
||||||
def on_supergfxctl_switch_active_notify(self, switch, state):
|
def on_supergfxctl_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/supergfxctl.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/supergfxctl.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/supergfxctl.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### kde Switch ####
|
#### kde Switch ####
|
||||||
def on_kde_switch_active_notify(self, switch, state):
|
def on_kde_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/kde.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/kde.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/kde.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### weather Switch ####
|
#### weather Switch ####
|
||||||
def on_weather_switch_active_notify(self, switch, state):
|
def on_weather_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### spacebar Switch ####
|
#### spacebar Switch ####
|
||||||
def on_spacebar_switch_active_notify(self, switch, state):
|
def on_spacebar_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/spacebar.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/spacebar.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/spacebar.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### stats Switch ####
|
#### stats Switch ####
|
||||||
def on_stats_switch_active_notify(self, switch, state):
|
def on_stats_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/stats.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/stats.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/stats.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### hid Switch ####
|
#### hid Switch ####
|
||||||
def on_hid_switch_active_notify(self, switch, state):
|
def on_hid_switch_active_notify(self, switch, state):
|
||||||
if switch.get_active() == True:
|
if switch.get_active() == True:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/hid.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/hid.sh enable"], shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/hid.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
Application()
|
Application()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user