GNOME 3 is not compatible with Compiz, so I cannot use the desktop zoom feature from Compiz. I googled for a long time, and it seems GNOME still does not support desktop zoom -- does it? I am using GNOME 3.2.1
Asked
Active
Viewed 2.7k times
39
-
There is the zoom option in GNOME3's accessability menu (tray icon near the right end of the system tray / top panel). – fheub Mar 05 '12 at 10:30
-
@fheub I can switch the setting “Zoom” in the control panel to on or off, but how to access the zoom function? It says: “Zoom in: No shortcut set” and “Zoom out: No shortcut set”. How to assign these shortcuts? – Marco Mar 05 '12 at 11:11
-
https://github.com/paradoxxxzero/gnome-shell-focus-effects-extension/ – PersianGulf Oct 05 '14 at 12:43
-
1GNOME3's zoom offering is garbage compared to what could be achieved in the Unity 7 desktop (where you could tie it to the alt+scroll-wheel). That felt like infinite granularity compared to GNOME3's jagged button based approach where it is always a little bigger or smaller than exactly what you want and there's no size in between. Only after moving to KDE did I regain this feature to the degree that met my expectations of seemingly infinite fine-grained zoom with mouse-scroll-wheel control. – Lonnie Best Oct 13 '21 at 11:40
4 Answers
55
For those who don't mind using keyboard shortcuts instead of the mouse scrollwheel, here they are (tested with Gnome 3.14.2):
- Super+Alt+8 : Toggle zoom enabled/disabled (when enabled, the next two keyboard shortcuts become active)
- Super+Alt++ : Zoom in (increases zoom factor by 1.0)
- Super+Alt+- : Zoom out (decreases zoom factor by 1.0, until it is 1.0)
(Yes, decreasing zoom factor all the way down to 1.0 will look unzoomed, but zoom (and its keyboard shortcuts) remain active.)
-
I tried this on gnome-shell-3.26, it still works, yay! :-) however the magnification also follows the keyboard caret, but in a wrong way (the caret is supposed to be in a center but it ends up in lower right corner, basically hiding everything). I had to disable the caret following in the dconf-editor /org/gnome/desktop/a11y/magnifier/caret-tracking – MariusM Feb 15 '18 at 08:16
-
1
-
1Not sure why or how to change it but with an Spanish (`localectl status`:es) layout was "0" instead of "+". – Pablo A Oct 16 '18 at 06:29
-
1For those wondering *Super* is typically gets bound to the *Win* key. – Neurotransmitter Jan 23 '19 at 09:56
-
I filed [this issue](https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/530) about the incorrect keybinding on some non-English keyboard layouts – Pablo A May 22 '20 at 08:00
-
Thank you. Believe it or not my _cat_ enabled this, and I needed the accelerator to turn it off.. – phs Jan 31 '23 at 16:59
15
To answer my own question...
The Gnome3 has a zoom feature in the accessibility menu. Thanks to @fheub. If you want to use shortcut key, you can edit the shortcut key in the keyboard system settings.
But my point is:
- the zoom feature in accessibility menu is designed for people with vision problem. Has the Gnome developer ever realize everyone may want/need such a feature regardless of the condition of their eyes?
- By setting the shortcut key, it is literally means the the key on your keyboard, not including your mouse. But with Compiz, I can use the mod-key + mouse scroll wheel to zoom in/out. Much more convenient.
Lonnie Best
- 4,895
- 6
- 27
- 42
David S.
- 5,529
- 5
- 30
- 39
-
3"Gnome developer ever relize everyone may want/need such a feature recardless of the condition of their eyes?" Agreed! I just want to be able to use the computer on my living room TV from the couch. – Benny Jobigan Oct 16 '18 at 16:22
6
Gnome Shell Mousewheel zoom is an extension to provide this functionality, it doesn't seem to be on extensions.gnome.org yet.
Stuart Axon
- 161
- 1
- 3
-
1
-
-
1It looks like the extension listed above can still work if you compile it yourself. – Stuart Axon Oct 10 '19 at 09:27
4
I was able to get mousewheel to control zoom in ubuntu 20.04 LTS using xbindkeys and a simple bash script:
#!/usr/bin/env bash
# gmagctl - manage gnome magnifier
# usage: gmagctl [ zoom-in | zoom-out ]
# suggested .xbindkeysrc settings:
# "gmagctl zoom-in"
# shift + control + b:4
#
# "gmagctl zoom-out"
# shift + control + b:5
## preferences
# zoom factor increment
inc="0.5"
# minimum zoom factor (don't set less than 1)
min=1
# maximum zoom factor
max=7
# dconf paths
mstat="/org/gnome/desktop/a11y/applications/screen-magnifier-enabled"
mfac="/org/gnome/desktop/a11y/magnifier/mag-factor"
# make sure zoom is enabled
# start at min if it was off
if [[ $(dconf read $mstat) == "false" ]] ; then
dconf write $mfac $min
dconf write $mstat "true"
fi
cur=$(dconf read $mfac)
if [[ "$1" == "zoom-in" ]] ; then
new=$(bc <<< "$cur + $inc")
if [[ $(bc <<< "$new <= $max") -ne 0 ]] ; then
dconf write $mfac $new
fi
fi
if [[ "$1" == "zoom-out" ]] ; then
new=$(bc <<< "$cur - $inc")
if [[ $(bc <<< "$new >= $min") -ne 0 ]] ; then
dconf write $mfac $new
fi
fi
Jon Diercks
- 41
- 1
