Commit graph

2210 commits

Author SHA1 Message Date
Tobias Witek
48c21a902e [tests/module] Skip failing tests in Python 3.{4,5} 2020-03-06 14:45:09 +01:00
Tobias Witek
d2e8057141 [modules] Add CPU module
Also, change minwidth from theme.minwidth to widget property
2020-03-06 14:33:40 +01:00
Tobias Witek
51faef9fd4 [modules/kernel] Make widget dynamic (update if kernel changes) 2020-03-06 14:31:08 +01:00
Tobias Witek
efc2e4f94e [modules] Separate modules into core & contrib
Also, improve errors when importing a module fails.

Also, add more tests.
2020-03-06 14:14:34 +01:00
Tobias Witek
bb2c92732e [tests/traffic] Fix tests for module traffic 2020-03-06 07:03:18 +01:00
tobi-wan-kenobi
afa1645e60
Merge pull request #570 from somospocos/sync-raw
Sync _raw and full_text
2020-03-06 07:01:32 +01:00
tobi-wan-kenobi
14032393b8
Merge pull request #569 from somospocos/remove-debug-print
modules/traffic] Remove debug print()
2020-03-06 07:01:19 +01:00
me
0269bf1433 [core/output] sync _raw with full_text minwidth-wise 2020-03-06 00:19:25 +02:00
me
7187228d07 modules/traffic] Remove debug print() 2020-03-05 23:27:38 +02:00
Tobias Witek
47950240d0 [tests/core/module] Add tests for widget retrieval by name 2020-03-05 21:17:06 +01:00
Tobias Witek
28b891ef37 [doc] Extend module migration documentation 2020-03-05 21:13:48 +01:00
Tobias Witek
0a0e39b516 [modules] Re-add load module 2020-03-05 21:13:15 +01:00
Tobias Witek
6171c792e3 [modules/traffic] Fix format string width calculation 2020-03-05 21:08:29 +01:00
Tobias Witek
d19eb72296 [tests/module] Test generation of error widget
When a module/widget throws, an error widget should be produced.
2020-03-04 21:06:09 +01:00
tobi-wan-kenobi
fc6aa3ca15
Merge pull request #568 from RomainGehrig/master
[modules/pomodoro] Fix bug arising when the refresh interval is greater than 1s
2020-03-04 20:56:16 +01:00
Romain Gehrig
d59b0161a3 [modules/pomodoro] Fix bug arising when the refresh interval is greater than 1s 2020-03-04 16:27:31 +01:00
Tobias Witek
533b8ca0cc [modules] Re-add module nic 2020-03-01 14:36:12 +01:00
Tobias Witek
7420434358 [doc] Started module migration guide 2020-03-01 14:32:30 +01:00
Tobias Witek
b839a9eb44 [modules/pulseaudio] Raise if not able to handle error 2020-03-01 14:09:45 +01:00
Tobias Witek
a1aec8fff6 [core/module] Add error widgets if a module throws
Module should have to care less about thrown exceptions.
2020-03-01 14:08:16 +01:00
Tobias Witek
a7d22edcda [core/output] Add prefix/suffix metadata
see #561
2020-02-29 20:57:00 +01:00
Tobias Witek
cb3482ae27 [core/decorators] Simplify and test scrolling 2020-02-29 14:05:02 +01:00
Tobias Witek
302296ee03 [core/output] Add custom "raw" data variable
see #561
2020-02-29 13:44:27 +01:00
tobi-wan-kenobi
1865b5488b
Merge pull request #565 from somospocos/align-cpuload
[modules/cpu2] align cpu load
2020-02-29 13:39:55 +01:00
me
87725f783a [modules/cpu2] align cpu load
This fixes a rough edge in cpu2 module where variable size of total cpu
load value string was making the whole bar slide during updates. CPU
load is right-alligned now and takes 3 chars in the widget, so load can
go up to 100 and still fit.
2020-02-28 17:30:52 +02:00
Tobias Witek
b99ac07ef0 [core/decorators] Add more tests 2020-02-27 21:39:04 +01:00
Tobias Witek
46d376a382 [README] bump module count (libvirtvms) 2020-02-27 21:25:51 +01:00
tobi-wan-kenobi
7404156a5f
Merge pull request #562 from maxpivo/master
Added modules/libvirtvms.py but no way to unit test.
2020-02-27 21:25:28 +01:00
Max Pivo
c7e1759e85 Added libvirtvms.py module 2020-02-27 12:23:10 -08:00
Max Pivo
d5ba541ac2 Merge https://github.com/maxpivo/bumblebee-status 2020-02-27 12:22:44 -08:00
Max Pivo
01449014f5 Merge https://github.com/maxpivo/bumblebee-status 2020-02-27 12:22:37 -08:00
maxpivo
e2a87b9f68
Deleted pending new version from different repo 2020-02-27 12:21:25 -08:00
Max Pivo
4fdba0be19 Merge branch 'master' of git://github.com/tobi-wan-kenobi/bumblebee-status 2020-02-27 12:20:02 -08:00
Max Pivo
d05f38cf93 Adding Libvirt Module which displays count of active libvirt VMs.
requires 'libvbirt'
2020-02-27 12:17:33 -08:00
Tobias Witek
3114811bc5 [README] Add dzen2 bridge 2020-02-27 21:03:56 +01:00
tobi-wan-kenobi
e390cdae32
Merge pull request #564 from naota/patch-2
Properly connect to the selected VPN profile
2020-02-27 21:02:52 +01:00
tobi-wan-kenobi
479cac182b
Merge pull request #563 from naota/patch-1
import popup_v2
2020-02-27 21:02:07 +01:00
Naohiro Aota
caf9696e2b
Properly connect to the selected VPN profile
The vpn module is trying to connect "self._connected_vpn_profile", but it is None when no VPN is connected. As a result, the VPN connecting menu is not working. Use "self._selected_vpn_profile" to connect the selected one.
2020-02-27 11:47:15 +09:00
Naohiro Aota
e6fef1baca
import popup_v2
The vpn module is using bumblebee.popup_v2, but does not import it, causing nothing on click.
2020-02-27 11:40:37 +09:00
Ryan Riggs
fcf8d648d8 Added modules/libvirtvms.py but no way to unit test. 2020-02-26 15:23:00 -08:00
Tobias Witek
7414f9fa01 [README] Add bumblebee-bridge-dwm
Very cool addition from somospocos.

