2021-08-15 11:07:01 +00:00
|
|
|
# 1.7.0: Iggy 2024
|
2021-08-14 19:24:58 +00:00
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
![Iggy](./iggy.jpg)
|
|
|
|
|
2021-08-15 13:40:29 +00:00
|
|
|
Rofi 1.7.0 is another bug-fix release that also removes a lot of deprecated features. One of the biggest changes is
|
|
|
|
the removal of the (deprecated) xresources based configuration setup. With this removal, also a lot of hack-ish code has
|
|
|
|
been removed that tried to patch old config setups. While the deprecation might be frustrating for people who have not
|
|
|
|
yet converted to the new format, I hope for some understanding. Even though this move might not be popular, the
|
|
|
|
deprecation in previous releases and consequential removal of these options is needed for two reasons.
|
|
|
|
The most important one is to keep rofi maintainable and secondary to open possibility to overhaul the config system in
|
|
|
|
the future and with that fixing some long standing bugs and add new options that
|
2021-08-20 09:36:31 +00:00
|
|
|
where hindered by the almost 10 year old system, the new system has been around for more than 4 years.
|
2021-08-15 11:07:01 +00:00
|
|
|
|
2021-08-15 13:40:29 +00:00
|
|
|
Beside mostly bug-fixes and removal of deprecated options, we also improved the theming and added features to help in
|
|
|
|
some of the more 'off-script' use of rofi.
|
2021-08-14 19:24:58 +00:00
|
|
|
|
2021-08-19 18:21:44 +00:00
|
|
|
This release was made possible by many contributors, see below for a full list. Big thanks again to SardemFF7 and
|
2021-08-15 13:40:29 +00:00
|
|
|
TonCherAmi.
|
2021-08-14 19:24:58 +00:00
|
|
|
|
2021-08-15 13:40:29 +00:00
|
|
|
## File Browser
|
2021-08-14 19:24:58 +00:00
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
TonCherAmi made several very nice usability improvements to the file-browser. His changes allow you to define sorting
|
2021-08-15 13:40:29 +00:00
|
|
|
and ordering of the entries and changing the default start directory.
|
2021-08-15 11:07:01 +00:00
|
|
|
|
|
|
|
These options can be set using the new 'nested' configuration format that we are testing in rofi:
|
|
|
|
|
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
filebrowser {
|
|
|
|
/** Directory the file browser starts in. */
|
|
|
|
directory: "/some/directory";
|
|
|
|
/**
|
|
|
|
* Sorting method. Can be set to:
|
|
|
|
* - "name"
|
|
|
|
* - "mtime" (modification time)
|
|
|
|
* - "atime" (access time)
|
|
|
|
* - "ctime" (change time)
|
|
|
|
*/
|
|
|
|
sorting-method: "name";
|
|
|
|
/** Group directories before files. */
|
|
|
|
directories-first: true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
## File Completion
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
In rofi 1.7.0 a long awaited patch I wrote many years ago landed into the rofi.
|
2021-08-19 12:06:36 +00:00
|
|
|
This patch adds some basic completion support by chaining modi. Currently it
|
2021-08-17 15:27:28 +00:00
|
|
|
only supports chaining the FileBrowser mode. This allows you to launch an
|
|
|
|
application with a file as argument. This is currently supported in the Run
|
|
|
|
and the DRun modi by pressing the `Control-l` keybinding. For the Run mode it
|
|
|
|
will add it as first argument, in DRun it only works if the Desktop file
|
|
|
|
indicates support for this.
|
2021-08-16 19:03:22 +00:00
|
|
|
|
|
|
|
![completer](./complete.gif)
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This is not the final implementation, but a first investigation in how to
|
|
|
|
add/extend this feature. Ideally you can have multiple completers (including
|
|
|
|
custom ones) you can choose from.
|
2021-08-16 19:03:22 +00:00
|
|
|
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
## Timeout actions
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
You can now configure an action to be taken when rofi has not been interacted
|
|
|
|
with for a certain amount of seconds. You can specify a keybinding to trigger
|
|
|
|
after X seconds.
|
2021-08-15 11:07:01 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This option can be set using the new 'nested' configuration format that we are
|
|
|
|
testing in rofi:
|
2021-08-15 11:07:01 +00:00
|
|
|
|
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
timeout {
|
|
|
|
delay: 15;
|
|
|
|
action: "kb-cancel";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-08-15 13:40:29 +00:00
|
|
|
This setting will close rofi after 15 seconds of no interaction.
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
timeout {
|
|
|
|
delay: 5;
|
|
|
|
action: "kb-accept";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
This setting will accept the current selection after 5 seconds of no
|
|
|
|
interaction.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
## Background image and gradients
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
To improve theming the `background-image` property was added with support for
|
|
|
|
setting images `url()` or a gradient `linear-gradient()`.
|
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
```css
|
|
|
|
window {
|
|
|
|
background-image: url("/tmp/i3.png", both);
|
|
|
|
}
|
|
|
|
element {
|
|
|
|
children: [element-icon, element-text];
|
|
|
|
background-image: linear-gradient(to bottom, black/20%, white/20%, black/10%);
|
|
|
|
}
|
|
|
|
```
|
2021-08-14 19:24:58 +00:00
|
|
|
|
2021-08-15 13:15:53 +00:00
|
|
|
The below screenshot shows both background image and gradients.
|
|
|
|
|
|
|
|
![background image](./background-image.png)
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Or a more subtle change is the gradient on the tabs here:
|
|
|
|
|
|
|
|
![iggy-theme](./iggy-theme.png)
|
|
|
|
|
2021-08-15 13:15:53 +00:00
|
|
|
|
|
|
|
## Clickable button and icons
|
|
|
|
|
|
|
|
```css
|
|
|
|
icon-paste {
|
|
|
|
expand: false;
|
|
|
|
filename: "gtk-paste";
|
|
|
|
size: 24;
|
|
|
|
vertical-align: 0.5;
|
|
|
|
action: "kb-primary-paste";
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
button-paste {
|
|
|
|
expand: false;
|
|
|
|
content: "My Clickable Message";
|
|
|
|
vertical-align: 0.5;
|
|
|
|
action: "kb-primary-paste";
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
The screenshot below shows a non-squared image and clickable buttons (the close icon in the top right)
|
2021-08-15 13:15:53 +00:00
|
|
|
|
|
|
|
![rofi icons](./rofi-icons.png)
|
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
# Changelog
|
|
|
|
|
|
|
|
* ADD: -steal-focus option.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Explicitly steal focus from from the current window and restore it on closing.
|
|
|
|
Enabling this might break the window switching mode.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Config] Add nested configuration option support.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Allow for nested configuration options, this allows for options to be grouped.
|
|
|
|
|
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
timeout {
|
|
|
|
delay: 15;
|
|
|
|
action: "kb-cancel";
|
|
|
|
}
|
|
|
|
combi {
|
|
|
|
display-name: "Combi";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
* ADD: [Config] Support for handling dynamic config options.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
A quick work-around for handling old-style dynamic options. This should be resolved when all options are
|
|
|
|
converted to the new (internal) config system.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [DRun] Add fallback icon option.
|
2021-08-17 15:27:28 +00:00
|
|
|
This option allows you to set a fallback icon from applications.
|
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
application_fallback_icon: "my-icon";
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
* ADD: [IconFetcher] Find images shipped with the theme.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
If you have an icon widget you can specify an image that exists in the theme directory.
|
|
|
|
```css
|
|
|
|
|
|
|
|
window {
|
|
|
|
background-image: url("iggy.jpg", width);
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [DRun] Add support for passing file (using file-browser) completer for desktop files that support his.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
See above.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [DRun] Support for service files.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Support KDE service desktop files.
|
|
|
|
|
|
|
|
* ADD: [FileBrowser] Allow setting startup directory (#1325)
|
|
|
|
* ADD: [FileBrowser]: Add sorting-method. (#1340)
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [FileBrowser] Add option to group directories ahead of files. (#1352)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
See above.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Filtering] Add prefix matching method. (#1237)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This matching method matches each entered word to start of words in the target
|
|
|
|
entry.
|
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
* ADD: [Icon] Add option to square the widget.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
By default all icons are squared, this can now be disabled. The icon will
|
|
|
|
occupy the actual space the image occupies.
|
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
* ADD: [Icon|Button] Make action available on icon, button and keybinding name.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
See above.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [KeyBinding] Add Ctrl-Shift-Enter option. (#874)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This combines the custom and alt keybinding. Allowing a custom command to be
|
|
|
|
launched in terminal.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [ListView]-hover-select option. (#1234)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Automatically select the entry under the mouse cursor.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Run] Add support for passing file (using file-browser) completer.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
See above.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Textbox] Allow theme to force markup on text widget.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Force markup on text widgets.
|
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
* ADD: [Theme] theme validation option. (`-rasi-validate`)
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [View] Add support for user timeout and keybinding action.
|
|
|
|
* ADD: [Widget] Add cursor property (#1313)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Add support for setting the mouse cursor on widgets.
|
|
|
|
For example the entry cursor on the textbox, or click hand cursor on the entry.
|
|
|
|
|
|
|
|
```css
|
|
|
|
element,element-text,element-icon, button {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Widget] Add scaling option to background-image.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Allows you to scale the `background-image` on width, height and both.
|
|
|
|
See above example.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Widget] Add support background-image and lineair gradient option.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
See above.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* ADD: [Window] Add pango markup for window format (#1288)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Allows you to use pango-markup in the window format option.
|
|
|
|
|
|
|
|
|
2021-08-17 16:18:35 +00:00
|
|
|
* ADD: [Window] Allow rofi to stay open after closing window.
|
|
|
|
|
|
|
|
```css
|
|
|
|
configuration {
|
|
|
|
window {
|
|
|
|
close-on-delete: false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [DSL] Move theme reset into grammar parser from lexer.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Given how the lexer and the grammar parser interact, the reset did not happen at
|
|
|
|
the right point in the parsing process, causing unexpected behaviour.
|
|
|
|
|
2021-08-15 11:07:01 +00:00
|
|
|
* FIX: [Drun]: fix sorting on broken desktop files. (thanks to nick87720z)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Broken desktop files could cause a rofi crash.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [File Browser]: Fix escaping of paths.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Fix opening files with special characters that needs to be escaped.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [ListView] Fix wrong subwidget name.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
Fixes theming of `element-index`.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [Script] Don't enable custom keybindings by default.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
The quick switch between modi was broken when on a script mode. This now by default works,
|
|
|
|
unless the mode overrides this.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [TextBox] Fix height estimation.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This should fix themes that mix differently sized fonts.
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [Theme] widget state and inherited properties. This should help fixing some old themes with changes from 1.6.1.
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
An old pre-1.6.1 rasi theme should work with the following section added:
|
|
|
|
|
|
|
|
```css
|
|
|
|
element-text {
|
|
|
|
background-color: inherit;
|
|
|
|
text-color: inherit;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* FIX: [Widget] Fix rendering of border and dashes. (Thanks to nick87720z)
|
2021-08-17 15:30:43 +00:00
|
|
|
|
2021-08-17 15:27:28 +00:00
|
|
|
This fixes the long broken feature of dashed borders.
|
|
|
|
|
|
|
|
```css
|
|
|
|
message {
|
|
|
|
padding: 1px ;
|
|
|
|
border-color: var(separatorcolor);
|
|
|
|
border: 2px dash 0px 0px ;
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2021-08-20 14:09:09 +00:00
|
|
|
* FIX: [Build] Fix CI.
|
|
|
|
|
2021-08-23 08:19:28 +00:00
|
|
|
* FIX: [Theme] Discard old theme, when explicitly passing one on command line.
|
|
|
|
|
|
|
|
In previous version there was a bug when passing `-theme` on commandline did not discard old theme.
|
|
|
|
This caused problems loading themes (as it merged two themes instead of loading them).
|
|
|
|
|
|
|
|
To get old behaviour on commandline do:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
rofi -theme-str '@import "mytheme"' -show drun
|
|
|
|
````
|
|
|
|
|
2021-08-14 19:24:58 +00:00
|
|
|
* REMOVE: -dump-xresources
|
|
|
|
* REMOVE: -fullscreen
|
|
|
|
* REMOVE: -show-match
|
|
|
|
* REMOVE: Old xresources based configuration file.
|
|
|
|
* REMOVE: fake transparency/background option, part of theme now.
|
|
|
|
* REMOVE: xresources parsing via Xserver
|
2021-08-17 15:27:28 +00:00
|
|
|
* Remove: [Theme] Remove backwards compatiblity hack.
|
2021-08-14 19:24:58 +00:00
|
|
|
* DOC: Update changes to manpages
|
|
|
|
|
|
|
|
|
|
|
|
# Thanks
|
|
|
|
|
|
|
|
Big thanks to:
|
|
|
|
|
|
|
|
* Quentin Glidic
|
|
|
|
* a1346054
|
|
|
|
* Ian C
|
|
|
|
* TonCherAmi
|
|
|
|
* nick87720z
|
|
|
|
* Markus Grab
|
|
|
|
* Zachary Freed
|
|
|
|
* nickofolas
|
|
|
|
* unisgn
|
|
|
|
* Jas
|
|
|
|
* rahulaggarwal965
|
|
|
|
* Awal Garg
|
|
|
|
* Eduard Lucena
|
|
|
|
* Lars Wendler
|
|
|
|
|
2021-08-15 13:40:29 +00:00
|
|
|
Apologies if I mistyped or missed anybody.
|