Commit graph

1878 commits

Author SHA1 Message Date
tobi-wan-kenobi
07ca5cf383 [core/output] Make it possible to update modules via events
Add an event callback "update-modules" that allows various pieces of
bumblebee-status to update the status bar.
2020-04-12 14:44:02 +02:00
tobi-wan-kenobi
b9b1e65176 [modules/ping] quotes 2020-04-12 14:21:59 +02:00
tobi-wan-kenobi
8ff7af2b24 [modules] re-add ping 2020-04-12 14:21:44 +02:00
tobi-wan-kenobi
f7ee2e87bb [modules/spacer] update to latest api 2020-04-12 14:20:43 +02:00
tobi-wan-kenobi
e4151685ff [modules] re-add spacer 2020-04-12 14:19:24 +02:00
tobi-wan-kenobi
4b641c08c6 [modules/hostname] Update to new API 2020-04-12 14:18:03 +02:00
tobi-wan-kenobi
c23670adab [modules] Re-add hostname 2020-04-12 14:15:51 +02:00
tobi-wan-kenobi
0f0a745957 [modules/pihole] Update to new API 2020-04-12 14:15:03 +02:00
tobi-wan-kenobi
cf16cecfec [modules/pihole] quotes 2020-04-12 14:05:55 +02:00
tobi-wan-kenobi
5f2455ac79 [modules] Re-add pihole module 2020-04-12 14:05:30 +02:00
tobi-wan-kenobi
4cd6444bbf [core/theme] Improve items that are lists
Until now, using a list as prefix/suffix didn't work as expected,
because the corresponding method for retrieving the value was called
multiple times, and each time, the next icon would be retrieved.

Changed the logic inside the theme to only update the indices every time
that an actual update was happening.
2020-04-12 14:01:51 +02:00
tobi-wan-kenobi
4b402438cc [modules/vault] Update to new API 2020-04-11 13:35:12 +02:00
tobi-wan-kenobi
464a165c8b [util] Add popup utility 2020-04-11 13:35:04 +02:00
tobi-wan-kenobi
2837a78502 [modules/error] Minor refactoring 2020-04-11 13:21:41 +02:00
tobi-wan-kenobi
1a5a324498 [core/module] improved handling of import errors
Now, the error message includes the name of the module that was not
imported, and there's checks to ensure the "more specific" error (i.e. a
failing import *inside* the module) "wins".
2020-04-11 12:59:39 +02:00
tobi-wan-kenobi
801eceddd2 [modules/vault] quotes 2020-04-11 12:49:25 +02:00
tobi-wan-kenobi
de42edc6b7 [modules] re-add vault 2020-04-11 12:49:04 +02:00
tobi-wan-kenobi
d2c3a41db8 [doc] update notes 2020-04-11 09:26:28 +02:00
tobi-wan-kenobi
22c91e352e [modules/publicip] Update to new API 2020-04-11 09:20:19 +02:00
tobi-wan-kenobi
818c0edbc4 [modules/publicip] quotes 2020-04-11 09:15:51 +02:00
tobi-wan-kenobi
a2865f941d [modules] Re-add publicip module 2020-04-11 09:15:29 +02:00
tobi-wan-kenobi
c998af5649 [modules/traffic] Update to new API 2020-04-11 09:11:24 +02:00
tobi-wan-kenobi
f46796c653 [util/graph] Re-enable braille charts 2020-04-11 09:11:15 +02:00
tobi-wan-kenobi
008f0dc4f2 [modules/traffic] update quotes 2020-04-11 09:02:47 +02:00
tobi-wan-kenobi
605b3bc20b [modules] Re-enable traffic module 2020-04-11 09:02:11 +02:00
tobi-wan-kenobi
6b20d09d60 [doc] update notes 2020-04-11 08:59:11 +02:00
tobi-wan-kenobi
bda153720f [modules/brightness] Use tools also for reading backlight info 2020-04-11 08:58:34 +02:00
tobi-wan-kenobi
ab55cd6514 [doc] Improve theme howto 2020-04-11 08:46:09 +02:00
tobi-wan-kenobi
9b50e96b21 [modules/progress] Update to latest API 2020-04-10 17:11:06 +02:00
tobi-wan-kenobi
55c8f6af28 [modules/progress] double to single quotes 2020-04-10 16:58:54 +02:00
tobi-wan-kenobi
8875e75734 [modules] Re-add "progress" 2020-04-10 16:58:19 +02:00
tobi-wan-kenobi
1cab99175b [core/theme] slight improvements for clarity 2020-04-10 16:56:15 +02:00
tobi-wan-kenobi
99a6a11e3a [core/output] Fix drawing of separator backgrounds 2020-04-08 14:13:18 +02:00
tobi-wan-kenobi
20044762af [core/config] Ignore malformed parameters 2020-04-08 11:50:00 +02:00
tobi-wan-kenobi
f22561cf90 [core/module] remove debug output 2020-04-08 11:48:16 +02:00
tobi-wan-kenobi
cde06bd33b [core/module] Re-enable aliases 2020-04-07 21:23:42 +02:00
tobi-wan-kenobi
be4e901e42 [doc] update notes 2020-04-07 21:04:22 +02:00
tobi-wan-kenobi
c4762d92f7 [core/theme] slight refactoring 2020-04-07 21:00:55 +02:00
tobi-wan-kenobi
32e5d633f4 [core/output] Add tests for pango formatting 2020-04-07 20:59:26 +02:00
tobi-wan-kenobi
2b8eda9d72 [modules/error] Add simple module to show bumblebee errors 2020-04-07 20:44:10 +02:00
tobi-wan-kenobi
c0cc1ccd75 [core] Remove "intelligent" theme accessors
To simplify code, remove the auto-generated theme accessors for
attributes, and instead use a generic "get" method.
2020-04-07 20:44:01 +02:00
tobi-wan-kenobi
f32affa563 [modules/shell] Fix missing trim of output string
Remove starting/trailing whitespaces, \n etc.

