Skip to content

Commit

Permalink
Merge pull request #105 from philipp8101/master
Browse files Browse the repository at this point in the history
added readme about theme compatibility
  • Loading branch information
svenstaro authored Aug 6, 2023
2 parents 46befae + 223ac4a commit fc3f4fe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,26 @@ $ make install
- Use the `-hint-result` option to specify the text of the hint before result.
- Use the `-hint-welcome` option to specify the welcome text.

## Custom Rofi Theme compatibility

If you are using a custom theme with rofi (e.g. `rofi -show drun -theme ~/.config/rofi/mytheme.rasi`) and don't see the result of the calculation, that's because the rofi-calc mode relies on the `message` widget that might be hidden by some themes.

In your `mytheme.rasi` file or any file, it might `@import`, look for the following
```
mainbox {
children: [...]
}
```
make sure the list contains `message`<br>
for example
```
mainbox {
children: [inputbar, message, listview]
}
```
Reference Rofi docs: [Layout](https://github.com/davatorium/rofi/blob/next/doc/rofi-theme.5.markdown#layout), [Base Widgets](https://github.com/davatorium/rofi/blob/next/doc/rofi-theme.5.markdown#base-widgets), [Children](https://github.com/davatorium/rofi/blob/next/doc/rofi-theme.5.markdown#children)


## Development

If you're developing this, it might be helpful to start rofi directly with a locally compiled plugin like this:
Expand Down

0 comments on commit fc3f4fe

Please sign in to comment.