Commit graph

2802 commits

Author SHA1 Message Date
Soykan Ertürk
f98053371e
Dependency for powerline themes 2021-08-10 20:19:30 +03:00
tobi-wan-kenobi
f6dd17b383
Merge pull request #806 from tomsaleeba/tomsaleeba/nvidiagpu-additions
feat: add GPU usage % and GPU memory usage % to nvidiagpu
2021-07-25 06:54:52 +02:00
Tom Saleeba
98c92bb78f feat: add GPU usage % and GPU memory usage % to nvidiagpu 2021-07-24 15:18:04 -06:00
tobi-wan-kenobi
4d422ffc84
Merge pull request #801 from nepoz/NetworkTestFix
Removed dependency on pytest-socket for the Network module's unit tests.
2021-07-09 08:28:16 +02:00
nepoz
5a2dfc226b Removed dependency on pytest-socket for the Network module's unit tests. 2021-07-09 00:58:09 -05:00
tobi-wan-kenobi
a678241a70
Merge pull request #800 from nepoz/network
Network
2021-07-09 07:32:59 +02:00
nepoz
5d80a5a1a0 Slight refactoring to try and break apart networkmethod 2021-07-09 00:28:00 -05:00
nepoz
48501fa534 Updated docstring 2021-07-08 23:00:57 -05:00
nepoz
f9017c3a38 Added more tests and exception handling 2021-07-08 22:55:23 -05:00
nepoz
2100a7cfdb Set up initial testing framework for network module 2021-07-08 12:10:46 -05:00
nepoz
3f524ab371 Refactoring, making use of netifaces 2021-07-08 09:04:40 -05:00
nepoz
911230c659 first complete implementation of the network module 2021-07-05 13:54:28 -05:00
nepoz
c7df1926dc Formatting fixes, fixed state management and added some icons 2021-07-05 13:09:17 -05:00
nepoz
448ab6de83 Functional display for wireless connection 2021-07-05 12:34:42 -05:00
nepoz
4987c7d3e2 added stateful behavior 2021-07-05 11:26:46 -05:00
nepoz
f141b95d8f Basic functionaly for dealingn with signal strength 2021-07-05 10:29:37 -05:00
nepoz
1232c4d960 Initial commit -- give basic message about interface being used 2021-07-05 07:55:47 -05:00
tobi-wan-kenobi
80663bdbc8
Merge pull request #798 from sayansil/main
Use the existing util.cli module in contrib/optman
2021-06-30 08:09:26 +02:00
Sayan Sil
4485b65722
Use the existing util.cli module 2021-06-30 11:31:42 +05:30
tobi-wan-kenobi
3ff2e49e5f
Merge pull request #796 from ouuan/playerctl
[modules/playerctl]: support the stopped status
2021-06-26 13:30:01 +02:00
Yufan You
37ccbd7f4a
[modules/playerctl]: support the stopped status 2021-06-26 18:19:24 +08:00
tobi-wan-kenobi
447d094fe2
Merge pull request #795 from sayansil/main
Add active gpu module using optimus-manager
2021-06-25 15:49:59 +02:00
Sayan
e5007a5729 Add active gpu module using optimus-manager 2021-06-24 23:17:35 +05:30
tobi-wan-kenobi
ec71d7fbbe
Merge pull request #793 from ouuan/playerctl
[modules/playerctl]: use `playerctl -f` and add `playerctl.args`
2021-06-11 12:56:35 +02:00
Yufan You
c4046d0cd2
[doc]: link to the README instead of manpage 2021-06-11 18:12:13 +08:00
Yufan You
51f68addcd
[modules/playerctl]: BREAKING: use playerctl -f and add playerctl.args
1. Use `playerctl -f` to format, which is more powerful. This also fixes
   #767, which is caused by missing a few fields of the metadata.
2. Add `playerctl.args`, so that users can choose a specific player,
   etc.
3. Display nothing when there's no running player.

This is a breaking change. Users need to change `{title}` to
`{{title}}`.
2021-06-11 17:38:46 +08:00
tobi-wan-kenobi
4b6b4b9052 [core] add custom minimizer capability
Add a new set of parameters to allow modules to be customly minimized.

It works like this: If a module has the parameter "minimize" set to a
true value, it will *not* use the built-in minimizer, and instead look
for "minimized" parameters (e.g. if date has the "format" parameter, it
would look for "minimized.format" when in minimized state). This allows
the user to have different parametrization for different states.

Also, using the "start-minimized" parameter allows for modules to start
minimized.

Note: This is hinging off the *module*, not the *widget* (the current,
hard-coded hiding is per-widget). This means that modules using this
method will only show a single widget - the first one - when in
minimized state. The module author has to account for that.

