Commit graph

2489 commits

Author SHA1 Message Date
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
Tobias Witek
a69e058dd1 [core] Add decorators library
For now, simply add a decorator that allows for scrolling of text
2020-02-23 14:47:20 +01:00
Tobias Witek
a2446a36af [core/theme] Better separator handling
Add a generic method to the theme to get the "previous" value of an
attribute.
2020-02-23 14:31:30 +01:00
Tobias Witek
66bdfacf6f [modules/pulseaudio] Show bar charts
Re-enable optional display of barcharts
2020-02-23 13:59:47 +01:00
Tobias Witek
b2064142d0 [util] Add graph library
Add a library for drawing horizontal and vertical bar graphs (thanks to
@somospocos for contributing!)
2020-02-23 13:59:22 +01:00
Tobias Witek
3496fa622a [modules] Add preliminary version of pulseaudio module
Add pasink/pasource and __pulseaudio (internal module, not intended for
direct use).
2020-02-23 13:45:42 +01:00
Tobias Witek
30c539f1f2 [util/cli] Add option to ignore return codes
Add an option that ignores the return code of an execute, instead of
throwing an error (which sometimes causes ugly try/except blocks in
client code)
2020-02-23 13:44:49 +01:00
Tobias Witek
7a1cd4b613 [util] Add 'formatting' utility methods
Add helpers to unify formatting of bool/list/int values.
2020-02-23 13:43:44 +01:00
Tobias Witek
a9c1c3581a [core/theme] Iconset needs to be auto by default 2020-02-22 14:11:10 +01:00
Tobias Witek
30d34b12e0 [core/theme] Fix loading of custom iconset 2020-02-22 14:08:28 +01:00
Tobias Witek
3bb857f250 [core/theme] Add iconset support
Allow themes to specify iconsets. To do so, add a new util library
"util.algorithm", which currently contains support for deep merging of
dicts.
2020-02-22 14:07:24 +01:00
Tobias Witek
ef75e593f7 [core/config] Add stub for autohide
Add stub for autohide so that my status bar doesn't terminate with an
error (easier testing)
2020-02-22 13:44:44 +01:00
Tobias Witek
38410adcb8 [core/theme|output] Add separators
Add a way for themes to specify custom separators. Doing that, make
nicer interfaces for drawing "supplementary" components (separators)
for widgets and generalize the attribute retrieval within the theme.
2020-02-22 13:42:44 +01:00
tobi-wan-kenobi
7c210eeac7
Merge pull request #558 from somospocos/pasink-bug
[modules/pulseaudio] fix bug #557
2020-02-20 20:45:58 +01:00
tobi-wan-kenobi
c4df758240
Merge pull request #559 from somospocos/cpu2-themecolors
Cpu2 themecolors
2020-02-20 20:45:43 +01:00
tobi-wan-kenobi
414418a922
Merge pull request #560 from ljupchokotev/patch-1
Remove print statement when aligning text
2020-02-20 20:45:24 +01:00
Ljupcho Kotev
ef1c56480e
Remove print statement when aligning text
Fixes #550. The print statement results in a "Could not parse JSON" error.
2020-02-20 14:24:06 +01:00
me
bf03ad7184 [modules/cpu2] use theme palette colors for core load bars
As discussed in #556.

- added palette red, orange, yellow, green to nord-powerline

- when used with nord-powerline (or any other theme that has these
  palette colors) and cpu2.colored=1, the cpu2 module will use these
  custom colors to display core load graphs; when colors are missing
  from a theme - it will use default colors
2020-02-20 01:24:15 +02:00
me
d0418446e1 [theme/nord-powerline] add palette colors 2020-02-20 01:10:28 +02:00
me
04e31897d4 [modules/pulseaudio] fix bug #557
most likely a copy/paste blunder. sorry
2020-02-20 00:57:07 +02:00
Tobias Witek
0751b7c084 [core/theme] Add inline named color support
Add named colors that can be specified directly in the "colors" array
within a theme.

fixes #556
2020-02-19 21:39:44 +01:00
Tobias Witek
5134ce3b5b [core/output] Add option to align scrolling
Use -p <module>.theme.align=<left|center|right> to align scrolling
output.

fixes #550
2020-02-17 20:58:42 +01:00