Commit graph

1568 commits

Author SHA1 Message Date
Daniel Eklöf
0aff641d0c
changelog: audio CD support 2021-12-26 12:30:08 +01:00
Daniel Eklöf
52e2540d42
doc: yambar-modules-removables: add ‘audio’ tag 2021-12-26 12:25:00 +01:00
Daniel Eklöf
d9316a202d
module/removables: audio CD support
Audio CDs are special, in that they don’t (usually) have any data
partitions. They also don’t have a volume label. They just have
tracks.

Before this patch, we ignored all optical mediums that did *not* have
a filesystem (that includes audio CDs).

Now, instead of using the ID_FS_USAGE property to determine whether
there’s media present in the CD-ROM or not, we use the
ID_CDROM_MEDIA. This property is set to ‘1’ for both audio CDs and
data CDs.

Then, we read the ID_CDROM_MEDIA_TRACK_COUNT_AUDIO property to
determine how many audio tracks there are.

If the CD has a filesystem, we treat it as a data CD, and use the
already existing add_partition() function to track it.

If the CD does _not_ have a filesystem, but it _does_ have at least
one audio track, we treat it as an audio CD and use the new
add_audio_cd() function to track it.

This function is almost identical to add_partition(), but instead of
reading the ID_FS_LABEL property, it reads the
ID_CDROM_MEDIA_TRACK_COUNT_AUDIO property and synthesizes a label on
the form “Audio CD - N tracks”.

Finally, a new boolean tag, “audio”, has been added. It is set to true
for audio CD “partitions”, and to false in all other cases.
2021-12-26 12:22:54 +01:00
Daniel Eklöf
4ff1c43669
Merge branch 'mem-and-cpu-modules' 2021-12-21 19:21:44 +01:00
Alexandre Acebedo
e83c4bd8c1 misc: add format files for clang-format and editorconfig 2021-12-21 18:44:37 +01:00
Alexandre Acebedo
ae5c7e0fc3 modules: add cpu module 2021-12-21 18:44:36 +01:00
Alexandre Acebedo
337ce7681f modules: add mem module 2021-12-21 18:44:14 +01:00
Daniel Eklöf
d8d44b0f33
meson: generate-version: use CURRENT_SOURCE_DIR instead of SOURCE_ROOT 2021-12-21 13:41:46 +01:00
Daniel Eklöf
0af9ce354b
Merge branch 'document-on-click-advanced-syntax'
Closes #138
2021-12-20 19:52:41 +01:00
horus645
f7206ef08d Added documentation for discriminated on-click events 2021-12-20 14:03:19 -03:00
Daniel Eklöf
375c7ca89c
Merge branch 'i3-empty-tag'
Closes #139
2021-12-20 17:25:00 +01:00
Daniel Eklöf
26ea137938
changelog: i3/sway: ‘empty’ tag 2021-12-19 17:54:41 +01:00
Daniel Eklöf
8475ca1603
doc: i3: document the new ‘empty’ tag 2021-12-19 17:54:41 +01:00
Daniel Eklöf
3e133d8618
module/i3: add ‘empty’ boolean tag
Set to true for empty (no windows) workspaces.

Mostly useful with persistent workspaces, to be able to differentiate
between invisible non-empty workspaces and actually empty
workspaces (the latter not being possible with non-persistent
workspaces).
2021-12-19 17:54:40 +01:00
Daniel Eklöf
1bb77e59f3
Merge branch 'poll-failures' 2021-12-18 14:57:58 +01:00
Daniel Eklöf
9cff50a39e
module/xwindow: handle poll() failures 2021-12-17 11:55:38 +01:00
Daniel Eklöf
96c75b7f73
module/xkb: handle poll() failures 2021-12-17 11:55:38 +01:00
Daniel Eklöf
ffa86d84a5
module/removables: handle poll() failures 2021-12-17 11:55:36 +01:00
Daniel Eklöf
5d09e59f11
module/mpd: handle poll() failures 2021-12-17 11:55:36 +01:00
Daniel Eklöf
8a11a3fbe5
module/clock: handle poll() failures 2021-12-17 11:55:31 +01:00
Daniel Eklöf
cdd0b5b4f0
module/clock: fold long line 2021-12-17 11:28:05 +01:00
Daniel Eklöf
82ef48f666
module/clock: remove unused include 2021-12-17 11:27:53 +01:00
Daniel Eklöf
f922973450
module/battery: handle poll() failures 2021-12-17 11:25:37 +01:00
Daniel Eklöf
6612a9af9f
module/backlight: handle poll() failures 2021-12-17 11:23:59 +01:00
Daniel Eklöf
f71e7c2905
Merge branch 'x11-struts' 2021-12-11 12:32:09 +01:00
natemaia
39a5493450 Fix: X11 struts
https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm45643490065584
2021-12-09 02:07:24 +01:00
Catterwocky
b562f1310b Fix yaml indentation in docs
It is unfortunate that the first example given by the manpage is not working.
2021-12-04 17:49:39 +01:00
Daniel Eklöf
9f2197ca1c
Merge branch 'config-unsigned-ints'
Closes #129
2021-11-15 20:02:11 +01:00
Daniel Eklöf
9d94cec549
changelog: integer options incorrectly allowed < 0 values 2021-11-15 18:21:19 +01:00
Daniel Eklöf
4f0d27bc7e
particles: verify: use conf_verify_unsigned() for options that should be >= 0 2021-11-15 18:17:52 +01:00
Daniel Eklöf
f166bbbf54
modules: verify: use conf_verify_unsigned() for options that should be >= 0 2021-11-15 18:17:29 +01:00
Daniel Eklöf
b6931c6ed0
decos: verify: all integer options are supposed to be unsigned 2021-11-15 18:17:12 +01:00
Daniel Eklöf
23f12a65b2
conf: bar/border: verify: all integer options are supposed to be unsigned 2021-11-15 18:16:37 +01:00
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