Commit graph

11 commits

Author SHA1 Message Date
Paul Davis
3a3a361ae0
Update yabar.1.asciidoc 2018-01-18 15:56:13 -07:00
Maximilian Bosch
1f776cd5f1
ya_int_song: improve configuration of playerctl properties
It's now possible to declare which properties from `playerctl`
(supported are `album`, `artist`, `title`) should be shown in the song
indicator. Before this, the usage of `<artist> - <title>` was hard-coded
which wasn't that usable if artist and/or title were quite long, now
it's up to the user what he wants to see.

The configuration can be used like this:

```
bar-list = ["bar"];
bar: {
  position: "top";
  block-list: ["ya_song"];
  ya_song: {
    exec: "YABAR_SONG";
    internal-option1: "spotify";
    internal-option3: "title artist album";
  }
}
```
2018-01-16 18:11:58 +01:00
Maximilian Bosch
5aa1fb5eb5
Add indicator to show current indicator using libxkbcommon
The indicator is based on XCB-XKB and `libxkbcommon`. It can be tested
using the following configuration:

```
bar-list = ["bar"];
bar: {
  position: "top";
  block-list: ["ya_xkb"];
  ya_xkb: {
    exec: "YABAR_KEYBOARD_LAYOUT";
    interval: 1;
  };
}
```

The followinng new dependencies have been introduced:

- libxkbcommon-dev
- libxkbcommon-x11-dev
- libxcb-xkb-dev

Both work with libxcb and allow the usage of XKB through an XCB session.
In this case the session `ya.c` created by `src/ya_exec.c` can be used
for this indicator, so no extra X11 logic is needed.
2017-12-29 08:59:47 +01:00
Maximilian Bosch
027fd7df3d
Add simple block for playerctl 2017-10-03 19:49:49 +02:00
Jack Henschel
bea8616adc Remove invalid semicolon from documentation example 2017-04-15 20:37:58 +02:00
Jack Henschel
f436df4461 Update documentation from README 2017-04-15 10:12:59 +02:00
Jack Henschel
dc035f51fa Update documentation from wiki pages 2017-04-15 09:49:42 +02:00
Jack Henschel
f54f04338e Add links to AsciiDoc syntax documentation 2017-04-14 20:44:19 +02:00
Jack Henschel
fde727da17 Add more syntax highlighting to documentation 2017-04-14 20:31:22 +02:00
Jack Henschel
28f98a5808 Remove unnecessary whitespaces 2017-04-14 20:13:19 +02:00
Jack Henschel
de262f0e70 Inital import of yabar manpage into asciidoc 2017-04-14 16:43:15 +02:00