added troubleshooting to the readme (and fixed a small naming convention issue) (#39)
This commit is contained in:
parent
4a4b0a3343
commit
5896d1a14d
2 changed files with 21 additions and 2 deletions
21
README.md
21
README.md
|
@ -7,6 +7,7 @@
|
||||||
- [Prerequisites](#org727b3da)
|
- [Prerequisites](#org727b3da)
|
||||||
- [Installation](#orgdd31739)
|
- [Installation](#orgdd31739)
|
||||||
- [Usage](#org4a9b3c6)
|
- [Usage](#org4a9b3c6)
|
||||||
|
- [Troubleshooting](#something)
|
||||||
- [Contributing](#org12345)
|
- [Contributing](#org12345)
|
||||||
|
|
||||||
<a id="org4ab08b6"></a>
|
<a id="org4ab08b6"></a>
|
||||||
|
@ -91,6 +92,24 @@ then copy the built binary from `./target/release` to anywhere in `$PATH` (examp
|
||||||
|
|
||||||
Create a Config and then just do `eww`!
|
Create a Config and then just do `eww`!
|
||||||
|
|
||||||
|
<a id="something"></a>
|
||||||
|
|
||||||
|
# Troubleshooting
|
||||||
|
|
||||||
|
If you experience any issues, the following things should be tried:
|
||||||
|
|
||||||
|
- Try killing the eww daemon with `eww kill` and run again
|
||||||
|
- If you're running with `-d`, run without `-d` to see output, or have a look at ~/.cache/eww.log
|
||||||
|
- use `eww state`, to see the state of all variables
|
||||||
|
- use `eww debug`, to see the xml of your widget and other information
|
||||||
|
- update to the latest eww version
|
||||||
|
- sometimes hot reloading doesn't work. restart the widget in that case
|
||||||
|
|
||||||
|
If you're experiencing issues printing variables, try to print them in quotes, so e.g.
|
||||||
|
```
|
||||||
|
onchange="notify-send '{}'"
|
||||||
|
```
|
||||||
|
|
||||||
<a id="org12345"></a>
|
<a id="org12345"></a>
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
@ -100,5 +119,5 @@ If you want to contribute, like adding new widgets, features or subcommands, you
|
||||||
## Steps
|
## Steps
|
||||||
1. Fork this repo
|
1. Fork this repo
|
||||||
2. install dependencies ([Prerequisites](#org727b3da))
|
2. install dependencies ([Prerequisites](#org727b3da))
|
||||||
3. smash your head against the keyboard
|
3. smash your head against the keyboard from frustration (coding is hard)
|
||||||
4. open a pull request once you're finished.
|
4. open a pull request once you're finished.
|
||||||
|
|
|
@ -157,7 +157,7 @@ fn build_gtk_expander(bargs: &mut BuilderArgs) -> Result<gtk::Expander> {
|
||||||
});
|
});
|
||||||
Ok(gtk_widget)
|
Ok(gtk_widget)
|
||||||
}
|
}
|
||||||
/// @widget color button
|
/// @widget color-button
|
||||||
fn build_gtk_color_button(bargs: &mut BuilderArgs) -> Result<gtk::ColorButton> {
|
fn build_gtk_color_button(bargs: &mut BuilderArgs) -> Result<gtk::ColorButton> {
|
||||||
let gtk_widget = gtk::ColorButtonBuilder::new().build();
|
let gtk_widget = gtk::ColorButtonBuilder::new().build();
|
||||||
let on_change_handler_id: Rc<RefCell<Option<glib::SignalHandlerId>>> = Rc::new(RefCell::new(None));
|
let on_change_handler_id: Rc<RefCell<Option<glib::SignalHandlerId>>> = Rc::new(RefCell::new(None));
|
||||||
|
|
Loading…
Add table
Reference in a new issue