Commit Graph

2851 Commits

Author SHA1 Message Date
Philip Wellnitz
a183901363 fix dividers 2021-03-16 05:54:27 +09:00
Philip Wellnitz
e04be6f5c9 adapt linter 2021-03-16 05:43:57 +09:00
Philip Wellnitz
a0aef34642 add center seperators 2021-03-16 04:16:20 +09:00
Philip Wellnitz
13d8261367 rework gradient parsing; center bar; selectors 2021-03-16 02:00:38 +09:00
Philip Wellnitz
7310d53ade
i3 segments rework ()
rework i3wm segments
2021-03-15 03:45:17 +09:00
Philip Wellnitz
a1309cc116 bump version to 2.8.2 2021-03-01 16:45:49 +09:00
sol
1869cc8bed
Use updated i3ipc syntax in i3 segments/listers ()
Close 

Co-authored-by: s-ol <s-ol@users.noreply.github.com>
2021-01-08 19:25:53 +09:00
Cédric Schieli
c31f83f831
Emulate a right prompt in bash ()
* Allow passing args from render() to hl() and hlstyle() functions

* New escape arg in ShellRenderer's hlstyle() to enable/disable escaping

* Fix invalid escape sequence

* Emulate a right prompt in bash

Fixes 

* Document the new hl_args argument
2021-01-06 18:20:15 +09:00
Tim Gates
999c84a5cb
docs: fix simple typo, proided -> provided ()
There is a small typo in powerline/lint/spec.py.

Should read `provided` rather than `proided`.
2020-12-22 18:58:38 +09:00
StopMotionCuber
f401ee3106
Fix escaping of sh specific characters in tmux ()
* Fix escaping of sh specific characters in tmux

* Only have single pane_id (these line length is getting out of hand)
2020-10-28 17:39:17 +09:00
StopMotionCuber
a6060c760a
Fix non-meaningful venv names. ()
* Add feature to ignore certain virtualenv names

* Add tests for testing ignored names (specific as well as default)

* Don't use `zsh.environ` as this does not stringify the environment
2020-10-27 21:50:36 +09:00
Ivan Zhukov
f4ef122759
Fallback to a current window in tabline() ()
Ref 
2020-10-22 07:19:55 +09:00
Philip Wellnitz
a1a36699b3
Update .travis.yml 2020-10-12 18:11:48 +09:00
Philip Wellnitz
0cccb7b4bc
Update README.rst 2020-10-12 18:07:37 +09:00
StopMotionCuber
a80bbdf17d
Updated uptime segment to have show time in a better way ()
* Updated uptime segment to have show time in a better way

* Made current solution backwards compatible

* Include proposed change for proper uptime support

* Updated tests to reflect new default values for uptime
2020-10-06 04:32:36 +09:00
StopMotionCuber
91ec7982ca
Fixed getcwd for tmux () 2020-10-06 02:43:09 +09:00
Thom Wiggers
40c3e092b6
Prefer Python 3 in the Vim plugin ()
Python 2 is EOL, so it makes more sense to use Python 3 as the preferred version of Python rather than just fall back on it.
2020-09-26 17:50:51 +09:00
Tais P. Hansen
ff629c388e
Implement GitHub actions for build and publish ()
Requires a secret named PYPI_TOKEN containing a valid PyPI API token.

Note that this drop support for Python 2.6 as GitHub Actions only
supports Python 2.7+.

Fixes 
2020-09-21 20:03:15 +09:00
StopMotionCuber
73881c1dce
Shifted away from (abandoned) Yahoo API to OpenWeatherMap ()
* Shifted away from (abandoned) Yahoo API to OpenWeatherMap
* Calculate gradient based on converted temperature
* Added Stubs for https://freegeoip.app as well as https://api.openweathermap.com
* Updated tests for weather segment with OpenWeatherMap mocking
* Make Weather API key configurable
* Added documentation for the OpenWeatherMap API keys
2020-09-19 14:31:49 +09:00
रोहित हिल
992c5464ba
Factored statement always executed in conditional () 2020-09-07 14:28:56 +09:00
Andrew Garrett
8c6874d855
Render cpu_load_percent segment even when psutil returns 0.0 ()
Although the docs for psutil say 0.0 is a nonsense value that's returned
first and supposed to be ignored, but on a relatively idle system it
will actually return 0.0 occasionally after that. So at the expense of
displaying that "nonsense value" when the statusbar first loads, this
change gets rid of the visual disruptions of having the segment pop out
and back in periodically.

Fixes .

