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-sound-output-device-chooser
|
||||
Requires: gnome-shell-extension-window-list
|
||||
Requires: gnome-shell-extension-gamemode
|
||||
Requires: gnome-shell-extension-freon
|
||||
Requires: gnome-shell-extension-wireless-hid
|
||||
Requires: gnome-shell-extension-gesture-improvements
|
||||
Requires: gnome-shell-extension-spacebar
|
||||
|
||||
%install
|
||||
tar -xf %{SOURCE0}
|
||||
|
@ -115,12 +115,6 @@ class Application:
|
||||
else:
|
||||
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_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:
|
||||
@ -139,12 +133,6 @@ class Application:
|
||||
pop_switch.set_active(True)
|
||||
else:
|
||||
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)
|
||||
t1 = threading.Thread(target=extension_refresh_func)
|
||||
@ -294,13 +282,6 @@ class Application:
|
||||
else:
|
||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/weather.sh disable"], shell=True)
|
||||
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 ####
|
||||
def on_stats_switch_active_notify(self, switch, state):
|
||||
if switch.get_active() == True:
|
||||
@ -322,13 +303,6 @@ class Application:
|
||||
else:
|
||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/settings-scripts/pop.sh disable"], shell=True)
|
||||
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):
|
||||
subprocess.run(["/etc/nobara/scripts/nobara-layouts/all.sh"], shell=True)
|
||||
|
@ -888,47 +888,6 @@
|
||||
<property name="top-attach">4</property>
|
||||
</packing>
|
||||
</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>
|
||||
<object class="GtkBox" id="hid_box">
|
||||
<property name="visible">True</property>
|
||||
@ -1076,61 +1035,19 @@
|
||||
</packing>
|
||||
</child>
|
||||
</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>
|
||||
<property name="left-attach">2</property>
|
||||
<property name="top-attach">7</property>
|
||||
<property name="top-attach">5</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left-attach">1</property>
|
||||
<property name="top-attach">7</property>
|
||||
</packing>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<placeholder/>
|
||||
|
Loading…
Reference in New Issue
Block a user