Commit graph

252 commits

Author SHA1 Message Date
tobi-wan-kenobi
3e79b95df4 [modules/battery] quotes 2020-04-19 13:42:16 +02:00
tobi-wan-kenobi
8738ced325 [modules/getcrypto] Update to latest API 2020-04-19 10:38:09 +02:00
tobi-wan-kenobi
317f1f60b5 [modules/getcrypto] quotes 2020-04-19 10:35:27 +02:00
tobi-wan-kenobi
be63fdc059 [modules] re-enable getcrypto 2020-04-19 10:35:09 +02:00
tobi-wan-kenobi
369af17b56 [modules/rotation] Update to latest API 2020-04-19 10:33:29 +02:00
tobi-wan-kenobi
0984c5502c [modules/rotation] quotes 2020-04-19 10:30:44 +02:00
tobi-wan-kenobi
ad14ff81a7 [modules] re-enable rotation 2020-04-19 10:30:22 +02:00
tobi-wan-kenobi
c591505977 [modules/gpmdp] Update to latest API 2020-04-19 10:24:06 +02:00
tobi-wan-kenobi
10a1bc18ad [modules/gpmdp] quotes 2020-04-19 10:14:56 +02:00
tobi-wan-kenobi
2782b13dd2 [modules] re-enable gpmdp 2020-04-19 10:14:34 +02:00
tobi-wan-kenobi
756c4a113a [modules/layout-xkb] Updated to latest API 2020-04-19 10:13:44 +02:00
tobi-wan-kenobi
60de268850 [modules/sun] Minor refactoring 2020-04-19 10:07:22 +02:00
tobi-wan-kenobi
87fb82965f [modules/sun] Update to latest API 2020-04-19 10:04:01 +02:00
tobi-wan-kenobi
bd27c05fc7 [modules/layout-xkb] quotes 2020-04-19 09:57:54 +02:00
tobi-wan-kenobi
deae6ac98d [modules] re-enable layout-xkb 2020-04-19 09:57:33 +02:00
tobi-wan-kenobi
635373e9a0 [modules/sun] quotes 2020-04-19 09:50:18 +02:00
tobi-wan-kenobi
b29c0594c9 [modules] re-enable sun 2020-04-19 09:50:04 +02:00
tobi-wan-kenobi
63a2881be8 [modules/stock] update to latest API 2020-04-19 09:49:06 +02:00
tobi-wan-kenobi
6b0e73db9b [modules] re-enable stock 2020-04-19 09:44:25 +02:00
tobi-wan-kenobi
968df75945 [modules/sensors2] incorporate latest changes 2020-04-19 09:43:44 +02:00
tobi-wan-kenobi
0a6f914232 [modules/github] Update to latest API 2020-04-18 17:05:19 +02:00
tobi-wan-kenobi
2c4af853a5 [modules/github] quotes 2020-04-18 17:00:17 +02:00
tobi-wan-kenobi
ed67f5515e [modules] re-enable github 2020-04-18 16:59:50 +02:00
tobi-wan-kenobi
ad3e3704ec [modules/notmuch_count] Update to latest API 2020-04-18 16:41:30 +02:00
tobi-wan-kenobi
fc3e5a8bb2 [modules/notmuch_count] quotes 2020-04-18 16:36:14 +02:00
tobi-wan-kenobi
7b26bd9bbc [modules] re-enable notmuch_count 2020-04-18 16:35:45 +02:00
tobi-wan-kenobi
aa3d84f8ec [modules/indicator] Update to latest API 2020-04-18 16:34:27 +02:00
tobi-wan-kenobi
626ed97fcd [modules] re-enable indicator 2020-04-18 16:24:26 +02:00
tobi-wan-kenobi
69c57836df [modules] layout-xkbswitch: Update to new API 2020-04-18 16:24:02 +02:00
tobi-wan-kenobi
d1b0d8b123 [modules] re-enable layout-xkbswitch 2020-04-18 16:19:30 +02:00
tobi-wan-kenobi
206cff1fb5 [modules/todo] Implement improvement from PR #598 2020-04-17 12:53:46 +02:00
tobi-wan-kenobi
8bb47c14aa [modules] Use central location libary instead of individual 2020-04-15 13:26:08 +02:00
tobi-wan-kenobi
0ef6a165e4 [modules/currency] Update to new API 2020-04-13 19:40:50 +02:00
tobi-wan-kenobi
3a0b4c8b38 [modules/currency] quotes 2020-04-13 19:35:27 +02:00
tobi-wan-kenobi
92d30efec7 [modules] re-enable currency 2020-04-13 19:35:06 +02:00
tobi-wan-kenobi
7bdbdce087 [modules/taskwarrior] update to latest API 2020-04-13 14:22:31 +02:00
tobi-wan-kenobi
cb4c561091 [modules/taskwarrior] quotes 2020-04-13 14:20:03 +02:00
tobi-wan-kenobi
c00fe79226 [modules] re-enable taskwarrior 2020-04-13 14:19:36 +02:00
tobi-wan-kenobi
f43ef579d8 [modules/arch-update] Update to latest API 2020-04-13 14:07:39 +02:00
tobi-wan-kenobi
7ff95446ee [modules/arch-update] quotes 2020-04-13 13:59:40 +02:00
tobi-wan-kenobi
2d12c083c9 [modules] re-enable arch-update 2020-04-13 13:58:58 +02:00
tobi-wan-kenobi
05a3c5d8f6 [modules/todo] Update to latest API 2020-04-13 13:57:24 +02:00
tobi-wan-kenobi
89b69369c6 [modules] re-enable todo 2020-04-13 13:53:54 +02:00
tobi-wan-kenobi
d683b02b40 [modules/libvirtvms] Update to latest API 2020-04-13 13:52:15 +02:00
tobi-wan-kenobi
99d88e1e30 [modules] re-enable libvirtvms 2020-04-13 13:49:38 +02:00
tobi-wan-kenobi
d2a35f7d02 [modules/docker_ps] Update to latest API 2020-04-13 13:38:05 +02:00
tobi-wan-kenobi
e270ec55ef [modules/docker_ps] quotes 2020-04-13 13:31:48 +02:00
tobi-wan-kenobi
15ae56d2ee [modules] Re-enable docker_ps 2020-04-13 13:31:30 +02:00
tobi-wan-kenobi
95d046d5e8 [modules/twmn] Update to latest API 2020-04-13 13:30:35 +02:00
tobi-wan-kenobi
7edaadffdf [modules] re-enable twmn 2020-04-13 13:27:15 +02:00
tobi-wan-kenobi
82502c5651 [modules/apt] Update to new API
While at it, remove dependency on "parse" module and replace with more
standard "re" dependency.
2020-04-13 13:25:08 +02:00
tobi-wan-kenobi
964407534f [modules] re-enable apt 2020-04-13 13:12:41 +02:00
tobi-wan-kenobi
d0a264da21 [modules/yubikey] Update less frequently 2020-04-13 09:44:06 +02:00
tobi-wan-kenobi
bfc3832428 [modules/yubikey] Update to new API 2020-04-13 09:40:24 +02:00
tobi-wan-kenobi
acc36a41ae [modules] re-enable yubikey 2020-04-13 09:32:41 +02:00
tobi-wan-kenobi
e7b9a0e2f8 [modules/uptime] Update to new API 2020-04-13 09:32:29 +02:00
tobi-wan-kenobi
6fd0dbd19d [modules] re-enable uptime 2020-04-13 09:29:16 +02:00
tobi-wan-kenobi
94ef496ee6 [core] Add a decorator for never updating a module 2020-04-13 09:27:03 +02:00
tobi-wan-kenobi
06ca5024dc [modules] re-enable xkcd 2020-04-13 09:20:17 +02:00
tobi-wan-kenobi
f2a62ca7c6 [modules/amixer] update to new API 2020-04-13 09:19:18 +02:00
tobi-wan-kenobi
f5c1c4975f [modules] re-enable amixer 2020-04-13 09:14:22 +02:00
tobi-wan-kenobi
0306760eb3 [modules/redshift] No digits for transition anymore
Having 2 digits *after* the comma for transitions seems excessive -
truncate value at the digit sign.
2020-04-12 20:36:32 +02:00
tobi-wan-kenobi
d87b18a824 [modules/redshift] Simplify structure 2020-04-12 20:28:11 +02:00
tobi-wan-kenobi
e36694c03d [modules/ping] Simplify update logic 2020-04-12 20:13:18 +02:00
tobi-wan-kenobi
c2eea913e8 [modules/ping] Update to new API 2020-04-12 14:44:44 +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
4b402438cc [modules/vault] Update to new API 2020-04-11 13:35:12 +02:00
tobi-wan-kenobi
2837a78502 [modules/error] Minor refactoring 2020-04-11 13:21:41 +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
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
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
bda153720f [modules/brightness] Use tools also for reading backlight info 2020-04-11 08:58:34 +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
2b8eda9d72 [modules/error] Add simple module to show bumblebee errors 2020-04-07 20:44:10 +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
a71828f0b4 [modules/weather] Small improvements 2020-04-04 07:47:53 +02:00
tobi-wan-kenobi
a7effbff78 [modules/weather] move to contrib 2020-04-02 22:10:37 +02:00
tobi-wan-kenobi
5ff0269662 [modules/weather] Update to new API 2020-04-02 22:10:18 +02:00
tobi-wan-kenobi
18154dd74f [modules] Adjust update schedules
Make a few modules update more seldomly, to reduce CPU consumption.
2020-04-02 16:30:31 +02:00
tobi-wan-kenobi
658fbd2c1c [modules/hddtemp] Update to new API 2020-03-31 21:06:44 +02:00
tobi-wan-kenobi
52ca6e5a43 [modules/hddtemp] double to single quotes 2020-03-31 21:03:30 +02:00
tobi-wan-kenobi
0873a58dc0 [modules] Re-added hddtemp 2020-03-31 21:03:07 +02:00
tobi-wan-kenobi
f262080e78 [modules/shell] Small refactoring
Use threads a bit differently do make do with fewer helper functions.
2020-03-30 21:18:28 +02:00
tobi-wan-kenobi
422a9986b4 [modules/shell] Update to new API 2020-03-30 21:09:09 +02:00
tobi-wan-kenobi
251a23d2f1 [modules/shell] double quotes -> single quotes 2020-03-30 20:56:35 +02:00
tobi-wan-kenobi
006a729be3 [modules] re-add shell module 2020-03-30 20:56:08 +02:00
tobi-wan-kenobi
c625baa47a [core] Move "every" to decorators module 2020-03-29 14:36:44 +02:00
tobi-wan-kenobi
11ebcee29a [tests] Fix kernel module test 2020-03-29 14:35:20 +02:00
tobi-wan-kenobi
bd7ff3c8f1 [core] Allow modules to specify default update interval
Expanding on the implementation in d582016, add a decorator
`core.module.every()` that allows a module to specify how often to
update the module's state.

