Commit graph

893 commits

Author SHA1 Message Date
Daniel Eklöf
ecb91ebda5
README: dummy commit to test CI 2019-09-28 20:46:06 +02:00
Daniel Eklöf
9dbbc480e4
Rename project: f00bar -> yambar 2019-09-28 20:39:45 +02:00
Daniel Eklöf
9b9344877f
Merge branch 'releases/1.1' 2019-09-27 22:17:11 +02:00
Daniel Eklöf
85c06a427f
Bump version to 1.1.1 2019-09-27 22:13:18 +02:00
Daniel Eklöf
0e7db5f397
module/removables: relaxed mountinfo matching criteria
Fixes mount detection on e.g. Artix Linux.
2019-09-27 19:31:12 +02:00
Daniel Eklöf
43157e42cc
Bump version to 1.1.0 2019-09-24 19:56:09 +02:00
Daniel Eklöf
012162837d
particle/progress-bar: expand and replace on-click handler on click events only
No need to do it in motion events.
2019-09-23 18:39:03 +02:00
Daniel Eklöf
6e50872933
particle/progress-bar: improve accuracy of 'where' tag
The progress-bar took *all* particle elements into account when
calculating the (relative) mouse position on mouse events.

This is wrong, since only the progress bar (that is, the empty and
filled cells) should be used. Not the start/end elements.

We now also pass the mouse event through to the start/end elements.
2019-09-23 18:34:43 +02:00
Daniel Eklöf
288428ca22
particle: add missing argument to debug log 2019-09-23 18:34:23 +02:00
Daniel Eklöf
384e9d0849
particle: add on-click handler to debug log message 2019-09-23 18:33:57 +02:00
Daniel Eklöf
4e73ec669b
font: don't try to do fontconfig fallback on a fallback font 2019-09-22 12:44:08 +02:00
Daniel Eklöf
274255f9ab
bar: repair border drawing (was using wrong height)
Fix regression after porting from cairo to pixman. The bar border was
drawn using the wrong height info.
2019-09-22 12:38:30 +02:00
Daniel Eklöf
bd70a4dc37
bar: fix build failure with -Werror=unused-result 2019-09-22 12:32:02 +02:00
Daniel Eklöf
bff097c3e8
Merge branch 'font-fallback' 2019-09-22 12:30:36 +02:00
Daniel Eklöf
e169263851
ci: install pixman+freetype+fontconfig instead of cairo 2019-09-22 12:29:00 +02:00
Daniel Eklöf
e8a1efeeb5
meson: add freetype dependency to decorations and modules
Fixes build failures when building plugins as shared libraries
2019-09-22 12:25:11 +02:00
Daniel Eklöf
f29f96be96
bar/wayland: use preferred monitor if user didn't specify one 2019-09-22 12:08:08 +02:00
Daniel Eklöf
18e9d67d77
bar/wayland: fail when we can't find the specified monitor 2019-09-22 11:59:48 +02:00
Daniel Eklöf
5d6df44a79
bar: signal abort (to main loop) when backend fails 2019-09-22 11:59:34 +02:00
Daniel Eklöf
4ce314e328
cairo: drop all remaining references to cairo
We now use pixman (and freetype + fontconfig) exclusively.
2019-09-22 11:52:37 +02:00
Daniel Eklöf
01e71590e0
bar: don't use cairo
This is trivial in the Wayland backend; just instantiate a pixman
pointing to the same mmapped memory as the wayland buffer.

In the XCB backend, we change the implementation slightly; instead of
rendering via a cairo XCB surface backend (to a server side pixmap),
which is then blitted to the window in commit(), we now render to a
client-side pixman pixmap, and blit it using xcb_put_image() in
commit().
2019-09-22 11:46:46 +02:00
Daniel Eklöf
c11fee4ce3
cairo: replace cairo with pixman in decos, particles and modules
All decoration, particle and module interfaces now takes a
pixman_image_t parameter, and all drawing is done using pixman APIs.

The wayland/xcb backends implement a new interface functions,
get_pixman_image(), that should return a pixman image instance that is
suitable for rendering.

In the wayland backend, the image uses the same backing data as the
cairo surface.

