I recently re-installed Manjaro Gnome from ISO.
Previously I was able to zoom in/out using pinch gesture on my trackpad. But now this is not working.
Im not sure if this is a feature of Gnome or Firefox, but it was firefox on which i took advantage of this.
I don’t mean the standard firefox zoom (+ -) to make text larger or smaller, I mean a complete zoom of the entire viewport.
I’m pretty sure this wasnt a firefox extension, i looked those up & nothing looked familiar.
I cant find anything related to zoom in gnome trackpad settings or firefox, so im not sure what this was?
oh, actually I deleted gnome-shell-extension-x11gestures + touchegg + touche because they spam the log when running wayland.
This was advice you gave me in this thread & it worked well before , so i did the same this time.
I dont use Xorg session at all.
This was correct, the things you listed only work in X11 not Wayland. I think everyone in this thread assumed you were using X11, since normally this stuff works out of the box in Wayland.
3-finger swipe to switch workspace/activites works, 2-finger scroll works, tap to click & tapndrag work.
But pinch-zoom doesnt, at least in FF. Can I test it in another app?
Check the “Window Protocol” entry in Firefox’s about:support page. If it says “XWayland” rather than “Wayland”, then Wayland mode is not enabled, and Wayland gestures may not work properly. Follow this guide to enable Wayland mode.
I copied /usr/share/applications/firefox.desktop to ~/.local/share/applications/firefox.desktop & added the environment variable. (in the 3 Exec lines)
pinch zoom now works.
However, I cant get a the session wide MOZ_ENABLE_WAYLAND=1 solutions to work. Not sure why.
I added the conditional to .bash_profile & reboot, but it doesnt work (FF still says Xwayland)
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
fi
You will have to add it to your .zshrc since ZSH is the default shell in Manjaro. But it shouldn’t be necessary to do so if you have already edited firefox.desktop, since MOZ_ENABLE_WAYLAND is Firefox-only.
About what? Single brackets with quoted variables is POSIX compliant. If one used single brackets with no quoted variables, there may be issues. However, I would only expect a complaint from BASH, not ZSH.
When I open a new terminal i see this error. /home/rico/.zshrc:12: = not found
When written with double brackets there is no complaint.
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
export MOZ_ENABLE_WAYLAND=1
fi
Additionally i found adding this to .zshrc does actually work for FF pinch, but only if i launch FF via terminal. (when using 2 brackets)
So still searching for a way to cover this for all situations.
Thanks. I tried this but not sure about the result.
Here is my .zshrc, This is default with only the last condition added
# Use powerline
USE_POWERLINE="true"
# Source manjaro-zsh-configuration
if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
source /usr/share/zsh/manjaro-zsh-config
fi
# Use manjaro zsh prompt
if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
source /usr/share/zsh/manjaro-zsh-prompt
fi
# 2023.03.01 Firefox wayland pinch/zoom
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
export MOZ_ENABLE_WAYLAND=1
fi
I used double-brackets [[ in the last condition when i noticed the existing content did that, & then the terminal error stopped. So that was my reasoning.
When I run shellcheck I get the following result
I tried it with 2 brackets in the last condition, 1 bracket & without the condition at all, but in all cases shellcheck is the same.
shellcheck ~/.zshrc 1 ✘
In /home/rico/.zshrc line 1:
# Use powerline
^-- SC2148 (error): Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
In /home/rico/.zshrc line 2:
USE_POWERLINE="true"
^-----------^ SC2034 (warning): USE_POWERLINE appears unused. Verify use (or export if used externally).
In /home/rico/.zshrc line 5:
source /usr/share/zsh/manjaro-zsh-config
^-- SC1091 (info): Not following: /usr/share/zsh/manjaro-zsh-config was not specified as input (see shellcheck -x).
In /home/rico/.zshrc line 9:
source /usr/share/zsh/manjaro-zsh-prompt
^-- SC1091 (info): Not following: /usr/share/zsh/manjaro-zsh-prompt was not specified as input (see shellcheck -x).