Key Bindings and Edge Bindings
Revision for “Key Bindings and Edge Bindings” created on December 5, 2022 @ 01:36:26
Title | Key Bindings and Edge Bindings |
---|---|
Content | <h1>Bindings (aka shortcuts) Overview</h1>
Want to quickly disable your laptop's touchpad? Then set up a <strong>Key Binding</strong> (<em>aka keyboard shortcut</em>).
Want to easily switch between desktops? Use an<strong> Edge Binding</strong> (<em>aka mouse shortcut</em>).
<ul>
<li><strong>Key Bindings</strong> specify the actions that occur when you press a key combination (<em>i.e. they bind the action to that key combination</em>)</li>
<li><strong>Edge Bindings </strong>control what happens when you click a window edge or a corner of the screen</li>
</ul>
Use bindings to make your life that little bit easier, or to perform an action that would be impossible by any other means. The good news is that it is really easy to set these up by simply choosing an action at the Key or Edge Bindings Settings dialog box.
<h1>The Key Bindings</h1>
<strong>Key Bindings</strong> (<em>aka keyboard shortcuts</em>) - to open the configuration dialog box shown below, navigate to:
<p style="padding-left: 30px;"><em>Main menu > Settings > Settings Panel > Input > Key Bindings</em></p>
The left Key Bindings panel lists the <em>(large)</em> number of key bindings that have been set by default, the Action pane on the right lists the <em>(huge)</em> number of possible actions. One of the default key bindings is <Shift>+<F10>; this will maximize a window vertically - it is a good idea to press this when you open this dialog box to see more of what's on offer.
<a href="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/keyBindingsSettings-620x548.png?x77783&x77783&x55737&x55737&x55737"><img class="aligncenter wp-image-3462" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/keyBindingsSettings-620x548.png?x77783&x77783&x55737&x55737&x55737" alt="Key Binding Settings" width="450" height="398" /></a>
Users of earlier versions of Bodhi Linux noticed one very important feature lacking, which was common in some other desktops; a previewer for common shortcuts. These shortcuts are called <strong>Key Bindings</strong> in Bodhi Linux. Previously there was a Key Bindings setting available, but users could not see all of the basic bindings in one panel. You would have to scroll down and see what shortcuts is assigned to a particular action.
This has been updated! Our developers listened to users and decided to create something for better quick view with the goal of having a dialog which respects all changes a user does in Key Bindings settings. Now users can easily see their own set of shortcuts. To access the new Basic Moksha Keybindings dialog box for a preview of default shortcuts, navigate to:
<p style="padding-left: 30px;"><em>Main menu > Settings > Key Bindings</em></p>
<a href="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/basickeybindings.png?x77783&x77783"><img class=" wp-image-5094 aligncenter" src="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/basickeybindings.png?x77783&x77783" alt="" width="805" height="450" /></a>
In addition to the new menu item to access this dialog box, <SupderKey>+<F1> may also be used for quick access to this feature. For better understanding see the <a href="http://redirect.viglink.com/?key=71fe2139a887ad501313cd8cce3053c5&subId=7156301&u=https%3A//www.dropbox.com/s/syseoqynetdvcqq/Keybinds.mp4%3Fdl%3D0">screen cast</a> (<em>the <SuperKey> is sometimes referred to as the "Windows" or "Win" key</em>).
If you examine the contents of the Basic Moksha Keybindings dialog box, a large number of Key Bindings have been set by default. These are also listed in the table at the end of this article. You can change any of these, and you can add others.
<h2>Creating your own key bindings</h2>
Notice that hardly any <SuperKey> combinations (<em>i.e. the "Windows" key pressed in combination with another key</em>) 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 (<<em>SuperKey>+<Space></em>) to open Quick Launcher - the procedure is:
<ol>
<li>Click the Add button</li>
<li>Press the key combination you wish to use (<em>e.g. <SuperKey>+<Space></em>)</li>
<li>Select Show Quick Launcher (<em>about one-third of the way down the Action pane</em>)</li>
<li>Click Apply</li>
</ol>
You don't have to restrict yourself to SuperKey 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 (<em>about half-way down the Action pane</em>).
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 (<em>Step 1</em>), press your desired key combination (<em>Step 2</em>), then select Command (<em>in the 'Launch' section about half-way down the Action pane</em>). Then, in the Action Params box at the foot of this pane, replace the contents (<em>some example syntax</em>) with
<code>synclient TouchpadOff=1</code>
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:
<code>synclient TouchPadOff=0</code>
<h2>Binding a keyboard shortcut to launch a command</h2>
<em>Navigate</em> to: <em>Settings Panel > Input > Key Bindings</em>
or: <em>Main Menu > Settings > Key Bindings > Edit
</em>or: <Alt>+<Esc> and type <em>key bindings</em> followed by <Enter>
or: <SuperKey>+<Space> and type <em>key bindings</em> followed by <Enter>
or: <em>Main Menu > Quick Launcher</em> and type <em>key bindings</em> followed by <Enter>
or: <SuperKey>+<F1> (<em>in the latest Moksha release</em>)<strong>
</strong>
<div>
Click Add and it'll ask you to enter a new key sequence
</div>
<div></div>
<div><a href="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/keybindapplaunch.png?x77783&x77783&x55737&x55737&x55737"><img class="wp-image-5056 aligncenter" src="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/keybindapplaunch.png?x77783&x77783&x55737&x55737&x55737" alt="" width="526" height="381" /></a></div>
<div></div>
<div><em>
</em>Press the key combination you want to bind, for example <Ctrl>+<Alt>+<T></div>
<div></div>
<div><a href="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/keybindapplaunch1.png?x77783&x77783&x55737&x55737&x55737"><img class="wp-image-5057 aligncenter" src="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/keybindapplaunch1.png?x77783&x77783&x55737&x55737&x55737" alt="" width="529" height="363" /></a></div>
<div></div>
<div>
You will see that key combination is already set for Always on Top Toggle but that does not mean we it cannot be changed. On the right side, scroll to the Launch Section and selectCommand. Then type <em>terminology</em> into the Action Params Box and hit Apply.
It's that easy!
</div>
<h1>The Edge Bindings</h1>
<strong>Edge Bindings</strong> (<em>aka mouse shortcuts</em>) - to open this configuration dialog box, go to:
<p style="padding-left: 30px;"><em>Main menu > Settings > Settings Panel > Input > Edge Bindings</em></p>
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.
<a href="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/EdgeBindingSettings-620x570.png?x77783&x77783&x55737&x55737&x55737"><img class="aligncenter wp-image-3460" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/EdgeBindingSettings-620x570.png?x77783&x77783&x55737&x55737&x55737" alt="Edge Binding Settings" width="450" height="414" /></a>
Suppose you wish to set up an Edge Binding to show the desktop (<em>i.e. minimize all open windows</em>) when you click the bottom right corner of the screen; the steps to accomplish this are similar to those for Key Bindings:
<ol>
<li>Click the Add button. This opens the Edge Binding Sequence dialog box shown below</li>
<li>Click the edge or corner that wish to use for your binding, <em>select</em> the Clickable Edge option, and click Apply - you are returned to the Settings dialog box</li>
<li>Select Show The Desktop (<em>near the top of the Action pane</em>)</li>
<li>Click Apply</li>
</ol>
<a href="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/edgebind.png?x77783&x77783"><img class="size-full wp-image-5084 aligncenter" src="https://www.bodhilinux.com/trial/wp-content/uploads/2015/02/edgebind.png?x77783&x77783" alt="" width="549" height="242" /></a>
If you make use of <a title="Virtual Desktops" href="https://www.bodhilinux.com/w/virtual-desktops/" target="_blank" rel="noopener">virtual desktops</a>, you might <em>set</em> 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.
<h1>Default Key Bindings/Keyboard Shortcuts</h1>
The table below shows the Key Bindings (<em>keyboard shortcuts</em>) that have been set-up by default in Moksha:
<table border="1" cellpadding="0">
<tbody>
<tr>
<td colspan="2"><strong>Single key</strong></td>
</tr>
<tr>
<td style="text-align: left;">Menu (<img class="alignnone wp-image-3885" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/menukey.png?x77783&x77783&x55737&x55737&x55737" alt="menu key" width="22" height="20" />)</td>
<td style="text-align: left;">Show Main Menu</td>
</tr>
<tr>
<td style="text-align: left;">Print</td>
<td style="text-align: left;">Take Screenshot</td>
</tr>
<tr>
<td colspan="2"><strong>Single MultiMedia/XF86 keys</strong></td>
</tr>
<tr>
<td style="text-align: left;">Sleep</td>
<td style="text-align: left;">Suspend System</td>
</tr>
<tr>
<td style="text-align: left;">Start</td>
<td style="text-align: left;">Show All Applications Menu</td>
</tr>
<tr>
<td style="text-align: left;">Standby</td>
<td style="text-align: left;">Suspend System</td>
</tr>
<tr>
<td style="text-align: left;">Suspend</td>
<td style="text-align: left;">Suspend System</td>
</tr>
<tr>
<td style="text-align: left;">PowerOff</td>
<td style="text-align: left;">Power Off System</td>
</tr>
<tr>
<td style="text-align: left;">AudioMute</td>
<td style="text-align: left;">Mute Volume</td>
</tr>
<tr>
<td style="text-align: left;">Hibernate</td>
<td style="text-align: left;">Hibernate System</td>
</tr>
<tr>
<td style="text-align: left;">PowerDown</td>
<td style="text-align: left;">Hibernate System</td>
</tr>
<tr>
<td style="text-align: left;">MonBrightnessUp</td>
<td style="text-align: left;">Screen Backlight Up</td>
</tr>
<tr>
<td style="text-align: left;">MonBrightnessDown</td>
<td style="text-align: left;">Screen Backlight Down</td>
</tr>
<tr>
<td style="text-align: left;">AudioLowerVolume</td>
<td style="text-align: left;">Decrease Volume</td>
</tr>
<tr>
<td style="text-align: left;">AudioRaiseVolume</td>
<td style="text-align: left;">Increase Volume</td>
</tr>
<tr>
<td colspan="2"><strong>Shift</strong></td>
</tr>
<tr>
<td style="text-align: left;">Shift + F10</td>
<td style="text-align: left;">Maximize Window Vertically</td>
</tr>
<tr>
<td colspan="2"><strong>Control</strong></td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + M</td>
<td style="text-align: left;">Maximize Window Vertically</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Menu (<img class="alignnone wp-image-3885" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/menukey.png?x77783&x77783&x55737&x55737&x55737" alt="menu key" width="22" height="20" />)</td>
<td style="text-align: left;">Show Clients Menu</td>
</tr>
<tr>
<td colspan="2"><strong>Alt</strong></td>
</tr>
<tr>
<td style="text-align: left;">Alt + F1</td>
<td style="text-align: left;">Switch to Virtual Desktop 0</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F2</td>
<td style="text-align: left;">Switch to Virtual Desktop 1</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F3</td>
<td style="text-align: left;">Switch to Virtual Desktop 2</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F4</td>
<td style="text-align: left;">Switch to Virtual Desktop 3</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F5</td>
<td style="text-align: left;">Switch to Virtual Desktop 4</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F6</td>
<td style="text-align: left;">Switch to Virtual Desktop 5</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F7</td>
<td style="text-align: left;">Switch to Virtual Desktop 6</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F8</td>
<td style="text-align: left;">Switch to Virtual Desktop 7</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F9</td>
<td style="text-align: left;">Switch to Virtual Desktop 8</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F10</td>
<td style="text-align: left;">Switch to Virtual Desktop 9</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F11</td>
<td style="text-align: left;">Switch to Virtual Desktop 10</td>
</tr>
<tr>
<td style="text-align: left;">Alt + F12</td>
<td style="text-align: left;">Switch to Virtual Desktop 11</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Tab</td>
<td style="text-align: left;">Next Window</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Menu (<img class="alignnone wp-image-3885" src="https://www.bodhilinux.com/trial/wp-content/uploads/2020/11/menukey.png?x77783&x77783&x55737&x55737&x55737" alt="menu key" width="22" height="20" />)</td>
<td style="text-align: left;">Show Favorites Menu</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Esc</td>
<td style="text-align: left;">Quick Launcher</td>
</tr>
<tr>
<td colspan="2"><strong>Super key</strong> <em>(sometimes called the Win or Windows key)</em></td>
</tr>
<tr>
<td style="text-align: left;">Super key + Up</td>
<td style="text-align: left;">Maximize Window</td>
</tr>
<tr>
<td style="text-align: left;">Super key + Left</td>
<td style="text-align: left;">Maximize Window on Left</td>
</tr>
<tr>
<td style="text-align: left;">Super key + Right</td>
<td style="text-align: left;">Maximize Window on Right</td>
</tr>
<tr>
<td style="text-align: left;">Super key + Space</td>
<td style="text-align: left;">Quick Launcher</td>
</tr>
<tr>
<td colspan="2"><strong>Ctrl + Shift</strong></td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Shift + F1</td>
<td style="text-align: left;">Send Mouse to Screen 0</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Shift + F2</td>
<td style="text-align: left;">Send Mouse to Screen 1</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Shift + F3</td>
<td style="text-align: left;">Send Mouse to Screen 2</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Shift + F4</td>
<td style="text-align: left;">Send Mouse to Screen 3</td>
</tr>
<tr>
<td colspan="2"><strong>Alt + Shift</strong></td>
</tr>
<tr>
<td style="text-align: left;">Alt + Shift + Up</td>
<td style="text-align: left;">Flip Virtual Desktop Up</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Shift + Tab</td>
<td style="text-align: left;">Previous Window</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Shift + Down</td>
<td style="text-align: left;">Flip Virtual Desktop Down</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Shift + Left</td>
<td style="text-align: left;">Flip Virtual Desktop Left</td>
</tr>
<tr>
<td style="text-align: left;">Alt + Shift + Right</td>
<td style="text-align: left;">Flip Virtual Desktop Right</td>
</tr>
<tr>
<td colspan="2"><strong>Ctrl + Alt</strong></td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + A</td>
<td style="text-align: left;">Show Favorites Menu</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + C</td>
<td style="text-align: left;">Show History</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + D</td>
<td style="text-align: left;">Show the Desktop</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + F</td>
<td style="text-align: left;">Windows Fullscreen Mode Toggle</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + I</td>
<td style="text-align: left;">Iconic Mode Toggle</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + K</td>
<td style="text-align: left;">Kill Window</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + L</td>
<td style="text-align: left;">Lock Desktop</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + M</td>
<td style="text-align: left;">Show Main Menu</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + N</td>
<td style="text-align: left;">Maximize Window</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + R</td>
<td style="text-align: left;">Window Shade Up Mode Toggle</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + S</td>
<td style="text-align: left;">Sticky (Window) Mode Toggle</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + T</td>
<td style="text-align: left;">Window Always On Top Toggle</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + W</td>
<td style="text-align: left;">Window Menu (brings up a menu to max/min etc.)</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + X</td>
<td style="text-align: left;">Close (like Alt F4 in windows)</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Up</td>
<td style="text-align: left;">Raise Window</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + End</td>
<td style="text-align: left;">Restart Moksha</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Down</td>
<td style="text-align: left;">Lower Window</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Left</td>
<td style="text-align: left;">Flip Desktop Linearly Left</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Right</td>
<td style="text-align: left;">Flip Desktop Linearly Right</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Space</td>
<td style="text-align: left;">Quick Launcher</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Delete</td>
<td style="text-align: left;">Opens Ssystem Controls (power off, suspend, lock, etc)</td>
</tr>
<tr>
<td style="text-align: left;">Ctrl + Alt + Insert</td>
<td style="text-align: left;">Terminology (Command-line interface)</td>
</tr>
</tbody>
</table>
<em>Further exploration:</em>
Back to <a href="https://www.bodhilinux.com/w/moksha-guide/">Moksha Guide</a>
<a href="https://www.bodhilinux.com/">Bodhi Linux Home</a>
<a href="https://www.bodhilinux.com/w/wiki/">Bodhi Linux - Wiki Home Page</a>
<a href="https://www.bodhilinux.com/w/bodhi-linux-how-to/">Bodhi Linux - Wiki Table of Contents</a> |
Excerpt |