Key Bindings and Edge Bindings
Want to quickly disable your laptop’s touchpad? Then set up a key binding. Or easily switch between desktops? Use an edge binding. Key bindings specify the actions that occur when you press a key combination (i.e. they bind the action to that key combination); edge bindings control what happens when you click an edge or a corner of the screen. Use them to make your life that little bit easier, or to perform an action that would be impossible by any other means. And the good news is that it’s really easy to set these up by simply choosing an action at the Key or Edge Bindings Settings dialog box.
The Key Bindings Settings dialog box
To open the dialog box shown below, go to Main menu > Settings > Settings Panel > Input > Key Bindings. The left ‘Key Bindings’ pane lists the (large) number of key bindings that have been set by default, the ‘Action’ pane on the right lists the (huge) number of possible actions. One of the default key bindings is Shift+F10, to maximize a window vertically, and it’s a good idea to press this when you open this dialog box to see more of what’s on offer.
As you will see if you examine the contents of the dialog box, a large number of key bindings have been set by default. These are listed in the table at the end of this article. You can change any of these, and you can add others.
Creating your own key bindings
Notice that hardly any Win key combinations (i.e. the Windows key pressed in combination with another key) have been used for the default bindings. This leaves them free for your own use.
For example, suppose you have upgraded from one version to the next, but wish to continue using the previous version’s binding (Win+Space) to open Quick Launcher. The procedure is:
- Click the ‘Add’ button.
- Press the key combination you wish to use (Win+Space).
- Select ‘Show Quick Launcher’ (about one-third of the way down the Action pane).
- Click Apply.
You don’t have to restrict yourself to Win key combinations, of course. If you inspect the list of key bindings at the end of this article you will see that Alt+Space is unused, and so you might bind this to the action ‘Launch Settings Panel’ (about half-way down the Action pane).
A key binding to disable your laptop’s touchpad must execute the appropriate command. To set this up, click the ‘Add’ button at the dialog box above (Step 1), press your desired key combination (Step 2), then select ‘Command’ (in the ‘Launch’ section about half-way down the Action pane). Then, in the Action Parameters box at the foot of this pane, replace the contents (some example syntax) with
“synclient TouchpadOff=1″ (no quotes) and click Apply.
If you want to set up another key binding to re-enable the touchpad, the command to insert in the Action Params box is:
“synclient TouchPadOff=0″
The Edge Bindings Settings dialog box
To open this dialog box, go to Main menu > Settings > Settings Panel > Input > Edge Bindings. It is similar to the Key Bindings dialog box shown above, with the same Action Pane contents at the right, but edge bindings listed at the left. By default no edge bindings have been set, so the left pane is empty. You can set up to eight edge bindings – one for each edge and one for each corner.
Suppose you wish to set up a binding to show the desktop (i.e. minimize all open windows) when you click the bottom right corner of the screen. The steps to accomplish this are similar to those for key bindings:
- Click the Add button. This opens the Edge Binding Sequence dialog box shown below.
- Click the edge or corner that wish to use for your binding, select the ‘Clickable Edge’ option, and click Apply. You are returned to the Settings dialog box.
- Select ‘Show The Desktop’ (near the top of the Action pane).
- Click Apply.
If you make use of virtual desktops, you might set a left-edge click to cycle left through the desktops, and a right-edge click to cycle to the right. The Action you should select in this case is ‘Flip Desktop Linearly…’, with ‘-1’ entered in the Action Params box for a left flip, and ‘1’ for a right flip.
Default key bindings
The table below shows the key bindings that have been set-up by default in Moksha.
Single key |
|
Menu | Show Main Menu |
Take Screenshot | |
Execute | Show Everything Launcher |
XF86Sleep | Suspend |
XF86Start | Show All Applications Menu |
XF86Standby | Suspend |
XF86Suspend | Suspend |
XF86PowerOff | Power Off |
XF86AudioMute | Mute Volume |
XF86Hibernate | Hibernate |
XF86LightBulb | Backlight Controls |
XF86PowerDown | Hibernate |
XF86MonBrightnessUp | Backlight Adjust +0.1 |
XF86AudioLowerVolume | Decrease Volume |
XF86AudioRaiseVolume | Increase Volume |
XF86BrightnessAdjust | Backlight Controls |
XF86MonBrightnessDown | Backlight Adjust -0.1 |
Shift |
|
Shift F10 | Maximize Vertically |
Control |
|
Ctrl F10 | Maximize Horizontally |
Ctrl Menu | Show Clients Menu |
Alt |
|
Alt F1 | Switch to Desktop 0 |
Alt F2 | Switch to Desktop 1 |
Alt F3 | Switch to Desktop 2 |
Alt F4 | Switch to Desktop 3 |
Alt F5 | Switch to Desktop 4 |
Alt F6 | Switch to Desktop 5 |
Alt F7 | Switch to Desktop 6 |
Alt F8 | Switch to Desktop 7 |
Alt F9 | Switch to Desktop 8 |
Alt F10 | Switch to Desktop 9 |
Alt F11 | Switch to Desktop 10 |
Alt F12 | Switch to Desktop 11 |
Alt Tab | Next Window |
Alt Menu | Show Favorites Menu |
Alt Esc | Run Everything |
Win |
|
Win Left | Maximize Left |
Win Right | Maximize Right |
Ctrl + Shift |
|
Ctrl Shift F1 | Send Mouse to Screen 0 |
Ctrl Shift F2 | Send Mouse to Screen 1 |
Ctrl Shift F3 | Send Mouse to Screen 2 |
Ctrl Shift F4 | Send Mouse to Screen 3 |
Alt + Shift |
|
Alt Shift Up | Flip Desktop Up |
Alt Shift Tab | Previous Window |
Alt Shift Down | Flip Desktop Down |
Alt Shift Left | Flip Desktop Left |
Alt Shift Right | Flip Desktop Right |
Ctrl + Alt |
|
Ctrl Alt A | Show Favorites Menu |
Ctrl Alt D | Show Desktop |
Ctrl Alt F | Fullscreen Mode Toggle |
Ctrl Alt I | Iconic Mode Toggle |
Ctrl Alt K | Kill |
Ctrl Alt L | Lock |
Ctrl Alt M | Show Main Menu |
Ctrl Alt N | Maximize |
Ctrl Alt R | Shade Up Mode Toggle |
Ctrl Alt S | Sticky Mode Toggle |
Ctrl Alt W | Window Menu (brings up menu to max/min etc.) |
Ctrl Alt X | Close (like Alt F4 in windows) |
Ctrl Alt Up | Raise Window |
Ctrl Alt End | Restart Enlightenment |
Ctrl Alt Down | Lower Window |
Ctrl Alt Left | Flip Desktop Linearly Left |
Ctrl Alt Right | Flip Desktop Linearly Right |
Ctrl Alt Delete | Log Out |
Ctrl Alt Insert | Terminology (Command line interface) |