Commit graph

171 commits

Author SHA1 Message Date
Daniel Eklöf
ae7d54fb80
module/alsa: add ‘volume’ and ‘muted’ options
These options allows you to select which channel to use as volume
source, and which channel to use as the source for the muted state.

With this, we can also remove the check for *all* (playback) channels
having the same volume/muted state. And with that, we no longer need
to warn when not all channels have the same volume/muted state.
2021-08-20 20:24:44 +02:00
Daniel Eklöf
be6e714eb0
module/alsa: handle ALSA device disappearing
With this patch, a non-existing ALSA device is no longer considered a
fatal error. Instead, we keep retrying until we succeed.

Furthermore, if we have successfully opened the ALSA device, and it
then disappears, we a) no longer crash, or cause 100% CPU usage, and
b) try to re-connect to the device.

With this, we now handle e.g. USB soundcards being disconnected and
then re-connected. We should also handle pseudo devices, like pipewire
provides ones, when yambar is started before pipewire.

Closes #59
Closes #61
Closes #86
2021-08-19 19:26:40 +02:00
Daniel Eklöf
8b6b82f1e5
module/river: add support for river-status v2 (‘urgent’ views) 2021-08-19 19:25:18 +02:00
Daniel Eklöf
be10465a3b
main: add -d,--log-level=info|warning|error|none
Closes #84
2021-08-15 11:43:49 +02:00
Daniel Eklöf
ba7b9e6244
module/river: add ‘per-output’ attribute
When set, river tags and seats’ view titles apply to the output yambar
is on, only.

The default is disabled, which implements the old behavior, where
river tags and seats’ view titles represent the union of all
outputs.
2021-08-09 19:56:48 +02:00
Daniel Eklöf
b97ba80aea
bar: add border.{left,right,top,bottom}-width
This allows you to configure the width of each side of the border
individually. border.width can still be used, and will set all four
borders to the same width.

Closes #77
2021-07-28 11:00:04 +02:00
Rafael Escobar
b4ce851b4d doc: fix typo and missing values 2021-07-27 21:20:29 -03:00
Daniel Eklöf
7da13a26d0
module/i3: add ‘persistent’ attribute
Add ‘persistent’, a list-of-strings specifying workspace names that
should be persistent. That is, workspaces that should never be
removed, even if empty.

Note that the workspaces _are_ still destroyed (in i3/Sway), but
yambar keeps abstractions for them around. This is useful to e.g. keep
a strict order between your “core” workspaces.

Closes #72
2021-07-26 21:41:59 +02:00
Daniel Eklöf
0ddabacc77
doc: yambar-modules-script: codespell fixes 2021-07-11 15:27:57 +02:00
Daniel Eklöf
cf41d008f8
module/script: add poll-interval option
When set to a non-negative value, the script module will call the
configured script every <poll-interval> second.

In this mode, the script is expected to write one tag set and then
exit.

This is intended to simplify the implementation of scripts that would
otherwise just do a loop + sleep.

Closes #67
2021-07-04 20:23:01 +02:00
Daniel Eklöf
0aef2f85ee
config: add bar.trackpad-sensitivity
This is an integer that specifies the amount of scrolling that needs
to be accumulated before a wheel-up/down event is emitted.

A higher value means you need to drag your fingers a longer distance
before the event is emitted.

