| 1 | # General Usage |
| 2 | |
| 3 | You can run bottom with: |
| 4 | |
| 5 | ```bash |
| 6 | btm |
| 7 | ``` |
| 8 | |
| 9 | For help regarding the command-line options, use: |
| 10 | |
| 11 | ```bash |
| 12 | # For a simple overview of flags |
| 13 | btm -h |
| 14 | |
| 15 | # For more details |
| 16 | btm --help |
| 17 | ``` |
| 18 | |
| 19 | You can also see keybinds and basic usage details in bottom by pressing ++question++, which will open a help menu. |
| 20 | |
| 21 | ## Features |
| 22 | |
| 23 | ### Expansion |
| 24 | |
| 25 | By default, bottom is somewhat like a dashboard - a bunch of different widgets, all showing different things, and they all cram together to fit into one terminal. |
| 26 | |
| 27 | If you instead just want to see _one_ widget - maybe you want to look at a graph in more detail, for example - you can "expand" the currently selected |
| 28 | widget using the ++e++ key, which will hide all other widgets and make that widget take up all available terminal space. |
| 29 | |
| 30 | You can leave this state by either pressing ++e++ again or pressing ++esc++. |
| 31 | |
| 32 | ### Widget selection |
| 33 | |
| 34 | To allow for widget-specific keybindings and expansion, there is the idea of _widget selection_ in bottom, where you can focus on a specific widget to work with it. |
| 35 | This can be done with the mouse (just click on the widget of interest) or keyboard (ex: ++ctrl+"Direction"++, see [Key bindings](#key-bindings) for alternatives). |
| 36 | |
| 37 | ## Key bindings |
| 38 | |
| 39 | These are global or common keyboard shortcuts for the application, which you can see in-app through the ++question++ shortcut. |
| 40 | Note that key bindings are generally case-sensitive. |
| 41 | |
| 42 | | Binding | Action | |
| 43 | | ------------------------------------------------------------ | ------------------------------------------------------------ | |
| 44 | | ++q++, ++Q++, ++ctrl+c++ | Quit | |
| 45 | | ++esc++ | Close dialog windows, search, widgets, or exit expanded mode | |
| 46 | | ++ctrl+r++ | Reset display and any collected data | |
| 47 | | ++f++ | Freeze/unfreeze updating with new data | |
| 48 | | ++question++ | Open help menu | |
| 49 | | ++e++ | Toggle expanding the currently selected widget | |
| 50 | | ++ctrl+up++ <br/> ++shift+up++ <br/> ++K++ <br/> ++W++ | Select the widget above | |
| 51 | | ++ctrl+down++ <br/> ++shift+down++ <br/> ++J++ <br/> ++S++ | Select the widget below | |
| 52 | | ++ctrl+left++ <br/> ++shift+left++ <br/> ++H++ <br/> ++A++ | Select the widget on the left | |
| 53 | | ++ctrl+right++ <br/> ++shift+right++ <br/> ++L++ <br/> ++D++ | Select the widget on the right | |
| 54 | | ++up++ , ++k++ | Move up within a widget | |
| 55 | | ++down++ , ++j++ | Move down within a widget | |
| 56 | | ++left++ <br/> ++h++ <br/> ++alt+h++ | Move left within a widget | |
| 57 | | ++right++ <br/> ++l++ <br/> ++alt+l++ | Move right within a widget | |
| 58 | | ++g+g++ , ++home++ | Jump to the first entry | |
| 59 | | ++G++ , ++end++ | Jump to the last entry | |
| 60 | | ++page-up++ , ++page-down++ | Scroll up/down a table by a page | |
| 61 | | ++ctrl+u++ | Scroll up a table by half a page | |
| 62 | | ++ctrl+d++ | Scroll down a table by half a page | |
| 63 | |
| 64 | ## Mouse bindings |
| 65 | |
| 66 | | Binding | Action | |
| 67 | | ----------- | ------------------ | |
| 68 | | ++lbutton++ | Selects the widget | |