Commit graph

4001 commits

Author SHA1 Message Date
Aleksei Bavshin
53d99c49ad [Wayland] Support wl_output version 4.
- Double-buffer the properties.
 - Fetch name, geometry and transform properties - we need these to
   calculate DPI and to implement `monitor` configuration field.
2024-01-05 17:10:52 +01:00
Aleksei Bavshin
ad784f1f0d [Window] Set mode type for Wayland implementation.
Reformat to match other Mode definitions.

The `.type` is required after d27cee8.
2024-01-05 17:10:52 +01:00
Aleksei Bavshin
9e09a0729d Restrict WM detection to XCB backend
Fixes `rofi --help` after e409322
2024-01-05 17:10:52 +01:00
Liao Junxuan
b29518f034 Enable pango markup for -window-format in wayland
Strings are already escaped when necessary. The x11 counterpart was implemented
in davatorium/rofi#1288.
2023-12-20 15:52:05 +01:00
MoetaYuko
36621af0e4 [IconFetcher] Re-introduce icon scaling on wayland
This time, preserving ABI compatibility with upstream rofi

Fixes #96
2023-11-30 16:49:47 +01:00
lbonn
102e6de7a9 Revert "[IconFetcher] Apply scaling when loading images and icons"
This reverts commit 2c0fcf9da9.
2023-11-30 16:49:47 +01:00
ddmetz
78888dd80d hover select 2023-11-30 10:36:47 +01:00
Wim Looman
5cd1e3ca2b Pass the xkb group (a.k.a. layout) to nk_bindings
The `group` is used by xkb to support switching between multiple
layouts, without telling `nk_bindings` about this rofi always sees key
presses as if they're in the first layout.
2023-10-11 21:24:16 +02:00
lbonn
b4f91d5687 [Doc] Fix github issue templates 2023-10-11 00:30:39 +02:00
lbonn
9d11a2b4a9 [CI] Better test xcb and wayland-only builds 2023-09-25 15:52:39 +02:00
lbonn
b8dedc8836 Doc: Clarify issue template and CONTRIBUTING 2023-09-24 01:57:11 +02:00
lbonn
7c79169309 Wayland: fix wayland-only mode again 2023-09-24 01:57:11 +02:00
lbonn
bb85634182 Merge remote-tracking branch 'upstream/next' into wayland 2023-09-14 17:37:40 +02:00
Nikita Zlobin
a53daa68c4 [View|Textbox] cleanups to drawing code 2023-08-29 21:36:03 +02:00
Nikita Zlobin
9b2b52b13e Clip text with extents rectangle
Fonts are not ideal, some characters have mismatch between reported and
painted size.
2023-08-27 21:10:00 +02:00
Dave Davenport
51a8df9da5 [Rofi] Expand cache-dir
Fixes: #1892
2023-08-24 19:46:29 +02:00
Gutyina Gergő
b41654f903
Fix typos in dmenu docs (#1891) 2023-08-23 22:19:07 +02:00
Nikita Zlobin
c6f3cfb7d7 Support single quotes for strings as in CSS 2023-08-21 18:54:21 +02:00
Dave Davenport
664f1b9297 [Theme] Fix missing doxygen documentation 2023-08-15 19:34:11 +02:00
Dave Davenport
6caaf36df6 [Theme] Fix opening abs path if no/wrong extension (backward comp.) 2023-08-15 19:28:33 +02:00
Dave Davenport
a7aa8224cb [rofi-theme] fix typo 2023-08-15 19:16:26 +02:00
Dave Davenport
ad06fb9516 [Theme] Try to fix importing of theme.
- Fix the two place of resolving into one method.
- Do not accept file in CWD.
- Prefer file if it exists in same directory as parent file that
  imported it.

fixes: #1889
2023-08-15 19:12:14 +02:00
Nikita Zlobin
528419269e script: Let script handle empty custom input 2023-08-11 08:51:00 +02:00
Nikita Zlobin
82f9605c30 widget_draw: clean useless calls in corner drawing
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Nikita Zlobin
45688b0a53 Fix border segments stitch
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Nikita Zlobin
a383eb858e Fix mm type in description
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Nikita Zlobin
386b92dace Remaining modi words in the code
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-23 18:44:15 +02:00
Nikita Zlobin
81641d0f30 Better descriptions for sort options group
It's unobvious from documentation, that sort only works against filtered menu.

Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-23 18:44:15 +02:00
lbonn
ff2338c38f Set -dev version 2023-07-23 14:31:22 +02:00
lbonn
af752c1526 Bump to 1.7.5+wayland2
A few bug fixes and features are worth releasing!
2023-07-23 14:13:05 +02:00
MoetaYuko
0b223c16f3 Wayland: Apply scaling to cursor surface
Loading cursor theme and creating cursor surface are postponed to
wayland_pointer_enter because we don't know the display scale in the
early wayland_display_setup.

Partially fixes #45
2023-07-23 14:10:10 +02:00
MoetaYuko
2c0fcf9da9 [IconFetcher] Apply scaling when loading images and icons
Partially fixes #45
2023-07-23 14:10:10 +02:00
Nikita Zlobin
c980139b7e update man pages without scripts
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-22 14:15:54 +02:00
Dave Davenport
45c4a12daa [Lexer] Print some more debug info on error.
issue: #1865
2023-07-05 20:29:09 +02:00
Dave Davenport
64ceb85eed [Script] Set type on Mode object. 2023-07-03 18:10:22 +02:00
Dave Davenport
be6db24667 [window] Quick test of code scanning. 2023-07-03 13:40:23 +02:00
Dave Davenport
628d0b272c Merge remote-tracking branch 'github/next' into next 2023-07-03 12:35:47 +02:00
Jorge
f82fe90110
Add CodeQL workflow (#1863) 2023-07-03 12:35:00 +02:00
Qball Cow
a5301b35ad Remove unused variable. 2023-06-29 23:59:25 +02:00
Dave Davenport
7814da7ee4 [ROFI] -e '-' reads from stdin 2023-06-15 22:29:03 +02:00
Dave Davenport
635fbd0464 [ConfigParser] Don't pass commandline options with very long args.
This is a quick 'n dirty fix for this unexpected issue.

fixes: #1855
2023-06-15 19:36:19 +02:00
Dave Davenport
e203084647 [Build] Fix autotools build system. 2023-06-12 19:46:14 +02:00
Dave Davenport
47f37f2bbc [Doc] Fix some missing/wrong doxygen headers. 2023-06-12 19:40:25 +02:00
Dave Davenport
e409322faf Print window manager in -help output 2023-06-12 19:16:46 +02:00
Dave Davenport
96dabb4dd6 Merge remote-tracking branch 'github/next' into next 2023-06-12 19:08:03 +02:00
Dave Davenport
d27cee89fa Merging in the Recursive file browser.
Squashed commit of the following:

commit 92e730076d461622dc81e44e87ec456317514904
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sun Jun 11 18:17:12 2023 +0200

    [Doc] Add regex filtering to recursivebrowser.

commit ee80c8487f9765b1e6e8ab8219a6baea089cf5af
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sun Jun 11 17:49:29 2023 +0200

    [recursivebrowser] Update manpage.

commit a24b68f52362aaf1461935c2340e3bf5e31da59d
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sun Jun 11 17:37:56 2023 +0200

    [Mode] Add some extra validating of the mode selected to complete.

commit cf497e8685e806521c0f61922827687adce268c9
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sun Jun 4 15:12:31 2023 +0200

    [Recursive browser] Make completer selectable.

commit 722f07a803c28a406d8a610f31a24b3f7247b9ba
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sun Jun 4 14:36:14 2023 +0200

    Add methods for completer to modes.

commit 7972420c30275514751802d1ed517a45bbd83da1
Author: Qball Cow <qball@blame.services>
Date:   Thu Jun 1 21:56:06 2023 +0200

    Prepare updates for new APIs.

commit dd3035a1a61f8196d394f6867701a0e1b3af30ac
Author: Dave Davenport <qball@gmpclient.org>
Date:   Wed May 10 19:24:48 2023 +0200

    [RB] Fix regex and cleanups

commit 4d2941caf32dfb946aee54c467c1319c7a89804a
Author: Dave Davenport <qball@blame.services>
Date:   Wed May 10 18:09:54 2023 +0200

    [RB] Add (unfinished regex test)

commit 848277001fc8cf9afc538067f2afa24a174f8c7f
Author: Dave Davenport <qball@blame.services>
Date:   Wed May 10 17:49:16 2023 +0200

    [RB] Pull the scanning into a separate thread.

commit f369a7f63f618bbcad10c18e73f7e2b117c515f1
Author: Dave Davenport <qball@gmpclient.org>
Date:   Wed May 3 18:35:15 2023 +0200

    [Recursive File Browser] First test version.
2023-06-12 19:07:00 +02:00
Yuta Katayama
b341ed01d2
Add wezterm to rofi-sensible-terminal (#1838) 2023-05-04 18:45:33 +02:00
Dave Davenport
21ac2d1930 [DRun] Add option to scan desktop directory for desktop files.
Squashed commit of the following:

commit ac12b66d86b36aaf349c15a5c8dab00a553a641f
Merge: 5c393fb4 98c213a6
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sat Apr 22 21:48:24 2023 +0200

    Merge remote-tracking branch 'origin/next' into scan-desktop

commit 5c393fb4120e842d609e6d4366b1e0b822f66d7f
Author: Dave Davenport <qball@gmpclient.org>
Date:   Sat Apr 8 21:14:20 2023 +0200

    [DRun] Add option to scan desktop for desktop files
2023-04-22 21:50:20 +02:00
Quentin Glidic
98c213a634
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2023-04-22 17:40:23 +02:00
Dave Davenport
7328ac9802 [IconFetcher] Fix small memory leak. 2023-04-21 14:32:56 +02:00