Co-authored-by: 2rs2ts <2rs2ts@github>
2020-07-12 19:31:52 +09:00
StopMotionCuber
14a4100c4c
Fixes elapsed time that is provided with a ',' instead of a '.' () 2020-06-04 15:00:00 +09:00
Jesse Houwing
65f968ad3a
Use --no-optional-locks to reduce conflicts with other git editors ()
Adding --no-optional-locks will cause fewer interference with other git clients.
2020-05-27 01:50:45 +09:00
Philip Wellnitz
59a5425597
Add timezone argument to date and fuzzy_time segments ()
* add basic timezone support
2020-05-26 20:08:44 +09:00
Brendan
da3ed7e720
Update to include default path for apt-get () 2020-05-24 17:56:47 +09:00
Philip Wellnitz
c26938a980 add subprocess include back to setup.py 2.8.1 2020-05-20 20:32:35 +09:00
Philip Wellnitz
3dc174919d add version file 2020-05-20 20:26:24 +09:00
Philip Wellnitz
022d77dc1e
Update .travis.yml 2020-05-15 07:19:18 +09:00
Philip Wellnitz
1234aafa5d
Update setup.py 2.8 2020-05-15 05:33:27 +09:00
Philip Wellnitz
2bddcc9617
Update tips-and-tricks.rst 2020-04-23 21:42:10 +09:00
Ritiek Malhotra
7300197433
Select a D-Bus media player automatically ()
Using the segment `powerline.segments.common.players.dbus_player` does
not work when a player has not been specified explicitly. In such a
case, with this PR, the segment will automatically choose the 1st media
player that implements "org.mpris.MediaPlayer2.Player".

This can be useful in displaying tracks from media players in powerline
without having to know the corresponding media player's properties
before-hand.

For example, this also works for displaying media tracks being played
on Google Chrome (since Chrome implements D-Bus interface) on YouTube,
etc.
2020-03-13 15:37:58 +09:00
Philip Wellnitz
b0ea99430c
Update README.rst
Add basic config to readme
2020-02-04 21:12:16 +09:00
沈煜
d498f29261 Add vim plugin coc.nvim segments. ()
* Add vim plugin coc.nvim segments.

* Add coc highlight group to colorschemes: default, solarized, solarizedlight.

* Fix coc highlight group in colorschemes: solarized, solarizedlight.

* Add document for segments.vim.plugin.coc.coc
2019-12-02 00:09:22 +09:00
Max Coplan
4b24e715dc Update Powerline for ipython >=7 ()
* Update Powerline for ipython >=7

The method used for `since_5` does not work, but `since_7` does, however it is not documented.
I personally haven't found `c = get_config()` to be useful once you have generated the default `~/.ipython/profile_default/ipython_config.py` file.

Since `c.TerminalInteractiveShell.simple_prompt` is set to `False` by default, it's not worth mentioning it.  There's many other things that **can** break if you change the default config options too.  Additionally, `simple_prompt=True` doesn't fatally break anything, just make things less pretty.  So it'd be better to not have that, but mention if things don't look pretty to make sure they didn't change that default.

* Making it work on latest version

* spacing
2019-11-20 16:39:25 +09:00
Torstein Husebø
15c611ca46 doc: installation, fix typo ()
* doc: installation, fix typo

* Fix a lot of documentation/comment typos
2019-11-03 04:29:20 +09:00
StopMotionCuber
d6c06e002a Refactor tmux bindings ()
* Replaced tmux display with proper formatting of things already available

* Removed client_pid as it is not available

* Also removed other occurrences of explicit `tmux execution`
2019-10-25 18:03:41 +09:00
Lucas Hosseini
5b3e401215 Update divider background color for tmux solarized ()
Current settings leads to the following under tmux (on the right side):
2019-10-20 16:09:39 +09:00
Brendan Byers
43c1707206 Parse out letters in maj. version string () 2019-10-20 16:04:55 +09:00
Philip Wellnitz
589461e109
Fix ()
* Added [BOM] (byte-order-mark) text in file encoding info

Like in vim-airline
See https://github.com/vim-airline/vim-airline/pull/992 and fdb74f549d

Ref 

* Test with no text added, to check travis results

* make bom a sepaate segment
2019-10-12 17:02:57 +09:00
BK
f4dfe39112
Merge pull request from BlitzKraft/2027-use-command-v
Addressing  gradually - use command -v
2019-10-11 21:25:56 +00:00
BK Bolisetty
af557ae60c Reverting test_shells to use which 2019-10-11 15:15:28 -05:00
BK Bolisetty
fff5c2a7b0 Trigger travis-ci 2019-10-10 13:39:45 -05:00
Philip Wellnitz
4abebb49eb
Fix ; Improve fish binding ()
* fix fish resize squid

* fix fish vi squid
2019-10-10 18:36:48 +09:00
BK Bolisetty
f9937ab922 Fix - Use command -v instead of which 2019-10-09 23:40:13 -05:00
BK Bolisetty
ef6c9b435c Addressing gradually - use command -v
Currently only changed tests/test.sh and tests/test_bar/test.sh .
2019-10-09 21:51:36 -05:00
Philip Wellnitz
6569cc6cfd disable unstable network_load segment test 2019-10-08 16:05:45 +09:00
Philip Wellnitz
f9ce8201c4
Fix ()
* ipython fix

* ipython fix

* ipython fix

* fix ipython startup

* better fix for nbsp

* ipython7: fix attributes

* Change ipythen tests to use new binding

* ipython test: use proper config
2019-10-08 03:29:43 +09:00
Philip Wellnitz
bc33b1ce31
fix () 2019-09-27 14:33:24 +02:00
sol
2428f78ea4 support vertically-aligned multi-monitor setups in lemonbar ()
* support vertically-aligned multi-monitor setups in lemonbar

* Fix expected args in lemonbar test
2019-09-26 08:57:56 +02:00
Philip Wellnitz
25737d90eb Disable vterm tests to check ci 2019-09-23 20:14:19 +09:00