Commit graph

1015 commits

Author SHA1 Message Date
Daniel Eklöf
234a787859
fcft: fcft_glyph_for_wc() has been renamed to fcft_glyph_rasterize() 2020-04-24 10:54:15 +02:00
Daniel Eklöf
e5ef81a064
fcft: max/space advance fields have been renamed 2020-04-23 11:57:50 +02:00
Daniel Eklöf
60a8bc7fb0
meson: we now require fcft 2.0.x 2020-04-23 11:25:58 +02:00
Daniel Eklöf
03a5c8746f
fcft: adjust to fcft-2.0 API changes
* font_*() -> fcft_*()
* struct font -> struct fcft_font
* struct glyph -> struct fcft_glyph
* enum subpixel_order -> enum fcft_subpixel
2020-04-22 11:50:29 +02:00
Daniel Eklöf
b9e7417137
Merge branch 'releases/1.4' 2020-03-29 11:59:55 +02:00
Daniel Eklöf
f37fc3c1d6
meson/PKGBUILD: bump version to 1.4.0 2020-03-29 11:51:26 +02:00
Daniel Eklöf
cdef89924c
doc: yambar.1: simplify sentence 2020-03-17 12:52:36 +01:00
Daniel Eklöf
d68785eb2b
generate-version: check for .git directory in *src* dir
Instead of trying to run `git --rev-parse --is-inside-work-tree`,
check if there's a .git directory under the source directory.

This should fix an issue where we incorrectly decided we where in a
foot git clone when we're just a subdirectory under another
repository.
2020-03-06 22:16:33 +01:00
Daniel Eklöf
6af8b52012
main: use DAEMON facility for syslog 2020-02-20 20:00:53 +01:00
Daniel Eklöf
6db8925feb
meson: strip build+source relative path prefix from __FILE__ macros 2020-02-20 19:50:08 +01:00
Daniel Eklöf
0794b453dd
log: make syslog facility and level configurable, always log filename+lineno 2020-02-20 19:49:27 +01:00
Daniel Eklöf
df1a004f97
bar/wayland: layer surface "namespace" is a category, not application ID 2020-02-06 19:11:16 +01:00
Daniel Eklöf
7397ab9457
log: make more logging options configurable
* Add --log-colorize=never|always|auto
* Add --log-no-syslog
2020-02-05 19:42:48 +01:00
Daniel Eklöf
3f940ec2a8
main: bytes (from write() when printing PID) *is* used 2020-02-05 19:41:30 +01:00
Daniel Eklöf
d4755d94b0
main: add -p,--print-pid=FILE|FD
When specified, print our PID to the file, or FD, after everything has
started up.
2020-02-04 18:28:09 +01:00
Daniel Eklöf
ef98df1a95
log: log to stderr, not stdout 2020-02-04 18:27:54 +01:00
Daniel Eklöf
ebc7511706
fcft: update to 1.1.0 2020-02-01 20:14:29 +01:00
Daniel Eklöf
d16a85699d
README: reword 'decorations' paragraph 2020-01-25 10:53:35 +01:00
Daniel Eklöf
1624e77bb3
doc: yambar: light-weight -> lightweigh, X -> X11 2020-01-24 22:58:27 +01:00
Daniel Eklöf
6ede951b35
README: mention the battery efficiency goal 2020-01-24 22:56:36 +01:00
Daniel Eklöf
11568b2523
doc: yambar-modules: talk about i3::application/title vs xwindow 2020-01-24 22:53:34 +01:00
Daniel Eklöf
e6f6f8a149
Merge branch 'i3-dont-require-pid-in-window-event' 2020-01-24 22:07:15 +01:00
Daniel Eklöf
1cc1aa2b5f
doc: i3::application tag is Sway only 2020-01-24 21:27:07 +01:00
Daniel Eklöf
1d24755f6b
module/i3: log errors when IPC replies/events are missing data 2020-01-24 21:27:07 +01:00
Daniel Eklöf
f4e456a0ad
module/i3: 'pid' is not a standard property of windows event
Don't fail (and terminate the i3 plugin) if we receive a window event
where the 'container' doesn't have a 'pid' property.

This means we won't be able to determine the application the window
belongs to.

Closes #2
2020-01-24 21:27:07 +01:00
Daniel Eklöf
9675b86478
module/i3: window event: use 'app_id' for 'application', if available
We previously used the 'pid' property of the 'container' object in a
window event to lookup the application name under /proc/<pid>/comm.