The default is 30.
2021-07-01 17:15:54 +02:00
mzeinali
e2f3df87a3 add changes in response to PR #58 comments 2021-06-14 22:42:22 +04:30
novakne
f12db42112
doc: yambar-modules-alsa: change highlighting
fron _ to *
2021-02-26 11:30:37 +01:00
novakne
0a60604a3f
doc: yambar-modules-alsa: fix soundcard name 2021-02-26 10:59:11 +01:00
novakne
646ad0b0eb
doc: add empty line a the end of files
fix yambar-modules-sway
fix reference in *-xkb files
2021-02-23 16:25:29 +01:00
novakne
db15c63c90
doc: rename -swayxkb to -sway-xkb
add a yambar-modules-sway pages
2021-02-23 13:24:19 +01:00
novakne
faa5f7f9f1 doc: split up yambar-modules
Closes #15
2021-02-23 11:17:10 +01:00
Daniel Eklöf
153d7a2ffa
doc: yambar-modules: script: stress the importance of an empty line after a transaction
Closes #34
2021-02-21 20:27:29 +01:00
Daniel Eklöf
b679e8ce9a
doc: codespell fixes 2020-12-26 13:01:21 +01:00
Daniel Eklöf
d9496152e3
module/i3: add new tag ‘mode’
This tag is a string: the name of the currently active mode
2020-12-12 22:42:17 +01:00
Daniel Eklöf
20df360937
module/i3: add option ‘sort’
Possible values: none, ascending, descending. Sorts the workspace list
accordingly. The default value is ‘none’.
2020-12-08 19:03:30 +01:00
optimus-prime
96d2d057e0 module/mpd: add volume tag 2020-12-03 00:43:47 +05:30
Daniel Eklöf
d10ad8924b
doc/yambar-modules: document the ‘script’ module 2020-11-25 20:41:07 +01:00
Daniel Eklöf
fcfc7442c7
doc: yambar-modules: document the river module
Closes #9
2020-11-01 13:08:09 +01:00
Daniel Eklöf
41d0a17ea5
doc: yambar-tags: document the :hex and :oct suffixes 2020-09-24 17:03:36 +02:00
Daniel Eklöf
85ae4cca37
module/alsa: add ‘percent’ tag - volume level as a percentage
Fixes part of #10
2020-09-24 13:54:41 +02:00
Daniel Eklöf
c28c970be6
doc: yambar-modules: document the new 'ignore' property of 'removables' 2020-06-21 10:25:56 +02:00
Daniel Eklöf
86e6aea152
module/battery: poll-interval = 0 now disables polling 2020-06-20 11:02:57 +02:00
Daniel Eklöf
cdef89924c
doc: yambar.1: simplify sentence 2020-03-17 12:52:36 +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
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
1624e77bb3
doc: yambar: light-weight -> lightweigh, X -> X11 2020-01-24 22:58:27 +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
1cc1aa2b5f
doc: i3::application tag is Sway only 2020-01-24 21:27:07 +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
Daniel Eklöf
496f2f3185
doc: yambar-modules: fix highlighting of reference to yambar-tags 2020-01-24 21:06:19 +01:00
Daniel Eklöf
c4f9168191
meson: fix version generation from git
run_command() was only run at configure time, meaning the generated
version (that was passed on to the sources via -DYAMBAR_VERSION)
became stale.

Fix by implementing a shell script that generates a header file, and
wrap this in a custom target that is run every time (but the generated
file is only updated when the version changes)
2019-10-19 21:47:21 +02:00
Daniel Eklöf
9dbbc480e4
Rename project: f00bar -> yambar 2019-09-28 20:39:45 +02:00
Daniel Eklöf
bb72111d6c
doc/f00bar-modules: document sway-xkb 2019-08-14 22:04:10 +02:00
Daniel Eklöf
74fca1efef doc: f00bar now have more options than -v 2019-05-29 20:39:23 +02:00
Daniel Eklöf
5eef162d39 main: add -b,--backend command line option
This option allows the user to explicitly select the backend to
use. The default is still to auto-detect.
2019-05-11 10:53:09 +02:00
Daniel Eklöf
937a684f9e main: add -c,--config command line option
This option tells f00bar to load the configuration from this file
instead of searching the default locations.
2019-05-09 19:31:34 +02:00
Daniel Eklöf
f6ed729cf3 main: rename --check-config -> --validate 2019-05-09 19:24:17 +02:00
Daniel Eklöf
cfc644ba49 main: move --check-config short option from -c to -C 2019-05-09 19:22:11 +02:00
Daniel Eklöf
55c5cfab46 main: add -c,--check-config
When this option is used, we exit after loading the
configuration. Either with an error message and a non-zero exit
code (bad config), or no messages and a zero exit code (good config).
2019-05-09 19:20:24 +02:00
Daniel Eklöf
cc001b5702 doc: document -v,--version option 2019-05-07 20:26:55 +02:00
Daniel Eklöf
6753ee3dad meson: set project version
Export project version with -DF00BAR_VERSION.

This is by default set to the meson project version.

However, if git is found, and we manage to run 'git describe' and 'git
branch' in the source directory, version is set to the output of that
instead.
2019-05-07 20:23:51 +02:00
Daniel Eklöf
ea9aea8daf cmake: remove build files (replaced with meson) 2019-05-04 11:48:20 +02:00
Daniel Eklöf
64171b412a meson: doc: set 'capture: true' instead of redirecting stdout 2019-05-03 23:07:37 +02:00