This can still be overridden using the CLI parameter `interval`.
2020-03-29 14:32:47 +02:00
tobi-wan-kenobi
b66b13211e [modules/dunst] Fix toggling
At least Void Linux doesn't like kill -SIGUSR<N>

Also, added some debugging to inspect state changes for modules/widgets.

Also also, fix problem with min width, if no minwidth is set
2020-03-29 14:14:30 +02:00
tobi-wan-kenobi
95360fe522 [modules/brightness] Remove remaining reference to 'engine' 2020-03-28 21:17:38 +01:00
tobi-wan-kenobi
d5820160dc [modules/sensors2] Fix runtime errors 2020-03-28 13:44:45 +01:00
Tobias Witek
0e538a6088 [modules/weather] double quotes to single quotes 2020-03-15 14:05:26 +01:00
Tobias Witek
633bbdd6ff [modules] Reimport weather module 2020-03-15 14:05:13 +01:00
Tobias Witek
6975f179fc [modules/sensors2] Update to newest API 2020-03-15 13:53:12 +01:00
Tobias Witek
665fde5399 [modules/sensors2] Double to single quotes 2020-03-15 13:44:54 +01:00
Tobias Witek
d0406ffe83 [modules] Reimport sensors2 2020-03-15 13:44:38 +01:00
Tobias Witek
7fb626aa2c [modules/disk] Update to new API
Also, remove deprecated parameters
2020-03-15 13:40:13 +01:00
Tobias Witek
2007f8d0b9 [modules/disk] Quotes conversion 2020-03-15 13:34:09 +01:00
Tobias Witek
7aa1bc7b44 [modules] Reimport disk module 2020-03-14 14:04:45 +01:00
Tobias Witek
5851b104c5 [modules/xrandr] Adapt to new API 2020-03-13 13:56:08 +01:00
Tobias Witek
932d362d30 [modules/xrandr] Change quotation 2020-03-11 21:35:45 +01:00
Tobias Witek
59dc5f8047 [modules] Reimport xrandr 2020-03-11 21:35:25 +01:00
Tobias Witek
be2864b063 [modules/redshift] Update to latest framework 2020-03-07 14:13:25 +01:00
Tobias Witek
2592069fb9 [modules/redshift] Single quotes 2020-03-07 14:06:18 +01:00
Tobias Witek
967521593c [modules] Import redshift 2020-03-07 14:06:01 +01:00
Tobias Witek
867e87913d [modules/battery] Add warning log if no estimates 2020-03-07 13:56:05 +01:00
Tobias Witek
7cdcde0080 [modules/dunst] Update to make working again 2020-03-07 13:54:45 +01:00
Tobias Witek
4bc5f73ccc [modules/dunst] Single quotes 2020-03-07 13:49:09 +01:00
Tobias Witek
b373de4cad [modules] Import module dunst 2020-03-07 13:48:54 +01:00
Tobias Witek
f24cd6fa83 [modules/brightness] Update APIs 2020-03-07 13:37:56 +01:00
Tobias Witek
cfa4d0df48 [modules/brightness] Single quotes 2020-03-07 13:34:22 +01:00
Tobias Witek
e6181e2d94 [modules/brightness] Re-import brightness module 2020-03-07 13:34:02 +01:00
Tobias Witek
8efa101380 [util/format] Tests and minor renaming 2020-03-07 13:33:28 +01:00
Tobias Witek
47e8d5b82b [core] replace widget.minwidth with widget.set('theme.minwidth') 2020-03-07 13:21:19 +01:00
Tobias Witek
b841ba3c93 [modules/battery] Re-enable battery module 2020-03-06 20:57:32 +01:00
Tobias Witek
9b96c142d5 [modules/battery] Migrate constructor 2020-03-06 20:37:46 +01:00
Tobias Witek
c2b0c8e754 [modules/core] Add battery module 2020-03-06 20:34:30 +01:00
Tobias Witek
56a6173282 [modules/memory] Simplify and use util methods 2020-03-06 14:52:16 +01:00
Tobias Witek
13e512d1f1 [modules/memory] Fix imports an module constructor 2020-03-06 14:48:11 +01:00
Tobias Witek
5ccf60a16b [modules] Re-added module memory 2020-03-06 14:46:33 +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
0a0e39b516 [modules] Re-add load module 2020-03-05 21:13:15 +01:00
Tobias Witek
533b8ca0cc [modules] Re-add module nic 2020-03-01 14:36:12 +01:00
Tobias Witek
b839a9eb44 [modules/pulseaudio] Raise if not able to handle error 2020-03-01 14:09:45 +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
66bdfacf6f [modules/pulseaudio] Show bar charts
Re-enable optional display of barcharts
2020-02-23 13:59:47 +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
e0df8b84e5 [core] Add input handling
Add a (half-finished) input library, that for now simply allows
registration and triggering of events.

