This commit is contained in:
Ward Nakchbandi 2022-09-26 19:59:39 +03:00
parent 96e5789c14
commit 4d7d5ca0a9
2 changed files with 2 additions and 19 deletions

View File

@ -74,7 +74,7 @@ class Application:
workspace_switch.set_active(False) workspace_switch.set_active(False)
x11_switch = self.builder.get_object("x11_switch") x11_switch = self.builder.get_object("x11_switch")
x11_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep x11gestures@joseexposito.github.io"], shell=True, stdout=subprocess.DEVNULL) x11_output = subprocess.run(["gsettings get org.gnome.shell enabled-extensions | grep gestureImprovements@gestures"], shell=True, stdout=subprocess.DEVNULL)
if (x11_output.returncode) == 0: if (x11_output.returncode) == 0:
x11_switch.set_active(True) x11_switch.set_active(True)
else: else:

View File

@ -1,24 +1,7 @@
#! /bin/bash #! /bin/bash
# Get needed extensions into userland
if [[ $1 == enable ]]; then if [[ $1 == enable ]]; then
if [[ -d "$HOME/.local/share/gnome-shell/extensions/gestureImprovements@gestures" ]]; then gnome-extensions enable gestureImprovements@gestures
echo "gestures already in userland no need to download anything"
echo "Enabling Now"
gnome-extensions enable x11gestures@joseexposito.github.io
else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$HOME/.cache/nobara-layouts/extensions/"
ls gestureImprovementsgestures.v22.shell-extension.zip || wget https://extensions.gnome.org/extension-data/gestureImprovementsgestures.v22.shell-extension.zip
gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/gestureImprovementsgestures.v22.shell-extension.zip"
export RELOG_NEEDED=1
if [[ $ALL != True ]]; then
/etc/nobara/scripts/nobara-layouts/reload.sh
fi
fi
else else
echo "Disabling Now"
gnome-extensions disable gestureImprovements@gestures gnome-extensions disable gestureImprovements@gestures
fi fi