Michael P. Soulier
ba38a9d4a0
Added a currencies parameter to the stock ticker.
2017-05-10 15:38:44 -04:00
Tobias Witek
86dad7436e
[screenshots] Add stock.png
2017-05-09 20:45:01 +02:00
tobi-wan-kenobi
d03f366dfb
Merge pull request #77 from msoulier/master
...
Adding simple stock ticker.
2017-05-09 20:37:26 +02:00
Michael P. Soulier
b4576e846f
Adding simple stock ticker.
2017-05-09 13:23:18 -04:00
Tobias Witek
f52702fbb5
[modules/traffic] Refactor code for simplicity
...
Try to reduce code duplication by having a helper function that creates
the traffic widgets and do widget generation more generically.
2017-05-05 20:58:15 +02:00
Tobias Witek
ea7227dc53
[core] Convert command output to utf-8
...
Instead of fixing encoding in every individual module (cmus, gpmdp, ...)
perform decoding to utf-8 directly in the core.
(hopefully) fixes #74
2017-04-26 07:51:11 +02:00
Tobias Witek
94c72a1e6a
[tests] Fix failing test for i3bar protocol
2017-04-26 07:50:27 +02:00
Tobias Witek
02f3559734
[input] Terminate i3 protocol header with newline
...
According to https://i3wm.org/docs/i3bar-protocol.html , the header block
needs to be terminated by a newline.
fixes #76
2017-04-26 07:37:47 +02:00
tobi-wan-kenobi
fc516102b8
Merge pull request #75 from graynk/master
...
fix for non-latin symbols in GPM module
2017-04-24 20:24:11 +02:00
graynk
0dfa80fc7a
fix should work for Python 2 and 3
2017-04-24 23:18:15 +05:00
graynk
612c3605b5
fix for non-latin symbols in GPM module
2017-04-24 22:12:00 +05:00
tobi-wan-kenobi
4f21ccb875
Merge pull request #73 from meain/patch-1
...
Update README.md
2017-04-23 07:58:36 +02:00
Abin Simon
ee0346254e
Update README.md
...
Updated module list depending on psutil and netifaces
2017-04-23 10:54:36 +05:30
Tobias Witek
02fa2438b6
[screenshots] Added screenshot for "traffic" module
2017-04-23 07:22:48 +02:00
Tobias Witek
2e5ea91291
Merge branch 'meain-traffic'
2017-04-23 07:18:15 +02:00
Tobias Witek
30bdab2767
[modules/traffic] Make traffic icons prefixes again
...
For consistent look, make the traffic icons prefixes, and change the
alignment to left again, in order to avoid "jumping" of the icons.
2017-04-23 07:15:30 +02:00
Tobias Witek
1a82a717fa
[core] Calculate minwidth including pre/suffix
...
Add the length of the prefix and suffix to the minimum width, if
applicable.
2017-04-23 07:15:07 +02:00
Tobias Witek
59fc835b88
[tests] Fix broken cmus test
...
Adding scrollable output broke the cmus test.
2017-04-22 13:17:09 +02:00
Tobias Witek
0f34826cac
[tests] Fix broken tests caused by new theme methods
...
Add "minwidth()" and "align()" mocks for i3bar output tests.
2017-04-22 13:14:52 +02:00
Tobias Witek
434473c875
[general] Minor edit: Move from "theme-" to "theme." prefix
...
Thinking about it, I find domain delimitors using "." more intuitive
than "-", so fix that.
2017-04-22 13:11:59 +02:00
Tobias Witek
1670890491
[modules/cmus] Make text description scrollable
...
Since the description of a song can get pretty lengthy, make it
scrollable.
fixes #27
2017-04-22 13:10:13 +02:00
Tobias Witek
928940d848
[core] Add a "scrollable" modifier for widget texts callbacks
...
If a module defines a callback for a widget's text, an optional
decorator "@bumblebee.output.scrollable" can be used to make the text
scrollable.
In those cases, the desired width is set to (in decreasing order of
priority):
1. whatever the widget defines as "theme.width"
2. whatever the theme defines as "width" for the module
3. whatever the commandline parameter "width" for the module is set to
4. 30 (determined by unfair dice roll)
see #27
2017-04-22 13:07:50 +02:00
Tobias Witek
92be7d3020
[core] Added min-width and alignment themeing
...
Added theme-options ("minwidth" and "align") for setting the minimum
width and the alignment of a widget.
Also, allow widget to provide defaults for the theme options by setting
an attribute in their store called "theme-<name of the theme option>".
For example, a widget can now define a default alignment by using:
widget.set("theme-align", "default-value").
2017-04-22 13:00:53 +02:00
Tobias Witek
b59ea4d5ab
[tests] Fix broken tests caused by new theme methods
...
Add "minwidth()" and "align()" mocks for i3bar output tests.
2017-04-22 11:11:26 +02:00
Tobias Witek
547910611c
[modules/traffic] fix docstring location
2017-04-22 11:10:01 +02:00
Tobias Witek
e6357f4c90
[modules/traffic] Add alignment and minimum width
...
Set the minimum width for uplink and downlink widgets to "down 1000MB",
which should be plenty, and change alignment to right (personally, I
find this looks nicer).
To not have the icons on the left side "jump around" depending on the
value, make them suffixes.
If this solution is not sufficient, alternatively, the widget itself
could perform value padding. In that case, the whole alignment and
min-width settings would be obsolete and the icons could remain on the
left side.
2017-04-22 08:26:28 +02:00
Tobias Witek
5db5e02086
[core] Added min-width and alignment themeing
...
Added theme-options ("minwidth" and "align") for setting the minimum
width and the alignment of a widget.
Also, allow widget to provide defaults for the theme options by setting
an attribute in their store called "theme-<name of the theme option>".
For example, a widget can now define a default alignment by using:
widget.set("theme-align", "default-value").
2017-04-22 08:24:52 +02:00
Tobias Witek
430c9f5e93
[modules/traffic] Minor refactoring
...
* use psutil instead of "ifconfig" in order to avoid external command
calls
* fix a small bug in the ascii theme (missing colon)
* show statistics per-nic
2017-04-22 08:11:55 +02:00
Tobias Witek
16359c883b
Merge branch 'traffic' of git://github.com/meain/bumblebee-status into meain-traffic
2017-04-22 07:45:22 +02:00
Tobias Witek
a9a6bcd015
[doc] Add note about powerline-fonts requirement
...
fixes #72
2017-04-22 07:43:31 +02:00
Abin Simon
bc26cd5dd6
basic exception handling
2017-04-21 14:52:19 +05:30
Abin Simon
8c45a63b47
update ascii icons for traffic
2017-04-21 11:44:25 +05:30
Abin Simon
a8693dcada
seperate up and down speeds for traffic widget
2017-04-21 11:40:02 +05:30
Abin Simon
d3e24c0eea
add ascii icon for traffic
2017-04-21 10:59:25 +05:30
tobi-wan-kenobi
2908a6cecd
Merge pull request #70 from meain/sensors-ascii-icon-fix
...
add sensors prefix value to ascii icons
2017-04-21 07:28:33 +02:00
Abin Simon
1cd8da788b
add sensors prefix value to ascii icons
2017-04-21 10:55:00 +05:30
Tobias Witek
563357dac1
[doc] Add new gruvbox (non-powerline) theme to README.md
2017-04-21 07:23:43 +02:00
Tobias Witek
7b38eb6fc4
[screenshots] Add new theme "gruvbox"
2017-04-21 07:23:04 +02:00
Abin Simon
ed3d9bd595
remove interface name from traffic
2017-04-21 10:52:41 +05:30
tobi-wan-kenobi
3078c91a4c
Merge pull request #69 from meain/gruvbox-theme
...
non powerline gruvbox theme
2017-04-21 07:21:32 +02:00
tobi-wan-kenobi
7153c5fa0d
Merge pull request #68 from meain/remove-unused
...
Remove unused variable in battery module
2017-04-21 07:21:13 +02:00
Tobias Witek
eaf6c0e61d
[screenshots] Updated sensors screenshot
2017-04-21 07:20:09 +02:00
tobi-wan-kenobi
75ce28ddc0
Merge pull request #67 from mijoharas/feature-fewer-significant-figures-in-sensors
...
Remove decimal places for sensors.
2017-04-21 07:18:20 +02:00
Abin Simon
14943a69cb
traffic module added
2017-04-21 10:46:16 +05:30
Abin Simon
ba3b3dd4cc
non powerline gruvbox theme
2017-04-21 08:39:59 +05:30
Abin Simon
243e4b326c
remove unused variable
2017-04-21 08:32:06 +05:30
mike-work
b1ce9645ac
Remove decimal places for sensors.
2017-04-20 23:18:11 +01:00
Tobias Witek
2052f58dde
[modules/sensors] Minor cosmetic changes + screenshot
...
Cosmetic changes:
* replace all single ticks with double ticks
* add vim line
Added screenshot for sensors module.
2017-04-19 18:53:45 +02:00
tobi-wan-kenobi
870130b8c3
Merge pull request #65 from mijoharas/feature-sensors-module
...
Feature sensors module
2017-04-19 18:48:10 +02:00
mike-work
76ec87157a
Add sensors to README.md.
2017-04-19 12:38:49 +01:00