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
anb
ba5b28f437
clock: add a config option to show UTC time
2021-09-12 11:19:53 -07:00
Daniel Eklöf
60904bb18f
changelog: left- and right-margin options being rejected as invalid
2021-09-12 10:30:36 +02:00
Daniel Eklöf
8076a8da2a
Merge branch 'left-right-margin-typo'
2021-09-12 09:57:25 +02:00
Daniel Eklöf
3ff9fcab48
changelog: add new ‘unreleased’ section
2021-09-12 09:56:01 +02:00
Daniel Eklöf
dd19f070b3
Merge branch 'releases/1.7'
2021-09-12 09:55:25 +02:00
nogerine
ab0323e35e
config: fix incorrect attribute name in validation
2021-09-11 00:15:14 +00:00
Daniel Eklöf
42d944d020
meson/pkgbuild: bump version to 1.7.0
2021-09-03 20:39:01 +02:00
Daniel Eklöf
6fa118a5e5
changelog: prepare for 1.7.0
2021-09-03 20:38:26 +02:00
Daniel Eklöf
7a5ce73c94
Merge branch 'tag-formatters'
2021-09-01 19:12:42 +02:00
Daniel Eklöf
eff890ab9d
tag: add kib/mib/gib formatters
2021-09-01 19:12:29 +02:00
Daniel Eklöf
8c2e5d8bde
doc: yambar-tags: add missing last column to kb/mb formatters
2021-09-01 19:12:29 +02:00
Daniel Eklöf
f0b16033fe
doc: yambar-tags: codespell: mininum -> minimum
2021-09-01 19:12:28 +02:00
Daniel Eklöf
a6194c63e6
tag: add kb/mb/gb formatters
2021-09-01 19:12:27 +02:00
Daniel Eklöf
e201cc3d30
tag: add a ‘%’ formatter
...
Range tags can now be rendered as a percentage value, by using a ‘%’
formatter:
{tag_name:%}
2021-09-01 19:12:16 +02:00
Daniel Eklöf
0da24198b3
Merge branch 'network-wifi'
2021-09-01 19:11:37 +02:00
Daniel Eklöf
4ab3263ebb
changelog: network: poll-interval
2021-09-01 19:11:14 +02:00
Daniel Eklöf
dabb2e1407
module/network: add support for periodically polling Wi-Fi stats
...
This adds a new ‘poll-interval’ option to the network module. When set
to a non-zero value, the following Wi-Fi stats will be updated:
* Signal strength
* RX+TX bitrate
2021-09-01 19:10:23 +02:00
Daniel Eklöf
d450bf12a1
module/network: re-request station info when we’re re-connected
2021-09-01 19:10:22 +02:00
Daniel Eklöf
e8a2f8df9a
module/network: reset signal strength and RX+TX bitrates on disconnect
2021-09-01 19:10:22 +02:00
Daniel Eklöf
066427d77a
examples: add ssid to wifi-network module
2021-09-01 19:10:22 +02:00
Daniel Eklöf
25379b7e1f
changelog: new network tags (ssid, signal rx+tx bitrate)
2021-09-01 19:10:22 +02:00
Daniel Eklöf
01ee028c4d
doc: network: document ssid, signal, rx-bitrate and tx-bitrate
2021-09-01 19:10:22 +02:00
Daniel Eklöf
a685dadb75
module/network: expose signal strength and rx+tx bitrates
2021-09-01 19:10:22 +02:00
Daniel Eklöf
b27eff36f9
module/network: nl80211: join the MLME mcast group, ignore messages not for us
...
This cleans up the nl80211 handling quite a bit, and adds initial
support for nl80211 notifications.
* We now join the nl80211 MLME multicast group (done by parsing the
CTRL_ATTR_MCAST_GROUPS attribute in the reply to our
CTRL_CMD_GETFAMILY request). This gives us CONNECT and DISCONNECT
notifications, allowing us to request and reset SSID that way, instead
of detecting the link’s OPER state.
* Before parsing an nl80211 message, verify it’s for us, by looking
for a NL80211_ATTR_IFINDEX attribute in the message (and comparing the
contents with our previously detected ifindex).
2021-09-01 19:10:22 +02:00
Daniel Eklöf
9b3548736a
module/network: refactor: add foreach_nlattr()
...
This function iterates all attributes of a NETLINK_GENERIC message,
and calls the provided callback for each attribute.
2021-09-01 19:10:22 +02:00
Daniel Eklöf
5249d9ef79
module/network: use separate functions to connect to RT/GENL netlink
2021-09-01 19:10:21 +02:00
Daniel Eklöf
d39e6b8b94
module/network: initial support for Wifi extensions
...
Currently capable of getting the SSID.
2021-09-01 19:10:21 +02:00
Daniel Eklöf
e4e9587322
particle/progress-bar: fix regression in width calculation: = -> +=
2021-08-30 18:00:41 +02:00
Daniel Eklöf
e9d762fa03
module/foreign-toplevel: disable debug logging
2021-08-27 10:14:54 +02:00
Daniel Eklöf
149798fe98
Merge branch 'alsa-capture-devices'
2021-08-27 06:42:42 +02:00
Daniel Eklöf
1079bca3eb
Silence “variable length array bound evaluates to non-positive value 0”
2021-08-26 13:27:29 +02:00