[doc] add code-block type

This commit is contained in:
tobi-wan-kenobi 2020-05-05 20:43:10 +02:00
parent d2f796baa9
commit 1c5a785003
2 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ see :doc:`FAQ` for details on this
Example usage: Example usage:
.. code-block:: .. code-block:: bash
bar { bar {
status_command <path>/bumblebee-status \ status_command <path>/bumblebee-status \

View file

@ -4,7 +4,7 @@ Introduction
Installation Installation
---------------- ----------------
.. code-block:: .. code-block:: bash
# from git (development snapshot) # from git (development snapshot)
@ -35,7 +35,7 @@ Normal usage
In your i3wm configuration, modify the *status_command* for your i3bar In your i3wm configuration, modify the *status_command* for your i3bar
like this: like this:
.. code-block:: .. code-block:: bash
bar { bar {
status_command <path to bumblebee-status/bumblebee-status> \ status_command <path to bumblebee-status/bumblebee-status> \
@ -47,7 +47,7 @@ like this:
You can retrieve a list of modules (and their parameters) and themes by You can retrieve a list of modules (and their parameters) and themes by
entering: entering:
.. code-block:: .. code-block:: bash
$ cd bumblebee-status $ cd bumblebee-status
$ ./bumblebee-status -l themes $ ./bumblebee-status -l themes
@ -55,27 +55,27 @@ entering:
To change the update interval, use: To change the update interval, use:
.. code-block:: .. code-block:: bash
$ ./bumblebee-status -m <list of modules> -p interval=<interval in seconds> $ ./bumblebee-status -m <list of modules> -p interval=<interval in seconds>
The update interval can also be changed on a per-module basis, like The update interval can also be changed on a per-module basis, like
this: this:
.. code-block:: .. code-block:: bash
$ ./bumblebee-status -m cpu memory -p cpu.interval=5s memory.interval=1m $ ./bumblebee-status -m cpu memory -p cpu.interval=5s memory.interval=1m
All modules can be given “aliases” using ``<module name>:<alias>``, by All modules can be given “aliases” using ``<module name>:<alias>``, by
which they can be parametrized, for example: which they can be parametrized, for example:
.. code-block:: .. code-block:: bash
$ ./bumblebee-status -m disk:root disk:home -p root.path=/ home.path=/home $ ./bumblebee-status -m disk:root disk:home -p root.path=/ home.path=/home
As a simple example, this is what my i3 configuration looks like: As a simple example, this is what my i3 configuration looks like:
.. code-block:: .. code-block:: bash
bar { bar {
font pango:Inconsolata 10 font pango:Inconsolata 10