Commit graph

1341 commits

Author SHA1 Message Date
Daniel Eklöf
1ce108f24e
Merge branch 'i3-strip-workspace-numbers' 2022-02-14 18:33:59 +01:00
Daniel Eklöf
ca407cd166
module/i3: treat workspaces on the form N:name as numerical 2022-02-14 18:33:14 +01:00
Daniel Eklöf
a2cf05a64d
module/i3: add ‘strip-workspace-numbers’ option
This is a boolean option. When set, “N:” prefixes will be stripped
from the workspaces’ name tag, *after* having been sorted (if the
‘sort’ option is being used).

This makes it useful to arrange the workspaces in a fixed order, by
prefixing the names with a number in the Sway config:

  set $ws1 “1:xyz”
  set $ws2 “2:abc”

Then, in the yambar config:

  i3:
    sort: ascending
    strip-workspace-numbers: true
2022-02-11 21:44:43 +01:00
Daniel Eklöf
605490c872
overline: new decoration
Similar to the ‘underline’ decoration
2022-02-10 20:49:09 +01:00
Daniel Eklöf
6ac046dec3
config: implement font fallback
Fonts in the configuration may now be a comma separated list of
fonts (all using the fontconfig format). The first font is the primary
font, and the rest are fallback fonts that will be searched, in order.
2022-02-10 18:34:15 +01:00
Daniel Eklöf
2cfe45ee81
changelog: add new ‘unreleased’ section 2022-02-05 18:02:50 +01:00
Daniel Eklöf
1fc6e77926
Merge branch 'releases/1.8' 2022-02-05 18:02:29 +01:00
Daniel Eklöf
3cc142a273
changelog: fix 1.8.0 header 2022-02-05 18:00:01 +01:00
Daniel Eklöf
5edc226c00
meson/pkgbuild: bump version to 1.8.0 2022-02-05 17:57:40 +01:00
Daniel Eklöf
973aa929c1
changelog: prepare for 1.8.0 2022-02-05 17:57:17 +01:00
Daniel Eklöf
b8ab8669cb
Merge branch 'fcft-3' 2022-02-05 17:54:51 +01:00
Daniel Eklöf
227f9c608a
ci: use fcft master branch 2022-02-05 17:54:39 +01:00
Daniel Eklöf
ff238e62ba
fcft: adapt to API changes in fcft-3.x 2022-02-05 12:51:08 +01:00
Daniel Eklöf
4fea561c6c
log: fold long line 2022-02-05 12:50:39 +01:00
Daniel Eklöf
52e0b5f3d1
tag: fix inverted logic for KiB vs KB logic 2022-02-01 19:01:04 +01:00
Daniel Eklöf
1cf14a7f80
Merge branch 'river-example' 2022-02-01 18:58:48 +01:00
Soc Virnyl S. Estela
7945a561d0
Add river-tags example 2022-01-17 10:01:55 +08:00
Daniel Eklöf
1d9297593e
bar/wayland: error handling when dispatching Wayland events 2022-01-09 23:12:52 +01:00
Daniel Eklöf
a59d3cfbd6
Merge branch 'wayland-survive-output-disable-enable'
Closes #106
2022-01-01 11:48:39 +01:00
Daniel Eklöf
f053ddff7d
changelog: bar does not exit when monitor is disabled/unplugged 2022-01-01 11:47:24 +01:00
Daniel Eklöf
56c4a1c751
bar/wayland: add support for new events in wl-output v4
* name()
* description()
2022-01-01 11:47:24 +01:00
Daniel Eklöf
2a0a722c13
bar/wayland: handle layer surface being closed
If the output we’re mapped on is disabled (or disconnected), the
compositor will unmap us.

Up until now, our response was to simply shutdown.

Now, we destroy the surface, remove all pending rendering buffers, and
all further calls to commit() will return immediately, without doing
anything.

If the user has configured a specific monitor to use, we wait for that
output to come back. When it does, we re-create the layer surface and
then we’re up and running again.

Bars running on the “default” monitor are handled in a similar
way. Since we don’t have an output name from the configuration, we
instead store the name of the output we were mapped on, when we’re
either unmapped from that output, or that output global is destroyed.

As soon as we see that output come back, we re-create the layer
surface.
2022-01-01 11:43:40 +01:00
Daniel Eklöf
37e7c2b2c1
Merge branch 'removables-audio-cd'
Closes #146
2021-12-26 16:13:56 +01:00
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