fix(gnome): Restore joystickwake functionality with caffeine extension

This commit is contained in:
Kyle Gospodnetich 2024-04-09 12:47:39 -07:00
parent 41483ae865
commit 3e0b13014a
6 changed files with 15 additions and 20 deletions

View File

@ -285,7 +285,6 @@ RUN rpm-ostree install \
tuned-profiles-cpu-partitioning \
powertop \
i2c-tools \
joystickwake \
udica \
joycond \
ladspa-caps-plugins \
@ -469,6 +468,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
kdeplasma-addons \
rom-properties-kf5 \
qvtf \
joystickwake \
ptyxis && \
mkdir -p /tmp/kwin-system76-scheduler-integration && \
wget https://github.com/maxiberta/kwin-system76-scheduler-integration/archive/374a261497c772571df93f59fbced0ad02e64ad5.tar.gz -O /tmp/kwin-system76-scheduler-integration/archive.tar.gz && \
@ -523,6 +523,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
gnome-shell-extension-gamerzilla \
gnome-shell-extension-bazzite-menu \
gnome-shell-extension-hotedge \
gnome-shell-extension-caffeine \
rom-properties-gtk3 \
pixbufloader-vtf \
openssh-askpass && \

View File

@ -1,3 +1,3 @@
[org/gnome/shell]
enabled-extensions=['s76-scheduler@mattjakeman.com', 'logomenu@aryan_k', 'appindicatorsupport@rgcjonas.gmail.com', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'gsconnect@andyholmes.github.io', 'just-perfection-desktop@just-perfection', 'blur-my-shell@aunetx', 'hotedge@jonathan.jdoda.ca', 'block-caribou-36@lxylxy123456.ercli.dev']
enabled-extensions=['s76-scheduler@mattjakeman.com', 'logomenu@aryan_k', 'appindicatorsupport@rgcjonas.gmail.com', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'gsconnect@andyholmes.github.io', 'just-perfection-desktop@just-perfection', 'blur-my-shell@aunetx', 'hotedge@jonathan.jdoda.ca', 'block-caribou-36@lxylxy123456.ercli.dev', 'caffeine@patapon.info']
disabled-extensions=['background-logo@fedorahosted.org']

View File

@ -0,0 +1,11 @@
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if /usr/libexec/hardware/valve-hardware; then
# Don't do anything on Valve hardware, prevents lizard mode from working properly.
exit 0
fi
/usr/bin/joystickwake --command "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement wakeup" "$@"

View File

@ -1,17 +0,0 @@
#!/usr/bin/bash
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
if /usr/libexec/hardware/valve-hardware; then
# Don't do anything on Valve hardware, prevents lizard mode from working properly.
exit 0
fi
if [[ ${BASE_IMAGE_NAME} =~ "kinoite" ]]; then
/usr/bin/joystickwake --command "qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement wakeup" "$@"
else
# Do nothing on GNOME until issue with this making the lock screen irrelevant is fully resolved.
exit 0
#/usr/bin/joystickwake "$@"
fi

View File

@ -1,3 +1,3 @@
[org/gnome/shell]
enabled-extensions=['s76-scheduler@mattjakeman.com', 'logomenu@aryan_k', 'appindicatorsupport@rgcjonas.gmail.com', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'gsconnect@andyholmes.github.io', 'just-perfection-desktop@just-perfection', 'blur-my-shell@aunetx', 'hotedge@jonathan.jdoda.ca']
enabled-extensions=['s76-scheduler@mattjakeman.com', 'logomenu@aryan_k', 'appindicatorsupport@rgcjonas.gmail.com', 'user-theme@gnome-shell-extensions.gcampax.github.com', 'gsconnect@andyholmes.github.io', 'just-perfection-desktop@just-perfection', 'blur-my-shell@aunetx', 'hotedge@jonathan.jdoda.ca', 'caffeine@patapon.info']
disabled-extensions=['background-logo@fedorahosted.org']