Daniel Eklöf
efb71cb5c5
Merge branch 'battery'
2020-06-05 13:47:00 +02:00
Daniel Eklöf
0b1333aa03
module/battery: add support for 'charge_full' and 'charge_full_design'
2020-06-05 13:44:59 +02:00
Daniel Eklöf
1864d68961
module/battery: don't need 'energy' unless we're estimating time left
2020-06-05 13:44:38 +02:00
Daniel Eklöf
50b4bf3783
module/battery: use time_to_empty_now if available
2020-06-05 13:36:10 +02:00
Daniel Eklöf
70b528b088
xcb: extern declare cached XCB atoms in header file
2020-06-05 13:30:08 +02:00
Daniel Eklöf
cc9c5109e9
module/battery: handle 'manufacturer' and 'model_name' not being present
2020-06-05 13:29:38 +02:00
Daniel Eklöf
d108cce689
PKGBUILD: works on aarch64 too
2020-06-05 12:05:43 +02:00
Daniel Eklöf
fb4db1f856
meson: fcft: only major version changes break ABI/API
2020-05-09 11:20:16 +02:00
Daniel Eklöf
0e3bded42d
module/mpd: thrd_success isn't necessarily 0
2020-05-03 14:25:17 +02:00
Daniel Eklöf
bc392d8b0b
meson: use 'status()' instead of 'message()'
2020-05-01 12:28:48 +02:00
Daniel Eklöf
44fb0b83ba
main: call setlocale() *after* loading fonts
...
This ensures the fonts are instantiated while LC_NUMERICAL is "C",
which required to handle FontConfig strings like "size=12.5".
2020-04-29 18:58:43 +02:00
Daniel Eklöf
0678015eb1
bar/wayland: shutdown when compositor "closed" our layer surface
2020-04-28 18:58:27 +02:00
Daniel Eklöf
860ec01791
bar/wayland: log globals
2020-04-28 18:58:18 +02:00
Daniel Eklöf
c707b00a2a
bar/wayland: don't destroy pointer unnecessarily
...
We only need to create/destroy the pointer when the POINTER capability
changes.
2020-04-28 18:57:32 +02:00
Daniel Eklöf
c3b3d6a637
module/i3: workaround 'workspace init' event being sent twice
...
Sway 1.4 sends two identical 'workspace init' events when a display is
plugged in.
2020-04-28 18:56:39 +02:00
Daniel Eklöf
3fae6c2734
wlr-protocols: bump
2020-04-28 18:56:22 +02:00
Daniel Eklöf
c7cfb451e3
bar/wayland: spell compositor correctly
2020-04-27 20:50:36 +02:00
Daniel Eklöf
11095201d7
meson: bump C standard to c18
2020-04-26 19:37:54 +02:00
Daniel Eklöf
6de185c242
Merge branch 'fcft-2'
2020-04-24 20:22:12 +02:00
Daniel Eklöf
bf7cd9a617
meson: using a fallback without a variable name requires meson >= 0.53
2020-04-24 20:21:37 +02:00
Daniel Eklöf
badf9b7622
meson: use simpler variant of dependency fallback for tllist+fcft
...
we now require tllist>=1.0.1 and fcft>=2.0.0, which both use
meson.override_dependency(). Thus, we can use the simpler form of
fallback in our dependency() call.s
This also updates the PKGBUILD files to require tllist>=1.0.1 and
fcft>=2.0.0
2020-04-24 20:19:16 +02:00
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