fixes #592
2020-04-06 08:23:17 +02:00
tobi-wan-kenobi
23215303ca [core] Add "merged" pango support
With this commit, it is possible to add pango directives inside every
piece that supports direct output (e.g. defaults/prefix or <module
name>/prefix) and those will be merged - i.e. it is possible to specify
defaults inside "defaults" and override/specify in the particular
modules.
2020-04-05 14:57:52 +02:00
tobi-wan-kenobi
e653624f5a [core/output] Re-enable basic pango support
Re-enable pango as simple "pango" dict wherever a normal value (e.g.
prefix, suffix) can go.
2020-04-05 14:27:09 +02:00
tobi-wan-kenobi
37cca1c3b9 [core/output] Fully switch to i3 block abstraction
According to the unit tests, at least, the old functionality is back
again - with the additional i3 block abstraction in output in place.

Also, pango support is temporarily removed again and will be
re-implemented based on the new architecture.
2020-04-05 13:58:59 +02:00
tobi-wan-kenobi
f5052473fb [core] Add preliminary block abstraction to output
The idea is to simplify the way the output module currently works by:
- introducing an abstraction that represents blocks; these abstractions
  contain all data - uninterpreted - required to draw a block
- separately from that, whenever the block is serialized into JSON,
  do the interpretation (pango vs. non-pango, etc.)

This - theoretically - should simplify code by creating two separate
concerns: collecting the data and actually interpreting it.
2020-04-05 10:53:17 +02:00
tobi-wan-kenobi
b5c2ca6ccf [core/output] Add generic pango support
Allow any piece of a theme that specifies a set of attributes (default,
cycles, states, widgets) to use pango *instead* of the usual attributes.

If pango is present, this will have precedence.

A practical example of this can be found in the powerline-pango theme,
which is added solely for demonstration purposes.

fixes #531
2020-04-04 14:38:37 +02:00
tobi-wan-kenobi
89247d834b [core/widget] Use __ for private variables 2020-04-04 13:58:22 +02:00
tobi-wan-kenobi
7547537c81 [core/event] Remove debug output 2020-04-04 13:57:54 +02:00
tobi-wan-kenobi
a6eb6c3a11 [core/output] Use __ for private variables 2020-04-04 13:57:42 +02:00