176 Commits
Author SHA1 Message Date
Kenny Levinsen 3eb7cddb6c Bump version to 0.3.0 v0.3.0 2022-01-15 18:40:38 +01:00
Kenny Levinsen 2813ae0eff clock: Adjust to new font advance 2022-01-14 00:39:23 +01:00
Kenny Levinsen 1b1ffc4435 Update example config 2022-01-14 00:38:02 +01:00
Tadeo Kondrak cf9fabb052 draw: Use font's horizontal advance value 2022-01-14 00:36:50 +01:00
Cyril Levis 43fe73bf09 feat: add ranking based on usage to launcher widget
Signed-off-by: Cyril Levis <git@levis.name>
2022-01-02 17:08:18 +01:00
Cyril Levis d291e36b3f feat: allow choosing recent app with tabs 2021-12-30 22:22:01 +01:00
Cyril Levis fe37c15f95 feat: deduplicate desktop entries
We don't want duplicate entries because there are not distinguishable by Name.

People will sometimes override in there HOME dir some desktop files entries
in order to do some modifications.

The actual reading order is good and so `unique_by` name do the job.
2021-12-30 22:10:51 +01:00
Cyril Levis d4f62da6f5 feat: recurse deeper in applications folder
max recursion 2 levels
2021-12-30 22:04:19 +01:00
Tadeo Kondrak 1edefd9cad main: only bind up to version 3 of wl_output 2021-12-25 18:32:37 +01:00
Maxim Baz 90ffa7df27 Lex exec even when using custom opener
This fixes a few bugs I found related to custom opener.

Instead of sending the entire exec as a single argument, this properly
splits the command, trims trailing whitespaces, and lets the receiving
opener iterate over terms.
2021-12-25 17:59:45 +01:00
Kenny Levinsen d69e941ec1 Remove old FUNDING link 2021-10-15 22:47:10 +02:00
Kenny Levinsen 5e5e8876f6 cargo fmt 2021-09-02 21:15:35 +02:00
Kenny Levinsen 886d595f91 launcher: Migrate to SkimMatcherV2 2021-09-02 21:14:08 +02:00
Kenny Levinsen e04237b928 Use format string with panic 2021-09-02 21:13:57 +02:00
Kenny Levinsen ef84c519a2 app: Migrate to compare_exchange 2021-09-02 21:13:33 +02:00
Kenny Levinsen 1e647c7036 readme: Update discuss section 2021-05-19 17:51:27 +02:00
Kenny Levinsen 56f6b1668d cargo fmt 2021-03-04 00:23:09 +01:00
Kenny Levinsen 4c49407849 launcher: Ctrl-a, Ctrl-e, Home and End 2021-02-14 16:12:03 +01:00
Kenny Levinsen 07d8066d90 Bump wayland-rs to 0.28, key repeat 2021-02-14 16:12:03 +01:00
Kenny Levinsen ee2646f091 pulseaudio: Iterate until callback is received
Pipewire's pulseaudio server requires a different number of iterations
to get the callback through properly.

Set a flag from the callbacks, and iterate until the flag is set to
ensure that the right number of iterations are made.
2021-01-28 00:56:53 +01:00
Kenny Levinsen 89eafe5bc7 Update libpulse-binding to 2.22 2021-01-28 00:56:47 +01:00
Kenny Levinsen bd9106c5ee Set layer-shell size to 1,1 on first commit
The commit with no set_size was interpreted as having set_size of 0,0,
which is no longer valid if anchors are not set.

However, are just configuring our surface, not yet committing content.
As workaround, specify a bogus 1,1 size to begin with.

Closes: https://github.com/kennylevinsen/wldash/issues/36
2020-10-15 20:03:23 +02:00
Kenny Levinsen 2e49b98b82 date: Fix dimension calculations 2020-07-22 12:42:48 +02:00
Hilmar Gústafsson 12ea4e7f60 launcher: draw cursor for calc and shell modes 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 91fdfcd2b6 launcher: set cursor position in self.leave 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 2c8b27bb5a launcher: fix bug that resets cursor on enter 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson f6cebdeba4 launcher: remove stray println 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 3b9aed089c launcher: Handle grapheme clusters correctly 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 20e08f74ee cargo fmt 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 89c5aeb01d draw: render cursor correctly in position 0 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson f1811475cd draw: Add method for drawing text with cursor 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson f25909b7f8 launcher: add cursor and basic operations 2020-07-22 01:44:06 +02:00
Hilmar Gústafsson 6690cda29f Use tab and left tab to navigate matches 2020-07-22 01:44:06 +02:00
Kenny Levinsen 76e9d267df ci: Add fontconfig as dependency 2020-06-14 17:10:15 +02:00
Kenny Levinsen 50ac4a89f5 app: Don't switch buffers if none was available 2020-06-14 17:01:42 +02:00
Kenny Levinsen 376a6f215b config: Add default for font map 2020-06-14 17:01:42 +02:00
Kenny Levinsen 24ec63a178 widgets: Allow widgets to fill remaining space
This is implemented by propagating the expected remaining space to all
widget draw calls. It is not currently as smart as it could be, but it
works well enough to let the last widget in a row/column fill things.

BarWidget-type widgets and the Launcher widget now fill remaining space
if their length is set to 0.
2020-06-14 17:01:42 +02:00
Kenny Levinsen 2f61da8690 clock: Use font metrics for size 2020-06-14 17:01:42 +02:00
Hilmar Gústafsson 48985c470a Configurable font support
Use fontconfig to load fonts. Fonts can be added to the `fonts` map in
the config, and referenced from individual widgets' configurations for
customizability.

Fonts default to values "mono" and "sans" if nothing is set.
2020-06-14 17:01:42 +02:00
Hilmar Gústafsson 1a62696662 Use DisplayDevice instead of BAT0 2020-06-03 13:20:59 +02:00
Kenny Levinsen becd676352 ci: alsa-lib dependency 2020-05-16 01:19:09 +02:00
Kenny Levinsen f546cfa194 Create FUNDING.yml 2020-05-10 14:50:14 +02:00
Kenny Levinsen 319bcdd355 Reduce cargo clippy warnings 2020-04-22 01:31:22 +02:00
Kenny Levinsen 300711affe Convert DateTime<Local> to NaiveDateTime
Use of DateTime<Local> can lead to excessive inspection of the system
timezone.

Instead, propagate only a timezone-compensated NaiveDateTime throughout
the widgets.
2020-04-22 00:52:08 +02:00
Kenny Levinsen c380d20794 readme: Fix list 2020-03-28 02:23:55 +01:00
Kenny Levinsen 833f289cd0 readme: Add screenshot 2020-03-28 02:22:50 +01:00
Kenny Levinsen 0577c023b8 clock/date: Feb 29 bug in nonsensical code 2020-02-29 00:11:49 +01:00
Kenny Levinsen 460b63555a Increase optimization level 2020-02-29 00:11:49 +01:00
Kenny Levinsen aec80d1afd backlight: Avoid unnecessary parens 2020-02-29 00:11:49 +01:00
Kenny Levinsen 0a5c4a386a ci: Explicit source path 2020-01-08 11:49:19 +01:00