fix(docs): Improved launch section

This commit is contained in:
Michael Carlberg 2016-06-20 17:05:23 +02:00
parent 41c807afc2
commit fbe91c1b65

View File

@ -133,10 +133,13 @@ into the project.
When using the wrapper to start the bar in in your wm's autostart routine, make sure to include When using the wrapper to start the bar in in your wm's autostart routine, make sure to include
a kill directive before launching the bar. This is done to make sure that any previously spawned a kill directive before launching the bar. This is done to make sure that any previously spawned
processes gets terminated before before we launch the new ones. For example in processes gets terminated before before we launch the new ones.
`$HOME/.config/bspwmrc`:
Create an executable file containing the startup logic, for example `$HOME/.config/lemonbuddy/launch.sh`:
~~~ sh ~~~ sh
#!/usr/bin/env sh
# Terminate already running bar instances # Terminate already running bar instances
lemonbuddy_terminate noconfirm lemonbuddy_terminate noconfirm
@ -147,7 +150,23 @@ processes gets terminated before before we launch the new ones. For example in
echo "Bars launched..." echo "Bars launched..."
~~~ ~~~
If you are using i3, see [this issue](https://github.com/jaagr/lemonbuddy/issues/21) on how to display the bar. If you are using **bspwm**, add the following line to `bspwmrc`:
~~~ sh
$HOME/.config/lemonbuddy/launch.sh
~~~
If you are using **i3**, add the following line to your configuration:
~~~ sh
exec_always $HOME/.config/lemonbuddy/launch.sh
~~~
Remember to make it executable using:
~~~ sh
$ chmod +x $HOME/.config/lemonbuddy/launch.sh
~~~
## Configuration ## Configuration