2
edits
imported>Cscs |
(→Adjusting keybindings: Change subheadings to make clear these are just examples) Tags: Mobile web edit Mobile edit |
||
Line 13: | Line 13: | ||
=Installing Openbox= | =Installing Openbox= | ||
For information on how to install basic Openbox environment please review the [[Install_Desktop_Environments#Openbox|Openbox installation instructions]]. | For information on how to install a basic Openbox environment please review the [[Install_Desktop_Environments#Openbox|Openbox installation instructions]]. | ||
=Adjusting | =Adjusting keybindings= | ||
Openbox is built to be customized, and this includes the ability to create your own custom '''keybindings'''. These are combinations of key presses that may be used to undertake virtually any action, usually much faster and more directly than other means, such as by sifting through a menu. Although the Manjaro Openbox Edition provides a user-friendly graphical interface that may be used to alter or create custom keybindings, some combinations of special keys are not easily managed through this interface. | |||
In this instance it will be necessary to manually edit the Openbox {{ic|rc.xml}} file. One of the many functions of this file is to store and enable keybindings in the Openbox environment. This file is located at {{ic|~/.config/openbox/rc.xml}} and you can edit it with a standard [[Viewing_and_editing_configuration_files|text editor]]. | In this instance it will be necessary to manually edit the Openbox {{ic|rc.xml}} file. One of the many functions of this file is to store and enable keybindings in the Openbox environment. This file is located at {{ic|~/.config/openbox/rc.xml}} and you can edit it with a standard [[Viewing_and_editing_configuration_files|text editor]]. | ||
== | ==Example: screen brightness== | ||
Once the file has been opened, you will be presented with a substantial amount of commands contained within it. Don't worry about this, as you will only need to add a new block of code, rather than amend anything that is there. The code that must be added to enable full manual control over the screen brightness is as follows: | Once the file has been opened, you will be presented with a substantial amount of commands contained within it. Don't worry about this, as you will only need to add a new block of code, rather than amend anything that is there. The code that must be added to enable full manual control over the screen brightness is as follows: | ||
Line 39: | Line 38: | ||
{{warning|This code cannot just be placed anywhere in the file. It must be placed in a particular section in order to work. Please follow the instructions below to do so.}} | {{warning|This code cannot just be placed anywhere in the file. It must be placed in a particular section in order to work. Please follow the instructions below to do so.}} | ||
To find the correct place to insert the above commands, it is recommended to use the '''Find''' or '''Search''' functions provided by your editor. If your text editor does not have the ability to search, it will be necessary to manually scroll down to about the mid-way point (perhaps using the '''Page Down''' key) to locate the following code: | |||
To find the correct place | |||
</keyboard> | </keyboard> | ||
The overall section of the code should look like this: | The overall section of the code should look like this: | ||
Line 50: | Line 47: | ||
</keyboard> | </keyboard> | ||
<mouse> | <mouse> | ||
Once located, the new code above can be inserted between the </keybind> and </keyboard> codes. Press <enter> after the </keybind> code to provide a space to do so. Below is an example where this has taken place. The new code inserted has been <font color="green">'''highlighted in green'''</font color> for illustrative purposes: | Once located, the new code above can be inserted between the </keybind> and </keyboard> codes. Press <enter> after the </keybind> code to provide a space to do so. Below is an example where this has taken place. The new code inserted has been <font color="green">'''highlighted in green'''</font color> for illustrative purposes: | ||
Line 74: | Line 70: | ||
Once you have made the necessary amendments to the file, save the changes and close it. | Once you have made the necessary amendments to the file, save the changes and close it. | ||
Now logout and back in again for the changes to take effect. | Now logout and back in again for the changes to take effect. | ||
== | ==Example: volume keys (ALSA)== | ||
Once the file has been opened, you will be presented with a substantial amount of commands contained within it. Don't worry about this, as you will only need to add a new block of code, rather than amend anything that is there. The code that must be added to enable full manual control over the volume (i.e. to raise, lower, and mute it) is as follows: | Once the file has been opened, you will be presented with a substantial amount of commands contained within it. Don't worry about this, as you will only need to add a new block of code, rather than amend anything that is there. The code that must be added to enable full manual control over the volume (i.e. to raise, lower, and mute it) is as follows: | ||
Line 101: | Line 96: | ||
{{warning|This code cannot just be placed anywhere in the file. It must be placed in a particular section in order to work. Please follow the instructions below to do so.}} | {{warning|This code cannot just be placed anywhere in the file. It must be placed in a particular section in order to work. Please follow the instructions below to do so.}} | ||
To find the correct place to insert the above commands, it is recommended to use the '''Find''' or '''Search''' functions provided by your editor. If your text editor does not have the ability to search, it will be necessary to manually scroll down to about the mid-way point (perhaps using the '''Page Down''' key) to locate the following code: | |||
To find the correct place | |||
</keyboard> | </keyboard> | ||
The overall section of the code should look like this: | The overall section of the code should look like this: | ||
Line 111: | Line 104: | ||
</keyboard> | </keyboard> | ||
<mouse> | <mouse> | ||
Once located, the new code above can be inserted between the </keybind> and </keyboard> codes. Press <enter> after the </keybind> code to provide a space to do so. Below is an example where this has taken place. The new code inserted has been <font color="green">'''highlighted in green'''</font color> for illustrative purposes: | Once located, the new code above can be inserted between the </keybind> and </keyboard> codes. Press <enter> after the </keybind> code to provide a space to do so. Below is an example where this has taken place. The new code inserted has been <font color="green">'''highlighted in green'''</font color> for illustrative purposes: | ||
Line 133: | Line 125: | ||
</keyboard> | </keyboard> | ||
<mouse> | <mouse> | ||
Once you have made the necessary amendments to the file, save the changes and close it. | Once you have made the necessary amendments to the file, save the changes and close it. |
edits