In many cases, the application name is already available in the window
event itself, in the 'app_id' property.

Use this, if available, and fallback to the old PID method otherwise.

A quick experiment suggests 'app_id' is set for all Wayland native
applications, but not for X11 applications running under XWayland.
2020-01-24 21:23:21 +01:00
Daniel Eklöf
86522d653d
modules: move 'content' and 'anchors' to MODULE_COMMON_ATTRS
All modules implement these. The only one that differs is the i3
module. It still implements them, but 'content' uses an internal
verifier function.
2020-01-24 21:08:39 +01:00
Daniel Eklöf
36e5dc0df8
doc: yambar-modules: add missing table header
The header for 'required' was missing, as well as in half of the table
entries.
2020-01-24 21:06:19 +01:00
Daniel Eklöf
27b8fab461
doc: yambar-modules: yambar *does* font fallback 2020-01-24 21:06:19 +01:00
Daniel Eklöf
496f2f3185
doc: yambar-modules: fix highlighting of reference to yambar-tags 2020-01-24 21:06:19 +01:00
Daniel Eklöf
b49fb08b70
examples: my current laptop configuration 2020-01-23 17:52:31 +01:00
Daniel Eklöf
8294eb5a80
fcft: update to 1.0.0
Allow/disallow subpixel antialiasing in font_glyph_for_wc(), not using
font_enable_subpixel_antialias().
2020-01-19 12:35:29 +01:00
Daniel Eklöf
54a31f8745
meson/PKGBUILD: font kerning requires fcft >= 0.4.2 2020-01-18 09:27:32 +01:00
Daniel Eklöf
b644c75586
particle/string: apply font kerning 2020-01-18 09:27:27 +01:00
Daniel Eklöf
e2ea79bb2f
Merge branch 'releases/1.3' 2020-01-15 14:21:36 +01:00
Daniel Eklöf
7685199038
meson/PKGBUILD: bump version to 1.3.1 2020-01-15 14:19:42 +01:00
Daniel Eklöf
750c2a4472
Merge branch 'releases/1.3' 2020-01-15 14:02:27 +01:00
Daniel Eklöf
b6da4492a9
meson/PKGBUILD: bump version to 1.3.0 2020-01-15 13:57:09 +01:00
Daniel Eklöf
d920c09fc9
ci: install git and close fcft+tllist subprojects 2020-01-15 11:18:01 +01:00
Daniel Eklöf
9d5e57045b
README: specify "yaml" markup for configuration example 2020-01-15 11:09:15 +01:00
Daniel Eklöf
3c9a08bf7f
yml: destroy 'current' yaml event before erroring out 2020-01-15 11:06:54 +01:00
Daniel Eklöf
1a7b00054f
yml: fix crash when referencing a nonn-existent anchor 2020-01-15 11:03:40 +01:00
Daniel Eklöf
74043d0e6d
REAMDE: installation 2020-01-11 19:02:57 +01:00
Daniel Eklöf
42f9165bd7
gitignore: subprojects directory 2020-01-11 14:45:56 +01:00
Daniel Eklöf
a822d89291
fcft/tllist: remove git submodules 2020-01-11 14:43:26 +01:00
Daniel Eklöf
7c13b75218
fcft: bump 2020-01-09 21:08:31 +01:00
Daniel Eklöf
edfe7e70f9
bar/wayland: don't use wl_display_dispatch()
wl_display_dispatch() calls poll(), which is unnecessary since we
already know the FD is readable.

Use the more lower level wl_display_read_events() +
wl_display_dispatch_pending().

These require wl_display_prepare_read() to have been called.
2020-01-03 21:24:26 +01:00
Daniel Eklöf
6bef3b8e2f
fcft: ignore embeddedbitmap for non-scalable fonts 2020-01-02 18:43:27 +01:00
Daniel Eklöf
baee3924e4
bar/wayland: let compositor choose output if user didn't
Instead of us selecting an output randomly (we used to select that
"last" output) when the user hasn't configured one, let the compositor
choose one for us.
2019-12-31 11:39:33 +01:00
Daniel Eklöf
e05d586f17
bar/wayland: WL_OUTPUT_MODE_PREFERRED doesn't meen this *output* is preferred
It means the *mode* (width, height, refresh) is the preferred one for
*this* output.
2019-12-31 11:16:23 +01:00