As next steps, the trigger will happen as part of a separate thread that
reads input events.

Additionally, invoking commands via a execute() will be supported.

Thirdly, there is need of a way to selectively update the affected
modules (widgets), which should be possible given that the event
contains both the instance (widget ID) and name (module name).
2020-02-07 21:28:29 +01:00
Tobias Witek
a70c82dc4c [modules] Add date, time, datetime
Add modules to show date, time and date and time. Instead of introducing
a "fancy" aliasing mechanism, simply implement time and date in terms of
datetime, by inheriting and overwriting selectively.
2020-02-04 21:10:05 +01:00
Tobias Witek
3a531c359f [core/module] Add config to module
Add access for all modules to the commandline parameters (called
"config" in bumblebee-status)
2020-02-03 21:30:06 +01:00
Tobias Witek
854d7dc470 [modules] Add first "real" module: kernel
Since 'kernel' is small and shows static information, have this be the
very first module added.
2020-02-02 14:41:22 +01:00
Tobias Witek
66537fbe05 [core/output] Rewrite to hide sys.stout
Add generic "draw()" method that redirects internally to the actual
calls. These can now produce JSON, which is nicer because:

1. Easier to use during testing
2. More flexible
3. Centralizes printing (somewhat)

Still, the "suffix" concept isn't really nice, but so far, I have no
better approach.
2020-02-01 21:37:38 +01:00