1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[ReleaseNotes] Update title + add examples script.

This commit is contained in:
Dave Davenport 2020-08-25 21:35:43 +02:00
parent 3d531a9cfc
commit 120ce36055

View file

@ -1,12 +1,10 @@
# 1.6.0: # 1.6.0: The Masked Launcher
More then 2 years after the 1.5.0 release and a year after 1.5.4, we present rofi 1.6.0. This release More then 2 years after the 1.5.0 release and a year after 1.5.4, we present rofi 1.6.0. This release
is again focusses bug-fixing and improving the experience for themers and is again focusses bug-fixing and improving the experience for themers and
script developers. The script mode has been extended with many small requested tweaks to get it more script developers. The script mode has been extended with many small requested tweaks to get it more
on par with dmenu mode. For themers the listview has been made more flexible, allowing more fancy themes, on par with dmenu mode. For themers the listview has been made more flexible, allowing more fancy themes,
for examples mimicking Gnomes application launcher or albert. But also features as `calc()` has been for examples mimicking Gnomes application launcher or [albert](https://github.com/albertlauncher/albert).
added.
Big thanks to [SardemFF7](https://www.sardemff7.net/) and all the other Big thanks to [SardemFF7](https://www.sardemff7.net/) and all the other
contributors, without their support and contributions this release would not contributors, without their support and contributions this release would not
@ -16,7 +14,7 @@ have been possible.
## Script mode ## Script mode
Rofi now communicates some information back to the script using environment variables. Rofi now communicates some information back to the script using environment variables.
The most important one, is `ROFI_RETV`, this is equal to the return value in dmenu mode. The most important one, is `ROFI_RETV`, this is equal to the return value in dmenu mode.
It can have the following values: It can have the following values:
* **0**: Initial call of script. * **0**: Initial call of script.
@ -33,6 +31,28 @@ Some of the new features are:
* Pass extra information back on selection * Pass extra information back on selection
* Support for a custom delimiter * Support for a custom delimiter
* Support for dmenus no-custom option * Support for dmenus no-custom option
* Detect if launched from rofi
To test some of the features:
```bash
#!/usr/bin/env bash
if [ -z "${ROFI_OUTSIDE}" ]
then
echo "run this script in rofi".
exit
fi
echo -en "\x00no-custom\x1ftrue\n"
echo -en "${ROFI_RETV}\x00icon\x1ffirefox\x1finfo\x1ftest\n"
if [ -n "${ROFI_INFO}" ]
then
echo "my info: ${ROFI_INFO} "
fi
```
## Theme ## Theme
@ -73,7 +93,7 @@ element {
### Calculation support in theme format. ### Calculation support in theme format.
Rofi adds CSS like calculations in the CSS format for distances. Rofi adds CSS like calculations in the CSS format for distances.
You can now set the width of the window to the screen width minus a 10 pixels. You can now set the width of the window to the screen width minus a 10 pixels.
```css ```css