commit
This commit is contained in:
parent
7472b45fa1
commit
5cbe354ce7
@ -46,11 +46,9 @@ Requires: gnome-shell-extension-openweather
|
|||||||
Requires: gnome-shell-extension-pop-shell
|
Requires: gnome-shell-extension-pop-shell
|
||||||
Requires: gnome-shell-extension-sound-output-device-chooser
|
Requires: gnome-shell-extension-sound-output-device-chooser
|
||||||
Requires: gnome-shell-extension-window-list
|
Requires: gnome-shell-extension-window-list
|
||||||
Requires: gnome-shell-extension-gamemode
|
|
||||||
Requires: gnome-shell-extension-freon
|
Requires: gnome-shell-extension-freon
|
||||||
Requires: gnome-shell-extension-wireless-hid
|
Requires: gnome-shell-extension-wireless-hid
|
||||||
Requires: gnome-shell-extension-gesture-improvements
|
Requires: gnome-shell-extension-gesture-improvements
|
||||||
Requires: gnome-shell-extension-spacebar
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
tar -xf %{SOURCE0}
|
tar -xf %{SOURCE0}
|
||||||
|
@ -115,12 +115,6 @@ class Application:
|
|||||||
else:
|
else:
|
||||||
weather_switch.set_active(False)
|
weather_switch.set_active(False)
|
||||||
|
|
||||||
spacebar_switch = self.builder.get_object("spacebar_switch")
|
|
||||||
spacebar_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep space-bar@luchrioh"], shell=True, stdout=subprocess.DEVNULL)
|
|
||||||
if (spacebar_output.returncode) == 0:
|
|
||||||
spacebar_switch.set_active(True)
|
|
||||||
else:
|
|
||||||
spacebar_switch.set_active(False)
|
|
||||||
stats_switch = self.builder.get_object("stats_switch")
|
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)
|
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:
|
if (stats_output.returncode) == 0:
|
||||||
@ -139,12 +133,6 @@ class Application:
|
|||||||
pop_switch.set_active(True)
|
pop_switch.set_active(True)
|
||||||
else:
|
else:
|
||||||
pop_switch.set_active(False)
|
pop_switch.set_active(False)
|
||||||
gamemode_switch = self.builder.get_object("gamemode_switch")
|
|
||||||
gamemode_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gamemode@christian.kellner.me"], shell=True, stdout=subprocess.DEVNULL)
|
|
||||||
if (gamemode_output.returncode) == 0:
|
|
||||||
gamemode_switch.set_active(True)
|
|
||||||
else:
|
|
||||||
gamemode_switch.set_active(False)
|
|
||||||
|
|
||||||
time.sleep(5.0)
|
time.sleep(5.0)
|
||||||
t1 = threading.Thread(target=extension_refresh_func)
|
t1 = threading.Thread(target=extension_refresh_func)
|
||||||
@ -294,13 +282,6 @@ class Application:
|
|||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh disable"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### spacebar Switch ####
|
|
||||||
def on_spacebar_switch_active_notify(self, switch, state):
|
|
||||||
if switch.get_active() == 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
|
|
||||||
#### 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:
|
||||||
@ -322,13 +303,6 @@ class Application:
|
|||||||
else:
|
else:
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/pop.sh disable"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/pop.sh disable"], shell=True)
|
||||||
pass
|
pass
|
||||||
#### gamemode Switch ####
|
|
||||||
def on_gamemode_switch_active_notify(self, switch, state):
|
|
||||||
if switch.get_active() == True:
|
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/gamemode.sh enable"], shell=True)
|
|
||||||
else:
|
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/gamemode.sh disable"], shell=True)
|
|
||||||
pass
|
|
||||||
|
|
||||||
def on_install_all_pressed(self, widget):
|
def on_install_all_pressed(self, widget):
|
||||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/all.sh"], shell=True)
|
subprocess.run(["/etc/nobara/scripts/nobara-layouts/all.sh"], shell=True)
|
||||||
|
@ -888,47 +888,6 @@
|
|||||||
<property name="top-attach">4</property>
|
<property name="top-attach">4</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
|
||||||
<object class="GtkBox" id="spacebar_box">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">False</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkSwitch" id="spacebar_switch">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">True</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<signal name="notify::active" handler="on_spacebar_switch_active_notify" swapped="no"/>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="padding">10</property>
|
|
||||||
<property name="position">0</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="spacebar_text">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">False</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="label" translatable="yes">Enable Workspace Indicator</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="padding">10</property>
|
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="left-attach">2</property>
|
|
||||||
<property name="top-attach">5</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="hid_box">
|
<object class="GtkBox" id="hid_box">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@ -1076,61 +1035,19 @@
|
|||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
|
||||||
<property name="left-attach">0</property>
|
|
||||||
<property name="top-attach">7</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox" id="gamemode_box">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">False</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="hexpand">True</property>
|
|
||||||
<signal name="notify::active" handler="on_gamemode_box_active_notify" swapped="no"/>
|
|
||||||
<child>
|
|
||||||
<object class="GtkSwitch" id="gamemode_switch">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">True</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="padding">10</property>
|
|
||||||
<property name="position">0</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkLabel" id="gamemode_text">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="can-focus">False</property>
|
|
||||||
<property name="halign">start</property>
|
|
||||||
<property name="label" translatable="yes">Enable Gamemode Indicator</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
</object>
|
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="padding">10</property>
|
|
||||||
<property name="position">1</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
|
||||||
</object>
|
|
||||||
<packing>
|
<packing>
|
||||||
<property name="left-attach">2</property>
|
<property name="left-attach">2</property>
|
||||||
<property name="top-attach">7</property>
|
<property name="top-attach">5</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSeparator">
|
<placeholder/>
|
||||||
<property name="visible">True</property>
|
</child>
|
||||||
<property name="can-focus">False</property>
|
<child>
|
||||||
</object>
|
<placeholder/>
|
||||||
<packing>
|
</child>
|
||||||
<property name="left-attach">1</property>
|
<child>
|
||||||
<property name="top-attach">7</property>
|
<placeholder/>
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
|
Loading…
Reference in New Issue
Block a user