Commit Graph

2695 Commits

Author SHA1 Message Date
Nikolai Aleksandrovich Pavlov 8e5bc2538b Merge pull request #1532 from mynameisfiber/feature/1288-multiple-battery
Fixes bug in multi-battery support
2016-02-21 21:32:05 +03:00
Foo 3fb4f55a06 Merge branch 'pr-1508' into develop
Closes #1508
2016-02-21 21:39:50 +03:00
Kamus Hadenes 289e59e789 Add support for OS X en0 on internal_ip 2016-02-21 21:36:53 +03:00
Micha Gorelick 7e319f2ede filename bugfix
Filename reference in `/sys/` method for the battery segment referenced
a non-existant file.
2016-02-21 13:30:07 -05:00
Nikolai Aleksandrovich Pavlov 08b19a99d2 Merge pull request #1531 from mynameisfiber/feature/1288-multiple-battery
Multiple Battery Support

Fixes #1288 
Closes #1522
2016-02-21 02:19:29 +03:00
Micha Gorelick ff2b37a633 flake8 2016-02-20 16:30:57 -05:00
Micha Gorelick 71f56ff102 Multiple Battery Support 2016-02-20 16:25:34 -05:00
Nikolai Aleksandrovich Pavlov f20565570c Merge pull request #1527 from powerline/ZyX-I-patch-1
Update command used to install macvim with brew
2016-02-10 23:10:34 +03:00
Nikolai Aleksandrovich Pavlov 73dcc78136 Update command used to install macvim with brew
Flag `--override-system-vim` is deprecated.

Fixes #1526.
2016-02-10 23:10:02 +03:00
Nikolai Aleksandrovich Pavlov b7ddafa410 Merge pull request #1525 from S0lll0s/hotfix
Fix bug in xrandr output detection
2016-02-09 01:54:05 +03:00
S0lll0s 953a55f789 Fix output detection when setting primary outputs
in powerline.bindings.wm.get_connected_xrandr_outputs
2016-02-08 22:14:03 +01:00
Nikolai Aleksandrovich Pavlov 6d7f242e1b Merge pull request #1524 from mrshu/mrshu/fix-dbus-battery-status
fix: Make dbus battery status consistent
2016-02-08 00:20:56 +03:00
Nikolai Aleksandrovich Pavlov 0f13e8a9f7 Merge pull request #1523 from mrshu/mrshu/fix-docs-small-typo
docs: Fix a small typo in develop/segments.rst
2016-02-07 19:15:50 +03:00
mr.Shu 3dd71c61da fix: Make dbus battery status consistent
* In #1499 a change was introduced that made use of the "Discharging"
  status of a battery in order to detect whether the AC power is
  available.

  The DBus part of the function that gets this data, however, stayed
  unchanged. In order to keep it consistent this commit changes it in
  such a way that it preforms the same function as the code introduced
  in #1499 by checking for the Discharging state of the battery as
  described here:
  http://upower.freedesktop.org/docs/Device.html#Device:State

Signed-off-by: mr.Shu <mr@shu.io>
2016-02-07 15:48:00 +01:00
mr.Shu f3fe6d99f6 docs: Fix a small typo in develop/segments.rst
* The display_condition key in the docs was rendered as
  'display_condition`' due to a small typo. This commit fixes that.

Signed-off-by: mr.Shu <mr@shu.io>
2016-02-07 15:32:12 +01:00
Foo c0b56d3888 Merge branch 'pr-1517' into develop
Closes #1517
2016-02-04 04:44:25 +03:00
S0lll0s 623c1f85bc Add tests for i3wm listers and workspace segment 2016-02-04 04:43:26 +03:00
S0lll0s 10243ad89f Make workspace(strip) strip `{number}:` prefix if true 2016-02-04 04:41:58 +03:00
S0lll0s db99ad1d90 Refactor i3wm segment and lemonbar binding
Move get_i3_connection and get_xrandr_outputs into bindings.wm
2016-02-04 04:37:30 +03:00
S0lll0s 24fa03567e Add listers for i3wm workspaces and outputs 2016-01-31 16:10:10 +01:00
S0lll0s bc7d571d00 Add i3wm segment for singular workspace 2016-01-31 16:10:07 +01:00
S0lll0s 53aca6b190 Add i3wm segment_info keys to developer reference 2016-01-15 15:44:07 +01:00
Nikolai Aleksandrovich Pavlov 63af1456b4 Merge pull request #1431 from S0lll0s/develop
Rename bar (bar-aint-recursive) to lemonbar
2016-01-09 01:19:46 +03:00
Foo 646b0ea5ea Improve powerline-lemonbar documentation
Changes:

- Usage determination transferred back to argparse (it wraps).
- Added complete description of lemonbar script to wm-widgets.rst.
- --interval and --height got their arguments clarified by metavar: it was not
  clear what units they use.
- --bar-command got its metavar because it is better then default BAR_COMMAND.
- --bar-command short variant is now -C.
2016-01-08 19:30:49 +01:00
Foo 8168ad1428 Improve powerline_automan: fix some bugs and add minimal argument
Bugs:
- Default action is store_true while it should be just store.
- nargs default depends on metavar while it should only depend on action.
- REMAINDER nargs is not supported.

