Dave Davenport
e0a3067f69
[Config] Remove old unused options.
2021-06-08 23:04:19 +02:00
Dave Davenport
dc46457f71
Remove deprecated theme options
...
* color_window
* color_urgent
* color_active
* color_normal
2021-06-08 22:44:15 +02:00
Dave Davenport
1a9dac80a9
Remove some deprecated options.
...
* lines
* columns
* width
2021-06-08 22:33:23 +02:00
Dave Davenport
b478de3d7d
Remove deprecated option, fix typo in manpage.
2021-06-08 22:02:29 +02:00
Dave Davenport
d18a887f03
[Combi] Disable completer.
2021-06-08 21:20:09 +02:00
TonCherAmi
62ec84b5e6
[Doc] Document -drun-url-launcher. ( #1328 )
2021-06-08 20:25:05 +02:00
Dave Davenport
cb250fa73a
Add fallback icon option.
2021-06-08 20:21:28 +02:00
Dave Davenport
6178970499
[DRun] Only go to file completer if desktop file support url.
2021-06-08 19:35:51 +02:00
Dave Davenport
6b9de4644e
[DRun] Add file completer to drun mode.
...
Add icons to run mode.
2021-06-08 19:28:13 +02:00
Dave Davenport
0db6412ae2
[Doc,Config] Remove line-margin|padding and fix doc mistake.
...
*Deprecated* option.
2021-06-08 12:17:59 +02:00
TonCherAmi
c1244b066f
[FileBrowser] Allow setting startup directory ( #1325 )
2021-06-05 14:22:48 +02:00
Dave Davenport
2eefd9b191
[Run] Allow (Ctrl-L) to complete files using file-browser.
...
Merge old setup from #1116
issue: #1116 #659
2021-06-01 13:14:45 +02:00
Dave Davenport
3598ebe603
[Config] Quick hackish workaround for handling dynamic options from config file
...
Quick hackish workaround for having options that are added *after*
config file is parsed.
This needs to be replaced once the config system is revamped.
Fixes : #905
2021-06-01 12:17:59 +02:00
Dave Davenport
3b297ee80d
Re-indent the code using indenter.
2021-06-01 10:44:23 +02:00
Dave Davenport
5a7df38ccd
[Configuration] Remove old configuration format.
2021-06-01 10:43:25 +02:00
Dave Davenport
d857122251
[Script] Don't enable custom keybindings by default, script needs to enable this.
...
Having it on by default broke the default rofi workflow. Make it an
option now.
Fixes: #1286,#1226
2021-05-31 14:21:09 +02:00
Dave Davenport
f14c5c2ada
[X11Helper] Add exception for bspwm window placing above window.
...
fixes : #1169
2021-05-31 14:02:08 +02:00
Dave Davenport
ac179cd2d9
[DRun] Add support for service files
...
Untested as I do not have these files myself.
Issue: #1152
2021-05-30 23:21:42 +02:00
unisgn
c3e70d4e1a
add prefix matching method feature ( #1237 )
...
* add prefix matching method feature
* Update helper.c
* prefix matching regex memory leak fix
* prefix matching regex memory leak fix
Co-authored-by: francis <oxfrancis@outlook.com>
2021-05-29 13:39:31 +02:00
Jas
24dde58019
Implement pango markup for -window-format ( #1288 )
...
* Implement pango markup for -window-format
* Make sure role != null
Since g_markup_escape_text doesn't like null it seems
* Update formatting
To bring it more in line with surrounding code
* Address review comments
* Fix memory leaks
* Fix formatting
2021-05-29 13:36:34 +02:00
Dave Davenport
2c30035640
[DRun] Fix sorting when name is NULL.
...
Thanks to nick87720z
2021-05-23 00:31:38 +02:00
Dave Davenport
2b86ece655
Update links to irc.libera.chat
2021-05-23 00:24:06 +02:00
TonCherAmi
dc28a97437
Add cursor property ( #1313 )
...
* Change mouse cursor on widget hover
Currently only listview element and editbox are supported.
* Add cursor property
2021-05-23 00:17:27 +02:00
Dave Davenport
04c006a4a2
[FileBrowser] fix escaping of paths.
2021-05-10 21:34:17 +02:00
Dave Davenport
fa96f32846
More doxygen cleanups. (1 warning left I don't understand)
2021-05-05 22:39:03 +02:00
Dave Davenport
f69f8fcb7b
Cleanup code documentation.
2021-05-05 21:53:29 +02:00
Dave Davenport
37044dc27e
Remove -dump-xresources option update manpage.
2021-05-04 20:44:38 +02:00
Dave Davenport
2516173a3d
Remove parsing of xresource config settings via Xserver.
...
This option is deprecated.
2021-05-04 19:50:23 +02:00
Dave Davenport
67eda1a776
Remove -fullscreen option, deprecated by new theme format.
...
Use 'window {fullscreen: true;}' instead.
2021-05-02 20:15:58 +02:00
Dave Davenport
d539e6478a
Remove -show-match option, deprecated.
...
Use 'element {highlight: none;}' in theme/configuration to reproduce it.
2021-05-02 20:01:03 +02:00
rahulaggarwal965
e304dbc883
Added -hover-select option that automatically selects the entry under the cursor ( #1234 )
2021-04-13 11:45:20 +02:00
Dave Davenport
318a6d40ca
Add 'steal-focus' option instead of 'restore-focus' option.
...
Disable steal-focus by default.
Fixes : #1275
2021-04-13 11:35:34 +02:00
Dave Davenport
a3f12837cb
Partially fix switching between modi, does not work for script mode.
...
Issue: #1286
2021-04-10 23:04:05 +02:00
Dave Davenport
8ac9890e8b
[Listview] Check max_rows on nav_right/left.
...
Fixes : #1297
2021-04-10 22:26:37 +02:00
Dave Davenport
44d8320e5c
[Window] revert accidental changes to window.c
2021-03-29 13:59:26 +02:00
Dave Davenport
750dbad729
Add [no]focus restore option.
2021-03-27 16:28:27 +01:00
Dave Davenport
20d236100f
[window] do the focus_revert fix at the right place.
2021-03-02 18:20:57 +01:00
Dave Davenport
eb544b48bc
[Window] do not revert focus on window switch.
2021-03-02 17:20:59 +01:00
Dave Davenport
e9cf6fb2b0
Improve blur algorithm.
2021-02-16 01:46:04 +01:00
Dave Davenport
606d9d12bf
Test blurring of background image (screenshot/background/image).
...
window {
blur: {radius};
}
Does not work on true transparency.
2021-02-15 23:30:58 +01:00
Dave Davenport
4e363e0c3f
[Window] small fix to pass screen to stacking window list.
...
Issue: #1225
2021-02-13 13:08:39 +01:00
Dave Davenport
653f023b21
Small fix in log domain container
2021-02-03 22:03:29 +01:00
Dave Davenport
01935064d8
Add -rasi-validate
option.
...
Issue: #1260
2021-01-26 17:27:32 +01:00
Dave Davenport
9dd54ac6c6
[Textbox] Allow markup to be disabled in theme.
...
Change textbox for message from textbox to message-textbox.
Issue: #1255
2021-01-19 23:55:07 +01:00
Dave Davenport
75e361ecab
Reduce scope of variables.
2021-01-17 16:15:04 +01:00
Dave Davenport
519b2a22eb
Add check for input == NULL.
2021-01-17 16:09:58 +01:00
Dave Davenport
9313d7a8a0
[Textbox] Allow theme to force markup enabled on textbox.
...
rofi -theme-str 'prompt { markup: true; }' -show drun -display-drun '<i>d</i>ru<b>n</b>'
fixes : #1220
2020-12-28 22:45:58 +01:00
Dave Davenport
af6752c35d
[Textbox] When estimating height, set correct font first.
...
fixes : #1247
2020-12-27 21:25:06 +01:00
Quentin Glidic
2e18133667
xcb: Restore focus in more places
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-12-20 14:11:56 +01:00
Quentin Glidic
11b677b521
xcb: Nicer focus stealing in O-R mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-12-13 15:56:37 +01:00
Dave Davenport
ec858dd305
Revert "xcb: Steal focus in O-R mode"
...
This reverts commit 1c9d975dd2
.
Fixes : #1228
2020-12-09 16:04:04 +01:00
Quentin Glidic
1c9d975dd2
xcb: Steal focus in O-R mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-11-27 07:26:17 +01:00
Quentin Glidic
627bd43510
xcb: Ask for focus where possible
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-11-27 07:26:16 +01:00
Tim Gates
d27d7eb669
docs: fix simple typo, prefered -> preferred ( #1224 )
...
There is a small typo in source/xcb.c.
Should read `preferred` rather than `prefered`.
2020-11-15 00:14:02 +01:00
Dave Davenport
7061eb21ae
Indent round.
2020-11-03 23:57:02 +01:00
Dave Davenport
4878c5bd13
[RofiIconFetcher] Add missing free
2020-10-20 20:40:47 +02:00
Dave Davenport
deb1e6a208
[RofiIconFetcher] Switch to gdk-pixbuf.
2020-10-20 20:38:13 +02:00
Dave Davenport
6e98290335
[RofiIconFetcher] Do image checking in icon fetcher, use nkutils-enum
2020-10-18 22:01:49 +02:00
Dave Davenport
5994df7f04
[IconLoader] add optional gif loader.
2020-10-18 21:37:05 +02:00
Dave Davenport
d8a420c952
[FileBrowser] Small restructure.
2020-10-18 20:54:03 +02:00
Dave Davenport
08a40d13ce
[Icons] Check both small and big caps for extention.
2020-10-17 22:05:17 +02:00
Dave Davenport
cc5a1989d8
[RofiIconFetcher] Don't exit out on libjpeg error, but don't load image.
2020-10-17 21:59:12 +02:00
Dave Davenport
e00ef7d993
[FileBrowser] Save last directory.
2020-10-16 21:33:02 +02:00
Dave Davenport
10678e55d8
[FileBrowser] Prepend '@' before filename if link.
2020-10-16 21:10:04 +02:00
Dave Davenport
9a21040d0e
[FileBrowser] Add SVG as file type.
2020-10-16 20:22:27 +02:00
Dave Davenport
0d45686914
[FileBrowser] If link, use stat to check out type.
...
Fixes : #1214
2020-10-15 19:19:51 +02:00
Dave Davenport
eea8897501
Fix some of the documentation
2020-10-12 21:39:36 +02:00
Dave Davenport
585538b428
Try fixing build on meson of readdir dirent args.
2020-10-12 20:32:25 +02:00
Dave Davenport
519d4d2818
[FileBrowser] Add file browser modi.
2020-10-12 20:17:21 +02:00
Dave Davenport
b4bbce4af5
[Helper] Add -normalize-match option.
...
Decomposes string and remove accent characters before matching.
This makes o match ö, é match e and more.
It is not a perfect implementation but works.
Currently disables the match highlighting.
Fixes : #1119
2020-09-30 21:56:37 +02:00
Hpl4r
30fb1bd4e8
[HELP] Fix typo in help msgs ( #1198 )
2020-09-17 12:29:06 +02:00
Dave Davenport
7c331b130b
[Calc] Add min/max operator support to calc()
...
Fixes : #1172
2020-09-14 20:34:39 +02:00
Dave Davenport
011908e1ff
issue 1187: If error on launching application, show error message and return to list` ( #1193 )
...
* Show error message, then possibly pop back to main window.
Fix drun/run dialog to use this for command execution.
Issue #1187
* [Combi] When no line selected, handle using the first entry.
* [Window] Add execute on invalid input to window dialog.
* Update view.h doxygen docu
* Update manpage with running application changes.
2020-09-13 21:56:25 +02:00
Dave Davenport
3499e1dad0
[Theme] First attempt at more cleanups and nested media support.
...
First throw at nested media support.
Issue: #1189
2020-09-13 15:11:12 +02:00
Dave Davenport
0a3734dce4
[Theme] Fix @media printing in -dump-theme
.
2020-09-13 13:48:48 +02:00
Dave Davenport
31fc5c9d35
[Textbox] Try to fix estimated font height.
...
This was on newer pango 1 pixel off with actual font height.
This casues drawing issues.
Fixes : #1190
2020-09-13 10:24:59 +02:00
Dave Davenport
bff8948116
[DRun] Fix broken cache after URL type was added.
2020-09-09 22:46:18 +02:00
Dave Davenport
6a38f88e98
Split MENU_QUICK_SWITCH into MENU_CUSTOM_COMMAND/QUICK_SWITCH
2020-09-08 18:24:36 +02:00
nick87720z
96cd34d24f
Fix and optimize 20200908 ( #1184 )
...
* combi: Reuse own get_num_entries in self-init
* combi_mode_parse_switchers: Remove duplicated mode pointer
* combi_mode_parse_switchers: Regroup mode search lines
* combi_mode_result: Simplify switcher search quit
* mode_result: Check for mode switch actions before hook
These are over-mode actions, which should not be handled
in mode hooks at all.
2020-09-08 17:30:03 +02:00
Dave Davenport
88ac249d36
[Window] Try to clarify help.
...
Issue: #1183
2020-09-08 14:42:17 +02:00
Dave Davenport
f5bb9d2cbf
[Widget] Fix border drawing code.
...
Fixes : #1177
2020-09-05 11:12:54 +02:00
lbonn
e4e59b99ea
Fix an unsafe use of strchr in dmenu mode ( #1176 )
...
Found with valgrind
2020-09-02 15:46:44 +02:00
Dave Davenport
30735791b4
Run indenter.
2020-08-28 16:41:59 +02:00
Mike Dalessio
5bec191d2e
Follow Type=Link standard desktop entries with drun ( #1168 )
...
* [DRun] Introduce data structure changes for Link desktop entries
From the [freedesktop spec][1]:
> This specification defines 3 types of desktop entries:
> Application (type 1), Link (type 2) and Directory (type 3). To allow
> the addition of new types in the future, implementations should
> ignore desktop entries with an unknown type.
This commit adds an enum to capture these types, and adds `type` to
DRunModeEntry.
[1]: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
part of #1166
* [DRun] Sanity check Link entries and capture the URL
Note that we're introducing some logic that will differ depending on
the Desktop entry type (Application or Link). The logic is:
- if entry is Application type,
- then Exec is required
- and the value is saved in .exec
- and drun_mode_result calls exec_cmd_entry
- if entry is Link type,
- then URL is required (but is not saved in the DRunModeEntry)
- and drun_mode_result calls new function launch_link_entry
part of #1166
* [DRun] Launch desktop links via xdg-open
Note that this introduces a new dependency on xdg-open, which may not
be installed. In that case, rofi will display an error dialog
with something like:
"Failed to execute child process xdg-open (No such file or directory)"
which hopefully is explanatory enough for folks.
part of #1166
* Make drun options comments consistent and add a bit of whitespace
* [DRun] new config option drun-url-launcher for opening links
In previous commit, this was a hard-coded string.
part of #1166
2020-08-26 21:10:04 +02:00
Dave Davenport
97ac7c9348
[Matching] Make fuzzy matching non-greedy
2020-08-25 20:23:26 +02:00
Dave Davenport
4f1169e326
Add extra timing debug.
...
Issue: #1162
2020-08-19 22:44:55 +02:00
nick87720z
57ee69367d
micro-refactoring: widget.c ( #1148 )
...
* widget.c: microrefactoring
* widget.c: join enable/disable functions
2020-07-11 14:48:58 +02:00
Dave Davenport
641cd4ef46
[Widget] Fix inconsistency in argument checking.
2020-07-09 17:47:32 +02:00
Dave Davenport
fc0ea0b22e
Update changelog a bit.
2020-07-05 11:41:04 +02:00
nick87720z
e52094ee7a
Widget bg draw ( #1147 )
...
* Improved background draw code
- Better to read (precalculated coordinates)
- Unnecessary line_to in the end
- Don't use radius in calculations if zero
* Background draw - separate rounded rect function
* Limit background & border overlap size
Overlap is too good against artifacts when stiching antialiased areas to
be avoided, unless intermediate image is used for additive stiching. But
it doesn't look good with transparent borders, when overlaping background
is visible. It seems, that 1px overlap is right enough to completely
prevent artifacts. Though things may differ if one if side is 1px or
even 0px, while adjacent is still enough thick.
* Style: alignment, less noise, limit var scope
2020-06-17 14:10:48 +02:00
Dave Davenport
bf17e1c65e
When no dpi set (-1) set the default one for fonts handling.
2020-06-09 22:51:44 +02:00
nick87720z
fb2ba8ada3
Millimeter support for distance ( #1144 )
2020-06-09 22:19:43 +02:00
nick87720z
e275ed2283
Again final workaround for #303 ( #1142 )
2020-06-09 17:17:50 +02:00
Quentin Glidic
3d5f0f086c
script: Fix parsing of extras ( #1141 )
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-06-06 18:32:14 +02:00
nick87720z
ae701ce54e
Entry info was not used at entry selection ( #1140 )
2020-06-06 18:28:39 +02:00
Dave Davenport
4821320833
[Listview] Try to fix sizing of barview.
...
Issue: #1137
2020-06-02 09:17:06 +02:00
Dave Davenport
da8c666e80
[Script] Initialize info entry. Don't pass entry at custom input.
...
Fixes : #1138
2020-05-30 10:44:37 +02:00
Dave Davenport
1342b733af
[Script] Add 'info' row option, that gets passed to ROFI_INFO environment.
2020-05-24 19:10:49 +02:00
Dave Davenport
0e880e76a2
[Window] On window name list, Check if we go out of range.
2020-05-24 17:14:12 +02:00
Dave Davenport
3604b12fde
Add check that looks if rofi is running inside rofi script mode.
2020-05-21 09:35:55 +02:00