Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:guides:xbindkeys [2014/06/21 00:55] – sidini | en:guides:xbindkeys [2020/09/23 16:14] (current) – [Adding xbindkeys in autostarted applications] hgt | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Xbindkeys ====== | ====== Xbindkeys ====== | ||
| - | |||
| - | === Table of contents === | ||
| - | |||
| - | * Introduction | ||
| - | * Installing | ||
| - | * Configuration and detecting key codes | ||
| - | * Examples and tips | ||
| - | * References | ||
| - | |||
| - | ---- | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | Xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Window. It links commands to keys or mouse buttons, using a configuration file. It' | + | Xbindkeys is a program that allows you to launch shell commands with your keyboard or your mouse under X Windows. It links commands to keys or mouse buttons using a configuration file. It' |
| - | It is useful | + | It is handy to make "dead keys" of a multimedia keyboard work. (ex: play, pause, browser homepage...) |
| ---- | ---- | ||
| Line 25: | Line 15: | ||
| ===== Installing ===== | ===== Installing ===== | ||
| - | Use __tazpkg__ | + | Use // |
| # tazpkg get-install xbindkeys | # tazpkg get-install xbindkeys | ||
| - | + | ||
| ---- | ---- | ||
| ===== Configuration and detecting key codes ===== | ===== Configuration and detecting key codes ===== | ||
| - | Xbindkeys uses a configuration file to link a command to a key on your keyboard. Usually this file is : //$HOME/.xbindkeyrc// | + | Xbindkeys uses a configuration file to link a command to a key on your keyboard. Usually this file is : '' |
| You can have a default one created by using : | You can have a default one created by using : | ||
| Line 53: | Line 43: | ||
| Mod2 + XF86HomePage | Mod2 + XF86HomePage | ||
| - | Now, close //xbindkeys// application to make changes on configuration file: | + | Now, close '' |
| $ killall xbindkeys | $ killall xbindkeys | ||
| - | Open //.xbindkeysrc// file on Leafpad (or on your favorite text editor) and copy the 3-line code above to the end of the file. | + | Open '' |
| - | We need to change the first code line to link the key code to a desired function. For example, if we want opening | + | We need to change the first code line to link the key code to a desired function. For example, if we want to open Midori when '' |
| " | " | ||
| Line 64: | Line 54: | ||
| Mod2 + XF86HomePage | Mod2 + XF86HomePage | ||
| - | Save and close the //.xbindkeysrc// file. Restart | + | Save and close the '' |
| - | To add other shortcuts, repeat the proceeding | + | To add other shortcuts, repeat the procedure |
| - | If you want to detect a multi-key shortcut code, like CTRL+F, use: | + | If you want to detect a multi-key shortcut code like CTRL+F, use: |
| $ xbindkeys -mk | $ xbindkeys -mk | ||
| Line 85: | Line 75: | ||
| ==== Adding xbindkeys in autostarted applications ==== | ==== Adding xbindkeys in autostarted applications ==== | ||
| - | In the //PCManFM// in your //home// folder search for hidden folder | + | In the **PCManFM** in your **home** folder search for hidden folder |
| # Fn Keys | # Fn Keys | ||
| xbindkeys & | xbindkeys & | ||
| - | Save and quit text editor. All custom shortcuts will stay after you reboot or switch off/on your machine. | + | Save and quit text editor. All custom shortcuts will stay after you reboot or switch off and on your machine. |
| + | To make this modification a global, edit ''/ | ||
| ---- | ---- | ||
| - | |||
| ===== Examples and tips ===== | ===== Examples and tips ===== | ||
| Line 183: | Line 173: | ||
| m:0x0 + c:107 | m:0x0 + c:107 | ||
| + | |||
| + | === Applications Menu (Start Menu) === | ||
| + | |||
| + | #Show Start Menu with left windows-key | ||
| + | " | ||
| + | m:0x50 + c:133 | ||
| + | Mod2+Mod4 + Super_L | ||
| + | |||
| + | #Show Start Menu with right windows-key | ||
| + | " | ||
| + | m:0x50 + c:134 | ||
| + | Mod2+Mod4 + Super_R | ||
| ---- | ---- | ||
| Line 216: | Line 218: | ||
| |Priority| | |Priority| | ||
| |Problems| | | |Problems| | | ||
| - | |How to Improve| | | + | |How to Improve| Add new rows like this ;-)| |
| - | |::: | Add new rows like this ;-)| | + | |
| - | |::: | | | + | |
| \\ | \\ | ||