Skip to content

Commit

Permalink
feat: Add option to ujust to disable swipe gestures in gaming mode (T…
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Apr 21, 2024
1 parent 79616cf commit 94334a0
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@ restore-input-remapper:
cp /usr/share/applications/input-remapper-gtk.desktop ~/.local/share/applications/input-remapper-gtk.desktop && \
sed -i '/NoDisplay=true/d' ~/.local/share/applications/input-remapper-gtk.desktop

# Disable Steam Gaming Mode swipe gestures
disable-swipe-gestures ACTION="":
#!/usr/bin/bash
OPTION={{ ACTION }
source /usr/lib/ujust/ujust.sh
if [-d $HOME/.config/environment.d]; then
echo environment.d exists
rm "$HOME/.config/environment.d/bazzite-disable-gamescope-gestures.conf"
else
mkdir -p $HOME/.config/environment.d
cat <<EOF > "$HOME/.config/environment.d/bazzite-disable-gamescope-gestures.conf"
export GAMESCOPE_DISABLE_TOUCH_GESTURES=1
echo "disabling swipe gestures for QAM and HOME"
echo "Done. Please restart Steam Game Mode to see changes"
fi
EOF

alias _toggle-wayland := _toggle_wayland

_toggle_wayland:
Expand Down

0 comments on commit 94334a0

Please sign in to comment.