update ui
This commit is contained in:
parent
14149708e9
commit
f2cca9c557
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
pika-gnome-layouts (3.0-99pika1) kinetic; urgency=low
|
||||
|
||||
* Update UI
|
||||
|
||||
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
||||
|
||||
pika-gnome-layouts (2.0-99pika9) kinetic; urgency=low
|
||||
|
||||
* Fix theming maybe
|
||||
|
@ -22,13 +22,7 @@ class Application:
|
||||
self.builder.add_from_file("/usr/lib/pika/gnome-layouts/main.ui")
|
||||
self.builder.connect_signals(self)
|
||||
win = self.builder.get_object("main_window")
|
||||
|
||||
self.builder.get_object("install_all").hide()
|
||||
#win.connect("destroy", Gtk.main_quit)
|
||||
|
||||
### Hidden entries
|
||||
|
||||
self.builder.get_object("audio_box").hide()
|
||||
|
||||
|
||||
### Enable Extensions
|
||||
|
||||
@ -41,108 +35,8 @@ class Application:
|
||||
if (accent_output.returncode) != 0:
|
||||
accent_box.hide()
|
||||
|
||||
### Extension refresh ###
|
||||
### Window props ###
|
||||
|
||||
global extension_refresh
|
||||
extension_refresh = True
|
||||
|
||||
def extension_refresh_func():
|
||||
while extension_refresh == True:
|
||||
desktop_switch = self.builder.get_object("desktop_switch")
|
||||
desktop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep ding@rastersoft.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (desktop_output.returncode) == 0:
|
||||
desktop_switch.set_active(True)
|
||||
else:
|
||||
desktop_switch.set_active(False)
|
||||
audio_switch = self.builder.get_object("audio_switch")
|
||||
audio_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep volume-mixer@evermiss.net"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (audio_output.returncode) == 0:
|
||||
audio_switch.set_active(True)
|
||||
else:
|
||||
audio_switch.set_active(False)
|
||||
blur_switch = self.builder.get_object("blur_switch")
|
||||
blur_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep blur-my-shell@aunetx"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (blur_output.returncode) == 0:
|
||||
blur_switch.set_active(True)
|
||||
else:
|
||||
blur_switch.set_active(False)
|
||||
tray_switch = self.builder.get_object("tray_switch")
|
||||
tray_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep appindicatorsupport@rgcjonas.gmail.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (tray_output.returncode) == 0:
|
||||
tray_switch.set_active(True)
|
||||
else:
|
||||
tray_switch.set_active(False)
|
||||
workspace_switch = self.builder.get_object("workspace_switch")
|
||||
workspace_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep auto-move-windows@gnome-shell-extensions.gcampax.github.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (workspace_output.returncode) == 0:
|
||||
workspace_switch.set_active(True)
|
||||
else:
|
||||
workspace_switch.set_active(False)
|
||||
x11_switch = self.builder.get_object("x11_switch")
|
||||
x11_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gestureImprovements@gestures"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (x11_output.returncode) == 0:
|
||||
x11_switch.set_active(True)
|
||||
else:
|
||||
x11_switch.set_active(False)
|
||||
clipboard_switch = self.builder.get_object("clipboard_switch")
|
||||
clipboard_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep clipboard-history@alexsaveau.dev"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (clipboard_output.returncode) == 0:
|
||||
clipboard_switch.set_active(True)
|
||||
else:
|
||||
clipboard_switch.set_active(False)
|
||||
supergfxctl_switch = self.builder.get_object("supergfxctl_switch")
|
||||
supergfxctl_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep supergfxctl-gex@asus-linux.org"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (supergfxctl_output.returncode) == 0:
|
||||
supergfxctl_switch.set_active(True)
|
||||
else:
|
||||
supergfxctl_switch.set_active(False)
|
||||
caffeine_switch = self.builder.get_object("caffeine_switch")
|
||||
caffeine_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep caffeine@patapon.info"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (caffeine_output.returncode) == 0:
|
||||
caffeine_switch.set_active(True)
|
||||
else:
|
||||
caffeine_switch.set_active(False)
|
||||
kde_switch = self.builder.get_object("kde_switch")
|
||||
kde_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gsconnect@andyholmes.github.io"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (kde_output.returncode) == 0:
|
||||
kde_switch.set_active(True)
|
||||
else:
|
||||
kde_switch.set_active(False)
|
||||
weather_switch = self.builder.get_object("weather_switch")
|
||||
weather_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep openweather-extension@jenslody.de"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (weather_output.returncode) == 0:
|
||||
weather_switch.set_active(True)
|
||||
else:
|
||||
weather_switch.set_active(False)
|
||||
stats_switch = self.builder.get_object("stats_switch")
|
||||
stats_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep freon@UshakovVasilii_Github.yahoo.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (stats_output.returncode) == 0:
|
||||
stats_switch.set_active(True)
|
||||
else:
|
||||
stats_switch.set_active(False)
|
||||
hid_switch = self.builder.get_object("hid_switch")
|
||||
hid_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep wireless-hid@chlumskyvaclav.gmail.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (hid_output.returncode) == 0:
|
||||
hid_switch.set_active(True)
|
||||
else:
|
||||
hid_switch.set_active(False)
|
||||
pop_switch = self.builder.get_object("pop_switch")
|
||||
pop_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep pop-shell@system76.com"], shell=True, stdout=subprocess.DEVNULL)
|
||||
if (pop_output.returncode) == 0:
|
||||
pop_switch.set_active(True)
|
||||
else:
|
||||
pop_switch.set_active(False)
|
||||
time.sleep(5.0)
|
||||
t1 = threading.Thread(target=extension_refresh_func)
|
||||
t1.start()
|
||||
|
||||
def extension_refresh_kill(self):
|
||||
global extension_refresh
|
||||
extension_refresh = False
|
||||
|
||||
###
|
||||
|
||||
win.connect("destroy", extension_refresh_kill)
|
||||
win.connect("destroy", Gtk.main_quit)
|
||||
|
||||
self.window = self.builder.get_object("main_window")
|
||||
|
File diff suppressed because it is too large
Load Diff
BIN
usr/lib/pika/gnome-layouts/previews/gnome-theme.png
Normal file
BIN
usr/lib/pika/gnome-layouts/previews/gnome-theme.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
usr/lib/pika/gnome-layouts/previews/pika-theme.png
Normal file
BIN
usr/lib/pika/gnome-layouts/previews/pika-theme.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in New Issue
Block a user