In the XCB backend, we create a new image each time, and then blit it
to the cairo surface at commit time.
2019-09-22 01:56:58 +02:00
Daniel Eklöf
95385863ae
particle: remove cairo context from begin_expose() 2019-09-22 00:55:06 +02:00
Daniel Eklöf
54797ffbd8
font: remove lock (all rendering happens in the main thread) 2019-09-22 00:51:02 +02:00
Daniel Eklöf
b3a5e0b5d7
font: initial port from cairo scaled fonts to raw freetype + pixman 2019-09-22 00:50:11 +02:00
Daniel Eklöf
393e1909b7
module/i3: plug valgrind detected memory leak
Free previous 'application' string before replacing it with a new one.
2019-09-22 00:44:51 +02:00
Daniel Eklöf
12feaf1ccd
ci: has alpine:edge finally moved to python3? 2019-09-21 20:57:21 +02:00
Daniel Eklöf
7ed35052bb
README: remove badges (added directly to gitlab project instead) 2019-09-21 20:51:10 +02:00
Daniel Eklöf
4a50c54a41
wlr-protocols: bump 2019-08-29 19:37:49 +02:00
Daniel Eklöf
f4f44d88fe
modules/sway-xkb: never *update* state without locking it 2019-08-15 19:12:08 +02:00
Daniel Eklöf
9aefa8df14
modules/sway-xkb: pull in string.h, for strdup() and strcmp() 2019-08-14 22:06:46 +02:00
Daniel Eklöf
bb72111d6c
doc/f00bar-modules: document sway-xkb 2019-08-14 22:04:10 +02:00
Daniel Eklöf
d576802e49
modules/sway-xkb: new module, uses sway 'input' events to expose kbd layout
We subscribe to Sway's 'input' events, and use these to expose input
devices' active XKB layout.

The module is configured by specifying a list of 'identifiers'; these
are the input devices (keyboards, typically), that we'll be
monitoring. All other input devices are ignored.

'content' is a template, and the module will instantiate a dynlist
with a 'content' for each *existing* input found in the 'identifiers'
list.

We also monitor for device 'added' and 'removed' events, and update
our internal list of existing inputs.

This means the user can configure a set of identifiers, and only those
that are actually present will be displayed. If a device that is
listed in the 'identifiers' list is added, it will be displayed. If it
is removed, it will no longer be displayed.
2019-08-14 21:51:43 +02:00
Daniel Eklöf
1534e00236
module/mpd: don't try to strdup() NULL strings 2019-07-08 15:06:24 +02:00
Daniel Eklöf
9b5dca52e2
bar/wayland: scale mouse position on mouse entry 2019-07-05 10:27:33 +02:00
Daniel Eklöf
8567257a88
meson: no space before ':' 2019-06-07 22:42:21 +02:00
Daniel Eklöf
f95b76c6b5
ci: add release, x11/wayland-only and shared-plugins builds 2019-06-07 19:31:30 +02:00
Daniel Eklöf
826edccd99
README: add sourcehut badge 2019-06-07 19:25:31 +02:00
Daniel Eklöf
4990c5208c
ci: working build.yml script (debug builds only for now) 2019-06-07 19:25:04 +02:00
Daniel Eklöf
ed71b70e70
ci: spell mpd correctly 2019-06-07 19:10:01 +02:00
Daniel Eklöf
db63824ecf
ci: initial build.yml for builds.sr.ht 2019-06-07 19:08:08 +02:00
Daniel Eklöf
e980a74a10
bar/wayland: spell 'disconnected' correctly 2019-06-07 14:08:14 +02:00
Daniel Eklöf
450caba415
meson: generators() are sub-optimal. Replace with custom targets 2019-06-05 21:10:10 +02:00
Daniel Eklöf
58a6dc52fc
bar: fix border offset, for real hopefully 2019-06-01 17:16:19 +02:00
Daniel Eklöf
64eab86932
Revert "bar: fix border offset"
This reverts commit c2ca68b7bd.
2019-06-01 17:05:11 +02:00
Daniel Eklöf
c2ca68b7bd
bar: fix border offset 2019-06-01 16:16:13 +02:00
Daniel Eklöf
b9fa2b17a3 completions: zsh: teach it possible values for -b,--backend and -c,--config 2019-05-29 20:39:23 +02:00
Daniel Eklöf
6513652711 completions: add zsh completions 2019-05-29 20:39:23 +02:00
Daniel Eklöf
74fca1efef doc: f00bar now have more options than -v 2019-05-29 20:39:23 +02:00
Daniel Eklöf
0e4fbb602c bar/wayland: read cursor theme/size from XCURSOR_* environment variables 2019-05-21 21:43:12 +02:00