commit
This commit is contained in:
parent
19995a1b12
commit
12bc765a10
@ -34,18 +34,35 @@ class Application:
|
|||||||
win10toggle.set_active(True)
|
win10toggle.set_active(True)
|
||||||
win10toggle.pressed()
|
win10toggle.pressed()
|
||||||
|
|
||||||
|
### Layouts ###
|
||||||
|
|
||||||
|
def test1(self, widget):
|
||||||
|
print("test1")
|
||||||
|
settings = Gio.Settings.new("org.nobara.layouts")
|
||||||
|
settings.set_int("layout-num", 3)
|
||||||
|
def test2(self, widget):
|
||||||
|
print("test2")
|
||||||
|
def test3(self, widget):
|
||||||
|
print("test3")
|
||||||
|
def test4(self, widget):
|
||||||
|
print("test4")
|
||||||
|
|
||||||
def test1(self, widget):
|
### Settings ###
|
||||||
print("test1")
|
|
||||||
settings = Gio.Settings.new("org.nobara.layouts")
|
#### Desktop Switch ####
|
||||||
settings.set_int("layout-num", 3)
|
|
||||||
def test2(self, widget):
|
desktop_switch = self.builder.get_object("desktop_switch")
|
||||||
print("test2")
|
|
||||||
def test3(self, widget):
|
desktop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep ding@rastersoft.com"], shell=True)
|
||||||
print("test3")
|
|
||||||
def test4(self, widget):
|
if (desktop_output.returncode) == 0:
|
||||||
print("test4")
|
desktop_switch.set_active(True)
|
||||||
|
|
||||||
|
#if startup_file.is_file():
|
||||||
|
# desktop_switch.set_active(True)
|
||||||
|
|
||||||
|
#def on_desktop_switch_active_notify(self, switch, state):
|
||||||
|
# if switch.get_active():
|
||||||
|
|
||||||
Application()
|
Application()
|
||||||
Gtk.main()
|
Gtk.main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user