2017-12-24 05:22:59 -05:00
|
|
|
|
# V1.5.0: The Hoff uses it.
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
After the last release turned out to be fairly large we are hopefully back to more regular, smaller releases.
|
|
|
|
|
This release focuses on squashing some bugs and hopefully improving the user experience.
|
|
|
|
|
Nevertheless this release also includes some new features.
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
Big thanks to [SardemFF7](https://www.sardemff7.net/), without whose help and contributions this release would not have been possible.
|
2018-01-02 03:33:55 -05:00
|
|
|
|
|
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
## New features
|
|
|
|
|
|
|
|
|
|
### Specify matching field
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
What field rofi should match on the drun view has been a source of [long discussions](https://github.com/DaveDavenport/rofi/pull/690),
|
|
|
|
|
which resulted in new options to specify, which fields rofi should match against in either drun or window mode.
|
2017-12-24 05:22:59 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
`-drun-match-fields` *field1*,*field2*,...
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
When using drun, match only with the specified Desktop entry fields.
|
|
|
|
|
The different fields are:
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
* **name**: the application's name
|
|
|
|
|
* **generic**: the application's generic name
|
|
|
|
|
* **exec**: the application's executable
|
|
|
|
|
* **categories**: the application's categories
|
|
|
|
|
* **comment**: the application comment
|
|
|
|
|
* **all**: all of the above
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
Default: *name,generic,exec,categories*
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
`-window-match-fields` *field1*,*field2*,...
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
When using window mode, match only with the specified fields.
|
|
|
|
|
The different fields are:
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
* **title**: window's title
|
|
|
|
|
* **class**: window's class
|
|
|
|
|
* **role**: window's role
|
|
|
|
|
* **name**: window's name
|
|
|
|
|
* **desktop**: window's current desktop
|
|
|
|
|
* **all**: all of the above
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
Default: *all*
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
### Pass extra properties in script mode
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
To further improve script mode, support for passing properties has been added.
|
|
|
|
|
You can now set the `prompt`, a `message` or use `markup` and `active`/`urgent` colors from the script itself.
|
2017-12-24 05:22:59 -05:00
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
E.g. to set the prompt from a bash mode script:
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
echo -en "\x00prompt\x1ftesting\n"
|
|
|
|
|
```
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
Or to mark the first 4 rows urgent and add a message:
|
2017-12-31 08:32:55 -05:00
|
|
|
|
```bash
|
|
|
|
|
echo -en "\x00urgent\x1f0-3\n"
|
|
|
|
|
echo -en "\0message\x1fSpecial <b>bold</b> message\n"
|
|
|
|
|
```
|
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
The `urgent` and `active` syntax is identical to the dmenu command-line argument.
|
2017-12-24 05:22:59 -05:00
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
### Negated matching
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
The matching engine has been extended. It’s now possible to negate parts of the query. Searching for `deconz -sh` will list all
|
2017-12-31 08:32:55 -05:00
|
|
|
|
fields that match `deconz` but do not contain `sh`.
|
|
|
|
|
|
|
|
|
|
![match](rofi-match.png)
|
|
|
|
|
|
|
|
|
|
![match negated](rofi-neg-match.png)
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
|
|
|
|
### Hashtag rofi?
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
In themes the '#' prefix before the element name is now optional.
|
|
|
|
|
As well as not being needed, it made the multi-selector look weird.
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
Example:
|
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
```css
|
|
|
|
|
entry,prompt {
|
|
|
|
|
background-color: DarkRed;
|
|
|
|
|
text-color: White;
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2017-12-26 04:10:40 -05:00
|
|
|
|
## Backward incompatible changes
|
|
|
|
|
|
|
|
|
|
### Mouse bindings
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
Mouse button and scroll bindings are now separated and naming has changed.
|
2017-12-26 04:10:40 -05:00
|
|
|
|
|
|
|
|
|
For the 3 base buttons:
|
|
|
|
|
|
|
|
|
|
- `Mouse1` is now `MousePrimary`
|
|
|
|
|
- `Mouse2` is now `MouseMiddle`
|
2018-01-12 16:46:54 -05:00
|
|
|
|
- `Mouse3` is now `MouseSecondary`
|
2017-12-26 04:10:40 -05:00
|
|
|
|
|
|
|
|
|
For the scroll wheel:
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
- `Mouse4` is now `ScrollUp`
|
|
|
|
|
- `Mouse5` is now `ScrollDown`
|
|
|
|
|
- `Mouse6` is now `ScrollLeft`
|
|
|
|
|
- `Mouse7` is now `ScrollRight`
|
2017-12-26 04:10:40 -05:00
|
|
|
|
|
|
|
|
|
For extra buttons:
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
- `Mouse8` is now `MouseBack`
|
|
|
|
|
- `Mouse9` is now `MouseForward`
|
|
|
|
|
- Above 10, you have to use the platform-specific `MouseExtra<number>` (replace `<number>`).
|
2017-12-26 04:10:40 -05:00
|
|
|
|
|
2017-12-24 05:22:59 -05:00
|
|
|
|
## Bug fixes
|
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
### Prompt colon
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
This is a controversial one, abeing the cause of heated [discussions](https://github.com/DaveDavenport/rofi/issues/637) in the past.
|
|
|
|
|
The prompt string of rofi is now left unmodified. Themes, like the default theme, can re-add the colon if desired.
|
2017-12-31 08:32:55 -05:00
|
|
|
|
|
|
|
|
|
```css
|
|
|
|
|
inputbar {
|
|
|
|
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
|
|
|
|
}
|
|
|
|
|
textbox-prompt-colon {
|
|
|
|
|
expand: false;
|
|
|
|
|
str: ":";
|
2018-01-02 03:19:14 -05:00
|
|
|
|
margin: 0px 0.3em 0em 0em ;
|
2017-12-31 08:32:55 -05:00
|
|
|
|
}
|
|
|
|
|
```
|
2017-12-24 05:22:59 -05:00
|
|
|
|
|
2018-01-02 03:23:54 -05:00
|
|
|
|
Results in:
|
|
|
|
|
|
|
|
|
|
![rofi colon](rofi-colon.png)
|
|
|
|
|
|
2017-11-05 15:04:46 -05:00
|
|
|
|
### History size
|
|
|
|
|
|
2018-01-12 16:46:54 -05:00
|
|
|
|
By frequent request, you can now tweak the size of the history each modi keeps. While not recommended to change it as it
|
2017-12-24 05:22:59 -05:00
|
|
|
|
can cause performance issues, this allows power users to tweak it to their liking.
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
2018-01-02 03:19:14 -05:00
|
|
|
|
```
|
|
|
|
|
rofi.max-history-size: 500
|
|
|
|
|
```
|
2017-11-05 15:04:46 -05:00
|
|
|
|
|
|
|
|
|
## Full Changelog
|
2018-01-02 03:33:55 -05:00
|
|
|
|
- Rofi 1.4.2 doesn't capture ←, ↑, →, ↓ binding to keys to work in combination with Mode_switch (#744)
|
2017-12-24 05:22:59 -05:00
|
|
|
|
- Add konsole to list of sensible terminals. (#739)
|
|
|
|
|
- Allow drun to filter based on comment field. (#733)
|
2017-11-05 15:04:46 -05:00
|
|
|
|
- Add prompt widget to default theme.
|
|
|
|
|
- Add manpage for rofi-theme-selector.
|
|
|
|
|
- Dump theme without # prefix and separator .
|
|
|
|
|
- Fix issue with xnomad and -4 placing. (#683)
|
|
|
|
|
- DRun obey OnlyShowIn and NotShowIn properties.
|
|
|
|
|
- Store default theme in rofi binary using GResources.
|
|
|
|
|
- Add extra margin between prompt and entry.
|
|
|
|
|
- Remove colon from prompt. (#637)
|
|
|
|
|
- Add support for passing extra properties in script mode.
|
|
|
|
|
- Better error message on invalid argb syntax.
|
|
|
|
|
- Fix default theme border.
|
|
|
|
|
- Make '#' in the parser optional.
|
|
|
|
|
- Update themes.
|
|
|
|
|
- Add -drun/window-match-fields option (thx to Askrenteam) for drun/window menu. (#690/#656)
|
|
|
|
|
- Implement negated match. (#665)
|
|
|
|
|
- Fix parsing of non-existing fields. (#700)
|
|
|
|
|
- rofi-theme-selector fixes.
|
|
|
|
|
- Fix spelling error (thx to jmkjaer)
|
|
|
|
|
- Fix test on i686/arm. (#692)
|
|
|
|
|
- Fix error in theme manpage. (#686)
|
|
|
|
|
- Allow history size to be specified. (#613)
|
|
|
|
|
- Fix drun history implementation. (#579)
|
|
|
|
|
- Add gentoo install instruction. (#685)
|