fixes #561
2020-02-26 06:57:24 +01:00
Tobias Witek
162398c6b6 [core/output] Make error widgets critical 2020-02-24 15:07:34 +01:00
Tobias Witek
0cc744ed15 [core/output] Cache widget output for selective redraw
To make redraw work correctly and elegantly with supplementary elements
(e.g. prefix, postfix, separators), always do a full redraw of the bar
(to make the theme update correctly, but cache the actual *data* to
display inside the output.
2020-02-24 15:05:58 +01:00
Tobias Witek
1a093a73b1 [core] Add prefix/postfix support 2020-02-24 14:54:11 +01:00
Tobias Witek
37e1deaa6f [tests] Add (partial) decorator tests 2020-02-24 14:20:54 +01:00
Tobias Witek
0a266b607e [core/output] Unify common i3 attributes 2020-02-24 14:06:57 +01:00
Tobias Witek
84833dc7db [core] Add (partial) support for states
Add states to the modules and widgets. Widgets are mostly just a
pass-through (backwards compatibility, and ease of use - making states
directly inside the widgets would require more code inside the modules
to ensure that each widget is correctly updated).

Still missing:
- Separators during partial update (right now, it takes one interval
until separators are drawn correctly)
2020-02-23 21:13:49 +01:00
Tobias Witek
fd57af9325 [tests] Make tests pass again 2020-02-23 14:55:13 +01:00
Tobias Witek
5e673482d3 [core] Nicify error widget 2020-02-23 14:52:58 +01:00
Tobias Witek
65186baea6 [core] Make error widget scrollable
Restrict error module to 15 characters and make it scrollable.
2020-02-23 14:47:47 +01:00