This commit is contained in:
Ward Nakchbandi 2022-09-27 17:49:03 +03:00
parent dfab35a984
commit a1a7f3cd2b
3 changed files with 15 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class Application:
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 espresso@coadmunkee.github.com"], shell=True, stdout=subprocess.DEVNULL)
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:

View File

@ -0,0 +1,7 @@
#! /bin/bash
if [[ $1 == enable ]]; then
gnome-extensions enable gamemode@christian.kellner.me
else
gnome-extensions disable gamemode@christian.kellner.me
fi

View File

@ -0,0 +1,7 @@
#! /bin/bash
if [[ $1 == enable ]]; then
gnome-extensions enable pop-shell@system76.com
else
gnome-extensions disable pop-shell@system76.com
fi