Commit graph

300 commits

Author SHA1 Message Date
NBonaparte
c516e8e78d
Merge pull request #184 from dangersalad/workspace-label-tip
Tip for spaces in workspace labels
2018-01-18 18:18:06 -08:00
Paul Davis
3a3a361ae0
Update yabar.1.asciidoc 2018-01-18 15:56:13 -07:00
NBonaparte
42fe1b6ded
Merge pull request #180 from Ma27/ya_song-configuration
ya_int_song: improve configuration of playerctl properties
2018-01-16 09:36:11 -08: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
NBonaparte
a659dd7e6f
Merge pull request #176 from j-dong/master
Reset colors unconditionally
2018-01-15 22:44:08 -08:00
NBonaparte
6a36994569
Merge pull request #177 from Ma27/document-nixos-packages
Document NixOS support
2018-01-06 16:07:21 -08:00
Maximilian Bosch
993f1b5a7b
Document NixOS support
Yabar is available in NixOS since 2016 (see 093c42161f (diff-f66c765a8c3d400246d177ff137b880f))
2018-01-02 12:00:21 +01:00
NBonaparte
d9f75933f1
Merge pull request #170 from Ma27/keyboard-layout
Show current keyboard layout using libxkb
2018-01-01 17:43:31 -08: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
James Dong
2f1ee69d4c Reset colors unconditionally 2017-12-27 16:56:58 -06:00
NBonaparte
ffedc48296
Merge pull request #174 from Lesik/patch-1
Update information on Debian installation
2017-12-12 13:35:34 -08:00
Lesik
ce20fe75f7
Update information on Debian installation 2017-12-12 22:20:41 +01:00
NBonaparte
813b87ba5c
Merge pull request #171 from lunixoid/master
Fixed missprint
2017-10-30 20:42:25 -07:00
Roman Kalashnikov
f1b1eff481
Fixed missprint 2017-10-30 19:25:43 +03:00
NBonaparte
cbecc7766e Merge pull request #169 from Ma27/fix-header-segfault
Fix segfault caused by wrong value order in type enum
2017-10-11 23:51:49 -07:00
Maximilian Bosch
65c240ac80
Fix segfault caused by wrong value order in type enum 2017-10-12 07:58:38 +02:00
NBonaparte
713543754d Merge pull request #166 from Ma27/playerctl-integration
Integrate `playerctl` into the bar
2017-10-08 17:15:23 -07:00
Maximilian Bosch
bd4d6c2fd7
Fix enum size in yabar.h to fix compiler warning 2017-10-05 19:45:14 +02:00
Maximilian Bosch
9809dcd07d
Make playerctl support optional with a compiler flag
As Ubuntu doesn't provide `playerctl` by default, it's better to make
this optional.

Furthermore another build with playerctl support has been added to the
CI matrix.
2017-10-05 08:24:54 +02:00
Maximilian Bosch
027fd7df3d
Add simple block for playerctl 2017-10-03 19:49:49 +02:00
NBonaparte
5cc4773dc6 Merge pull request #165 from Ma27/improve-power-symbols
Append emptystring after charge/battery string
2017-09-17 13:43:27 -07:00
Maximilian Bosch
df030f4a68
Init Nix derivation for simple development 2017-09-13 16:25:10 +02:00
Maximilian Bosch
57af058443
Append emptystring after charge/battery string
The charge string and battery string are preferably unicode symbols
that clash with the actual battery status. A space between them
makes the battery status information more readable.
2017-09-12 23:26:01 +02:00
NBonaparte
d3934344ba Merge pull request #162 from pmatos/pmatos-lto
Move to optimizing for speed with LTO.
2017-09-08 23:11:48 -07:00
NBonaparte
c9e25e9f6e Merge pull request #163 from pmatos/pmatos-werror
Remove duplicate const declaration.
2017-09-08 20:18:12 -07:00
Paulo Matos
d9bcb5f828 Remove duplicate const declaration. 2017-09-08 23:47:37 +02:00
Paulo Matos
db24e923da Move to optimizing for speed with LTO. 2017-09-08 23:39:09 +02:00
NBonaparte
ce1dea3791 fix #157 by capping battery capacity 2017-07-28 21:30:18 -07:00
NBonaparte
9779a5e04b Fix GCC 7 inline error from #154 2017-06-28 17:47:16 -07:00
Jack
0a8d11ad66 Merge pull request #149 from geommer/dev-asciidoc
Move Yabar documentation to AsciiDoc
2017-04-22 17:15:56 +02:00
Jack Henschel
bea8616adc Remove invalid semicolon from documentation example 2017-04-15 20:37:58 +02:00
Jack Henschel
7131c58088 Remove documentation from README and add links to man page and example config 2017-04-15 10:36:15 +02:00
Jack Henschel
4e810109c1 Extend .gitignore with doc/yabar.1 man page (auto generated) 2017-04-15 10:32:43 +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
a17d63448e Add building instructions for documentation to README 2017-04-14 20:49:55 +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
9e649929f3 Run travis jobs in build matrix (parallel) 2017-04-14 18:12:23 +02:00
Jack Henschel
5a922eb486 Fix name of asciidoc package in Ubuntu 2017-04-14 17:13:49 +02:00
Jack Henschel
f0cfb5a5ce Remove obsolete yabar man page 2017-04-14 17:08:59 +02:00
Jack Henschel
e678b9bbe2 Let Travis CI automatically build yabar and documentation 2017-04-14 17:08:20 +02:00
Jack Henschel
3ab78dbe49 Add Make target for automatic man page generation 2017-04-14 17:07:50 +02:00
Jack Henschel
de262f0e70 Inital import of yabar manpage into asciidoc 2017-04-14 16:43:15 +02:00
NBonaparte
a1bd2673a1 get current desktop in handler 2017-04-11 12:44:14 -07:00
NBonaparte
8d0fef394b handle EWMH current desktop changes 2017-04-10 19:14:27 -07:00
Jack Henschel
96714d0025 More graceful error handling for ya_wifi internal block
In case the wireless connection was not yet established or has been lost,
the block should not immediately fall into an error state and exit.
Rather, print a warning message and keep trying...
2017-03-30 08:34:40 +02:00
Jack Henschel
d682dd6c8d Introduce new function for warning handling of internal blocks 2017-03-30 08:34:06 +02:00
NBonaparte
e96cc9ae72 Draw Pango backgrounds and underlines through Cairo (#145)
Filter out underline and bg and draw it ourselves
2017-03-29 14:32:43 -07:00