Daniel Eklöf
72056c50cf
config-verify: add conf_verify_unsigned()
...
Like conf_verify_int(), but also requires the integer to be >= 0
2021-11-15 18:16:15 +01:00
Daniel Eklöf
11bb45aa87
doc: script: add missing column in options table
2021-11-15 18:15:52 +01:00
Daniel Eklöf
d40220e511
bar/wayland: handle failure to set initial size in setup()
2021-11-15 18:06:10 +01:00
Daniel Eklöf
58038a4236
doc: battery: some batteries enter "unknown" under normal operation
2021-10-31 21:07:09 +01:00
Daniel Eklöf
8324112504
example: battery: map ‘unknown’ to ‘discharging’
...
Related to #123
2021-10-30 18:45:43 +02:00
Daniel Eklöf
66ec7a85a1
example: conf: foreign-toplevel: merge ‘: ’ and ‘{title}’
2021-10-24 18:34:43 +02:00
Daniel Eklöf
0f6d165084
Merge branch 'border-deco'
2021-10-24 18:22:44 +02:00
Daniel Eklöf
134141b7c5
doc: decorations: document the new ‘border’ decoration
2021-10-24 18:22:21 +02:00
Daniel Eklöf
f0782d5124
deco: new decoration, ‘border’
...
Kind of like “underline”, but draws a border around the entire
particle.
2021-10-24 18:22:21 +02:00
Daniel Eklöf
c9abb6b98f
Merge branch 'network-dont-send-nl80211-req-if-family-id-not-set'
2021-10-24 18:21:51 +02:00
Daniel Eklöf
31f160141e
changelog: network: failure to retrieve wireless attributes
2021-10-24 17:50:10 +02:00
Daniel Eklöf
9ffd305b59
network: must re-send station request when we receive family ID
...
The get station request also fails if the family ID is invalid.
2021-10-24 17:47:54 +02:00
Daniel Eklöf
4e96dbd7f7
network: don’t send nl80211 request if we don’t have a family-id
...
This fixes an issue where we sometimes failed to retrieve the SSID; we
sent one initial request before the family ID had been set.
Then, we received the family ID and tried to send another
request. However, if the first request was still in progress, the
second request was never made.
Since the first request lacked the family ID, that response didn’t
contain anything useful.
2021-10-24 17:35:15 +02:00
Daniel Eklöf
7d715d81a8
example: conf: use foreign-toplevel instead of i3’s ‘current’
2021-10-24 17:24:15 +02:00
Daniel Eklöf
cad9dd8efd
ci: also build release branches
2021-10-23 16:03:21 +02:00
Daniel Eklöf
bd44e82eca
bar/wayland: coalesce “refresh” commands
...
This reduces the number of repaints primarily during startup, but also
when e.g. switching workspace.
2021-10-22 18:07:14 +02:00
Daniel Eklöf
939b81a4ea
bar/wayland: create comm pipe with CLOEXEC | NONBLOCK
2021-10-22 18:06:43 +02:00
Daniel Eklöf
fee0b91174
bar/wayland: remove unused member ‘bar_expose’
2021-10-22 18:06:19 +02:00
Daniel Eklöf
4f3aa8c6b0
bar: do a synchronous “refresh” *before* starting the modules
...
This ensures the surface has been mapped, and our “current” output is
known.
This fixes an issue where modules depending on the current output
being known failed to update correctly during startup.
2021-10-22 18:05:20 +02:00
Daniel Eklöf
957e25914c
Merge branch 'typo-in-example-conf'
2021-10-20 19:52:56 +02:00
mz
2b670ea612
remove an extra space
...
Remove the extra space due to `did not find expected key while parsing a block mapping` issue
2021-10-19 10:11:46 +02:00
Daniel Eklöf
d7a58e4ee0
Merge branch 'bar-initial-refresh'
...
Closes #116
2021-10-17 17:22:02 +02:00
Daniel Eklöf
94a0154c23
bar: refresh before starting the main loop
...
This ensures the bar surface gets mapped, and a background + border
rendered, even though no module “refreshes” it during initialization.
Closes #116
2021-10-17 16:48:09 +02:00
Daniel Eklöf
515b36da0d
foreign-toplevel: refresh the bar when a top-level is closed
...
Fixes an issue where the last active window is still being displayed
in the bar after the corresponding top-level has been closed.
Reported here: https://github.com/johanmalm/labwc/issues/73#issuecomment-945007028
2021-10-17 09:52:28 +02:00
Daniel Eklöf
9fe8ef2574
ci: run “yambar --version” after each build
2021-10-11 20:21:10 +02:00
Daniel Eklöf
9a1371b96a
generate-version: handle git repo not having any tags
2021-10-11 20:21:07 +02:00
Daniel Eklöf
6250360c58
ci: limit builds to the master branch (and pulls targeting it)
2021-10-10 19:05:47 +02:00
Daniel Eklöf
77303e8173
ci: codeberg CI
2021-10-10 18:46:45 +02:00
Daniel Eklöf
4cd031bc73
Merge branch 'clang13'
2021-10-04 16:37:14 +02:00
Jan Beich
03476e9360
yml: silence unused variable warning with Clang 13
...
yml.c:383:9: error: variable 'indent' set but not used [-Werror,-Wunused-but-set-variable]
int indent = 0;
^
2021-10-03 23:40:23 +00:00
Jan Beich
ec465ba3b3
wayland: unbreak build without memfd_create
...
New FreeBSD versions have memfd_create but other BSDs don't.
bar/wayland.c:774:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
pool_fd = memfd_create("yambar-wayland-shm-buffer-pool", MFD_CLOEXEC);
^
bar/wayland.c:774:62: error: use of undeclared identifier 'MFD_CLOEXEC'
pool_fd = memfd_create("yambar-wayland-shm-buffer-pool", MFD_CLOEXEC);
^
2021-10-03 23:07:23 +00:00
Daniel Eklöf
f8e544ae05
Merge branch 'freebsd-step1'
2021-10-02 12:33:08 +02:00
Baptiste Daroussin
82c92185ea
memfd: linux/memfd does not exist on FreeBSD
...
memfd_create is defined in sys/mman.h on FreeBSD
2021-10-01 17:22:55 +02:00
Baptiste Daroussin
bfff39b7c9
main: cast sig_atomic_t to long, to fix the printf portability
2021-10-01 17:22:55 +02:00
Daniel Eklöf
804af178d5
Merge branch 'udev-monitor-receive-device-returning-null'
...
Closes #109
2021-10-01 16:45:22 +02:00
Baptiste Daroussin
6a9f66b837
meson: add the library needed for the FreeBSD support
2021-10-01 10:52:02 +02:00
Baptiste Daroussin
2e6847077e
signal: add the signal header needed for the signal functions
2021-10-01 10:52:00 +02:00
Baptiste Daroussin
26892c66b2
headers: basename is defined under libgen.h
2021-10-01 10:51:56 +02:00
Daniel Eklöf
1bcf116859
modules: handle udev_monitor_receive_device() returning NULL
...
Closes #109
2021-09-30 10:01:36 +02:00
Daniel Eklöf
0f389435ca
changelog: battery: unknown states map to unknown, not discharging
2021-09-30 10:00:40 +02:00
Daniel Eklöf
fa760ffa65
Merge branch 'fix-battery-unknown'
2021-09-30 09:59:25 +02:00
Daniel Eklöf
76225a8366
doc: particles: line wrap
2021-09-20 19:30:37 +02:00
Daniel Eklöf
87f38d19a0
Merge branch 'ramp-overwrite-bounds'
2021-09-20 19:29:23 +02:00
Vincent Fischer
535d49e9c3
allow ramp particles to overwrite min and max
2021-09-20 19:08:18 +02:00
Stanislav Ochotnický
8709e8da38
Make default battery state as unknown
...
When a given battery is not found or otherwise state cannot be read - we
default to "unknown" state instead of discharging with incomplete data
2021-09-20 08:38:54 +02:00
Daniel Eklöf
7bbcad55e4
Merge branch 'add-mpris-docs-to-script'
2021-09-17 20:23:40 +02:00
Daniel Eklöf
185f313580
Merge branch 'make-mpd-support-optional'
2021-09-17 20:17:05 +02:00
Stanislav Ochotnický
13b5934e65
Add MPRIS example in script module documentation
2021-09-16 19:27:10 +02:00
Stanislav Ochotnický
e723b039ad
Make libmpdclient an optional dependency
...
Without this change yambar can't be installed/used without libmpdclient even for
people who do not use MPD. Let's make this optional.
We could put the optional module summary in the module meson.build but we'd have
to move summary() in main meson.build so that they appear in proper order.
2021-09-16 11:46:22 +02:00
Daniel Eklöf
12f7802537
Merge branch 'clock-utc'
2021-09-12 21:00:11 +02:00