Re: Keybindings for the Magnifier



Hi Robert,

I am curious as to whether or not it is possible to set the magnifier's keybindings (turn on/off, zoom in/out) by setting keys via the command line.

Yes, but it can be dangerous in that it's possible to put the system into an unstable state. Using the System Settings is the safe way to do this. Nevertheless, by first using the GUI, it is possible to do what you want from the command line. Use the following approach.

First, use the control centre Keyboard setting dialog to choose keystrokes for the magnifier on/off, zoom-in, and zoom-out functions. For example, suppose the zoom-in keystroke is set to "Ctrl+2" in the "Shortcuts/Universal Access" dialog. Then, on the command line, use the 'gsettings' command to determine the string value of the keystroke:

$ gsettings get org.gnome.settings-daemon.plugins.media-keys magnifier-zoom-in

You should see the following as a response:
'<Primary>2'

Use the same technique for on/off and zoom out -- first set them using the control centre dialog, then find out their value strings:

$ gsettings get org.gnome.settings-daemon.plugins.media-keys magnifier
$ gsettings get org.gnome.settings-daemon.plugins.media-keys magnifier-zoom-out

Once you have valid value strings you can use them with gsettings 'set' command. For example:

$ gsettings set org.gnome.settings-daemon.plugins.media-keys magnifier-zoom-in '<Primary>2'

Hope that helps.

--
;;;;joseph.


'A: After all, it isn't rocket science.'
'K: Right. It's merely computer science.'
             - J. D. Klaun -



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]