Commit graph

47 commits

Author SHA1 Message Date
c5ca08f556 Read config from xdg directory 2022-06-19 08:52:07 +02:00
39a888c7ba Center window on screen 2022-06-06 21:08:50 +02:00
e37563eb7a Use xcb-wm and bump xcb to 1.1.1 2022-06-03 22:44:32 +02:00
0ae84e89bc Bump dependencies 2022-04-22 19:45:12 +02:00
2b67891ca2 Disable tabbing out by grabbing keyboard
We grab the keyboard and bind it to the roftl window. This works as long
as there is no other window grabbing the keyboard afterwards (and
effectively stealing the keyboard from roftl).

This is done so tabbing out of roftl (and hence loosing focus) is not
possible.
2022-04-16 09:06:09 +02:00
8cdfca3a62 Hide window from taskbar 2022-04-16 08:42:43 +02:00
020924b569 Update dependencies 2022-04-14 18:58:33 +02:00
a34a6a2ed4 Run cargo format 2022-03-04 20:11:38 +01:00
3b7bff5bd7 Read settings from configuration file or env 2021-11-21 20:43:13 +01:00
d1e9866bd3 Bump dependency versions 2021-11-18 23:12:04 +01:00
4f4e3ca217 Move roftl to core 2021-11-18 21:48:48 +01:00
d7ed757120 Move core::traits to core::shared
Misnomer since it does not only contain traits
2021-11-17 21:27:37 +01:00
198e28460d Move standard traits and structs to core 2021-11-17 21:15:59 +01:00
838b329553 [WIP] Concurrent additional sources
Additional entries are sources concurrently. With a split into primary
and additional sources, this has the major advantage that only primary
source has to provide immediate results.

Additional sources start sourcing in the background and have at least
the time a human needs to provide input and reaction time to process the
visible results without an actual visible delay.
2021-11-16 23:37:56 +01:00
496bea1df2 Treat window without type like normal window
Some windows do not specify any `_NET_WM_WINDOW_TYPE`. In that case
treat them like normal windows. It is expected that creaters of special
windows are more concious about setting this property correctly. Normal
developers may be unaware and are more likely not to specify the type.

E.g. Official Spotify does not have a `_NET_WM_WINDOW_TYPE` in the
latest version.
2021-11-16 21:19:50 +01:00
e4e1ed4f73 Don't quickswitch without input 2021-11-14 21:38:12 +01:00
e7a6dc2237 Use arbitrary actions, to be defined by source 2021-11-09 23:48:36 +01:00
0aee80e52e Proper .gitignore 2021-11-09 21:39:36 +01:00
5913c5e2b9 Bump FlexMatcher to 0.1.3 2021-11-09 21:36:28 +01:00
e2f81df3dc Carry over input to actions 2021-11-08 22:23:55 +01:00
a207a38101 Completions 2021-11-08 22:13:22 +01:00
9fc30022ec Quick switch and primary mode 2021-11-08 21:18:16 +01:00
bdb1520cf0 Capslock action and flx-rs matcher 2021-11-07 11:51:48 +01:00
bfc7510b5e Actions for window source 2021-11-04 00:08:31 +01:00
450e13d655 Per-entry actions and use simple actions for now
Preliminary code for action blocks and flags (similar to magit dispatch) was
removed for now. Reasoning is that it is too costly to remember specific
keybindings for each source/entry. We only allow 4 (for now)
actions which get pre-defined keybindings.

What those actions trigger exactly and whether less than 4 are used is left to
the source.
2021-11-03 21:54:00 +01:00
721d7dc326 Default color palette 2021-11-01 23:20:29 +01:00
911bfcfba3 Preliminary actions 2021-11-01 21:29:04 +01:00
d67ea79994 Center text vertically in input and result boxes 2021-11-01 21:29:04 +01:00
cc590001d7 Clip inside border region when redraw_quick 2021-11-01 21:29:04 +01:00
d9c786e88c Remove luahost 2021-11-01 21:29:04 +01:00
bc48bf122e Draw source name 2021-10-31 19:20:34 +01:00
673fef7c84 Use pango for text layout 2021-10-31 18:38:19 +01:00
dc62753629 Separate theming engine from widget painter 2021-10-31 15:48:01 +01:00
31b355c727 Shellhost 2021-10-27 00:07:24 +02:00
7a45982064 Simplify and fix narrow map
Filling the narrow map in parallel caused invalid indices.

Also narrow map can be simplified to a Vec since it anyways only maps continous
selection indices starting at 0 to entry indices.
2021-10-26 20:16:45 +02:00
c382a121a5 Add fuse matcher 2021-10-26 09:19:36 +02:00
0f4117b436 Terminal app execution 2021-10-26 07:19:00 +02:00
42907b8982 App execution 2021-10-23 09:34:02 +02:00
48879aadd8 Lua host, mark match indices in results 2021-10-19 22:11:16 +02:00
1cade695c8 Initial freedesktop applications source 2021-10-18 00:44:32 +02:00
c6ed343acd Selection, quick draw, primary action 2021-10-17 19:23:50 +02:00
8e38a59432 Sort entries by score, ui widgets 2021-10-17 13:46:56 +02:00
35f01cafe3 Unstable winit, matcher, xcb fix
- Move to unstable winit since 0.25.0 does not handle transparency correctly on
X11

- Matcher trait to enable different matching algorithms

- Find correct visualtype for cairo xcb surface: Visualtype was more or less
taken randomly which only worked by chance. Now find visualtype that corresponds
to visualid of the winit window which should be the correct one.
2021-10-16 06:31:11 +02:00
2fdfc5b749 Move to cairo ui 2021-10-11 20:41:05 +02:00
fd54aeece2 Source windows from x11 server 2021-10-03 23:07:56 +02:00
5938bad12f Source from dynamic sources 2021-09-12 16:48:02 +02:00
15fe9bc1d5 Then Light 2021-08-21 19:29:00 +02:00