see #791
2021-05-24 12:56:02 +02:00
tobi-wan-kenobi
dfd23a44de [modules/layout] add a new - generic - layout module
Add a new module "layout" that will eventually evolve into the only
keyboard layout module.

Right now, it uses an external binary (get-kbd-layout) to determine the
layout of a keyboard device (because I did not manage to call libX11
with ctypes correctly).

see #788
see #790
2021-05-16 21:09:58 +02:00
tobi-wan-kenobi
902288f30d [modules/sensors] do not truncate temperature
use strip() instead of a sub-list to get the value for the temperature.

fixes #787
2021-05-11 11:23:06 +02:00
tobi-wan-kenobi
7f03c9ce2d [doc] update module documentation 2021-05-10 17:48:23 +00:00
tobi-wan-kenobi
9e20b48cee
Merge pull request #789 from fredj/sun_param_fix
Fix parameters name for the sun module
2021-05-10 17:46:24 +00:00
Frederic Junod
046b950b8a Fix parameters name for the sun module 2021-05-10 14:35:34 +02:00
tobi-wan-kenobi
afeb30e40e
Merge pull request #786 from solar-core/AddManualParam
Update modules.rst
2021-04-28 20:11:11 +02:00
Edward
9553bec7db
Update modules.rst 2021-04-28 20:48:49 +03:00
tobi-wan-kenobi
1e13798c95 [core/input] add pseudo-event "update" to selectively update modules
to trigger an update of a module (without actually triggering a mouse
interaction), use the special event "update":

bumblebee-ctl -m <module> -b update

see #784
2021-04-28 12:41:04 +02:00
tobi-wan-kenobi
028932a560 [tests/cpu] adapt tests and add per-cpu tests
fixes #785
2021-04-27 17:17:55 +02:00
tobi-wan-kenobi
fb6be007e5 [core/output] fix minimum width with padding
when calculating the minimum width of a widget, also take the padding
into consideration.

see #785
2021-04-27 17:17:28 +02:00
tobi-wan-kenobi
10c169af8a [modules/core/cpu] optionally add per-cpu widget
if the parameter "percpu" is set to true, create one widget per cpu, and
also handle warning/error state on a per-widget basis.

see #785
2021-04-27 17:17:13 +02:00
tobi-wan-kenobi
8001ed3ada [modules/cpu] Add per-cpu mode
By explicitly setting "cpu.percpu=True" as parameter, it is now possible
to get the CPU utilization on a per-cpu basis.

Future extension: One widget per CPU (add ID of CPU and add
warning/error state on a per CPU basis)

see #785
2021-04-27 17:16:54 +02:00
tobi-wan-kenobi
4a6be622a8 [modules/rotation] fix widget creation
each iteration of the rotation module created new/duplicate widgets,
causing a status bar of infinite length.

fixes #782
2021-04-03 19:29:40 +00:00
tobi-wan-kenobi
0410ac9c6b [doc/shortcut] better example for shortcut module 2021-04-03 19:24:01 +00:00
tobi-wan-kenobi
527d1706c2 [core/module] add fallback for module loading
Looks like some Python versions work with find_spec(), others with
spec_from_file_location(), so add find_spec() as fallback.

fixes #779
2021-04-02 03:30:09 +00:00
tobi-wan-kenobi
7f2ce7d76e
Merge pull request #778 from c05m4r/main
[themes] add albiceleste-powerline and rastafari-powerline
2021-03-27 20:30:55 +00:00
Marcos Gabriel Miller
abcf861fcb [themes] add rastafari-powerline 2021-03-27 17:22:35 -03:00
Marcos Gabriel Miller
10c9321c24 [themes] add albiceleste-powerline 2021-03-27 17:22:10 -03:00
tobi-wan-kenobi
3d809eb590
Merge pull request #777 from JaroslawSlabik/main
Adding the ability to change the editor to module todo
2021-03-20 11:38:01 +01:00
jslabik
7756eaaa31 Adding the ability to change the editor to module todo 2021-03-20 01:18:46 +01:00
tobi-wan-kenobi
e560649531 [modules/shell] remove obsolete event handlers
modules are now automatically updated when clicked.

fixes #776
2021-03-18 15:30:03 +01:00
tobi-wan-kenobi
4187bddad6 [modules/shell] do not default to "makewide"
to avoid unnecessarily wide shell modules, set "makewide" to false, if
it is not set at all.

fixes #775
2021-03-18 15:29:06 +01:00
tobi-wan-kenobi
65da1e2246 [doc] migrate to travis.com 2021-03-13 20:45:56 +01:00