This commit is contained in:
Ward Nakchbandi 2022-09-24 10:21:08 +03:00
parent 2858b349e9
commit 1440f7ac1d

View File

@ -36,10 +36,9 @@ class Application:
### Layouts ### ### Layouts ###
def test1(self, widget): def on_win10_button_pressed(self, widget):
print("test1")
settings = Gio.Settings.new("org.nobara.layouts") settings = Gio.Settings.new("org.nobara.layouts")
settings.set_int("layout-num", 3) settings.set_int("layout-num", 1)
def test2(self, widget): def test2(self, widget):
print("test2") print("test2")
def test3(self, widget): def test3(self, widget):
@ -191,8 +190,7 @@ class Application:
weather_switch = self.builder.get_object("weather_switch") weather_switch = self.builder.get_object("weather_switch")
weather_output = subprocess.run( weather_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep openweather-extension@jenslody.de"], shell=True)
["gsettings get org.gnome.shell enabled-extensions | grep openweather-extension@jenslody.de"], shell=True)
if (weather_output.returncode) == 0: if (weather_output.returncode) == 0:
weather_switch.set_active(True) weather_switch.set_active(True)
@ -206,8 +204,7 @@ class Application:
spacebar_switch = self.builder.get_object("spacebar_switch") spacebar_switch = self.builder.get_object("spacebar_switch")
spacebar_output = subprocess.run( spacebar_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep space-bar@luchrioh"], shell=True)
["gsettings get org.gnome.shell enabled-extensions | grep space-bar@luchrioh"], shell=True)
if (spacebar_output.returncode) == 0: if (spacebar_output.returncode) == 0:
spacebar_switch.set_active(True) spacebar_switch.set_active(True)
@ -222,8 +219,7 @@ class Application:
stats_switch = self.builder.get_object("stats_switch") stats_switch = self.builder.get_object("stats_switch")
stats_output = subprocess.run( stats_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep Vitals@CoreCoding.com"], shell=True)
["gsettings get org.gnome.shell enabled-extensions | grep Vitals@CoreCoding.com"], shell=True)
if (stats_output.returncode) == 0: if (stats_output.returncode) == 0:
stats_switch.set_active(True) stats_switch.set_active(True)
@ -237,8 +233,7 @@ class Application:
hid_switch = self.builder.get_object("hid_switch") hid_switch = self.builder.get_object("hid_switch")
hid_output = subprocess.run( hid_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep wireless-hid@chlumskyvaclav.gmail.com"], shell=True)
["gsettings get org.gnome.shell enabled-extensions | grep wireless-hid@chlumskyvaclav.gmail.com"], shell=True)
if (hid_output.returncode) == 0: if (hid_output.returncode) == 0:
hid_switch.set_active(True) hid_switch.set_active(True)