Minimal argument means minimal mode which removes all section and creates 
a container with “synopsis” and “description” sections’ contents.
2016-01-08 19:30:49 +01:00
Foo 619ae9050e Lint test configuration 2016-01-08 19:30:49 +01:00
Foo b29988b7ec Add functional tests for lemonbar bindings 2016-01-08 19:30:49 +01:00
S0lll0s ee5f471b49 Deprecate "bar" bindings in favor of lemonbar 2016-01-08 19:30:49 +01:00
S0lll0s 7b60b941fd Let segment_info overwrite i3wm workspace output 2016-01-08 01:46:23 +01:00
Nikolai Aleksandrovich Pavlov 59e66dca32 Merge pull request #1510 from ZyX-I/remove-status-utf8
Remove status-utf8 option
2015-12-17 03:09:04 +03:00
Foo b40119a187 Remove status-utf8 option
It is incorrect to set it at all because what powerline outputs depends on 
locale used, and if locale is utf8 then tmux should already set this option.
2015-12-17 00:08:37 +03:00
Nikolai Aleksandrovich Pavlov d611cc2e43 Merge pull request #1499 from mook/1498-bat-linux-path
[Battery - Linux] Ignore AC adapters, use battery status instead
2015-11-28 23:53:06 +03:00
Mook 1e0228a3c7 [Battery - Linux] Look at battery status instead of AC online-ness
The names of AC adapters are straight from ACPI and are sometimes called
"ADPx" instead of "ACx".  To avoid confusion, look at the battery status
instead.  Check for a power supply with a capacity instead of names that
start with "BAT" for the same reason.

Fixes #1498
2015-11-28 12:07:01 -08:00
Nikolai Aleksandrovich Pavlov 78c6c730ca Merge pull request #1501 from mook/1500-mpd-utf8
[Players - mpd] Use Unicode where available
2015-11-28 22:49:06 +03:00
Mook 4265da2e1d [Players - mpd] Use Unicode where available
Otherwise the mpd function will fail when it encounters non-ASCII
metadata as it tries to do a unicode.format() and attempts to decode
the incoming data as ASCII, throwing a UnicodeDecodeError exception.

Fixes #1500
2015-11-28 11:28:51 -08:00
Nikolai Aleksandrovich Pavlov 3b50893ed0 Merge pull request #1503 from chmelevskij/patch-1
Add iTerm fix solution.
2015-11-25 01:57:08 +03:00
chmelevskij dbb968cdc3 Add iTerm fix solution.
Add a iTerm fix solution from https://github.com/powerline/fonts/issues/44
2015-11-24 22:46:44 +00:00
Nikolai Aleksandrovich Pavlov eaa772f195 Merge pull request #1495 from ZyX-I/extended-logging
Add more logging options
2015-11-22 06:35:56 +03:00
Foo 3f59edc060 Add more logging options 2015-11-22 06:08:37 +03:00
Foo 48469c02ef Enable python-3.5 build 2015-11-22 06:04:01 +03:00
Nikolai Aleksandrovich Pavlov 649757af1b Merge pull request #1491 from johnmiked15/feature/tabline_updates
Tabline and bufferlister updates
2015-11-15 06:30:11 +03:00
John Drouhard 31210242ef use str.format() instead of % operator; add comment to explain the usage of vim.eval('buflisted..') 2015-11-14 20:16:22 -06:00
John Drouhard 3f400f7d1a update test_tabline.vim with new tab:divider highlight group 2015-11-14 19:39:35 -06:00
John Drouhard a85b54d923 Update vim test module to implement 'getbufvar(...)'
This allows the tests for the buffer tablist to pass, since it now uses
getbufvar(nr, '&modified') to detect whether the buffer needs to be
modified
2015-11-14 19:39:35 -06:00
John Drouhard 63214c8a79 Update highlight groups for tabline
This changes the buffer highlight groups from buf and buf_nc to
buf, buf_nc, buf_mod, and buf_nc_mod. Doing this allows a higher
level of configurability for the highlight groups used in the
buffer-only tabline.
2015-11-14 15:12:48 -06:00
John Drouhard 6efabc170d Fix performance issue with tabline and showtabline=2
vim_getbufoption(segment, 'buflisted') was causing vim to update the tabline for every
keystroke. using vim.eval('buflisted(nr)') allows vim to optimize when
it needs to update

Fixes #1281
2015-11-14 14:49:42 -06:00
Nikolai Aleksandrovich Pavlov 4e7f39926a Merge pull request #1486 from michelesr/develop
Fix #1483 -- [Battery - Linux] Fix AC status fetch
2015-11-08 18:10:28 +03:00
Michele Sorcinelli 2063411d34 Fix #1483 -- [Battery - Linux] Fix AC status fetch
Fix a bug where the `online` property is checked inside battery
instead of AC.

As specified in issue #1483, `online` is found only inside
`/sys/class/power_supply/AC<x>/` directories, and equals `1` when cable is
plugged, and `0` when unplugged.

Edit: updated with --amend according to ZyX-I hints in order to work with
powerline daemon.
2015-11-08 15:44:32 +01:00
Nikolai Aleksandrovich Pavlov 5364919b47 Merge pull request #1482 from fernandezcuesta/develop
Include dist folder to MANIFEST.in
2015-11-04 19:30:50 +03:00
Jesús Fernández 9fcf8fa0c1 Including `dist` folder to MANIFEST.in 2015-11-04 12:19:28 +01:00