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
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
868502d62e
[modules/keys] add missing modules
...
forgot to add in the previous commit
2021-03-13 14:04:42 +01:00
tobi-wan-kenobi
406eadeac7
[modules/time] update once per second
...
fixes #676
2021-01-17 15:35:39 +01:00
Florian Eich
3c08eafa4a
Add TiB to disk units, add SI unit option for disk space
2020-12-02 19:08:45 +01:00
tobi-wan-kenobi
a8d1254e06
[modules/nic] Make regex for SSID a raw string
2020-12-01 15:58:55 +01:00
Florian Eich
de01d96b91
Change iw call in module nic from link to info
2020-12-01 00:19:17 +01:00
tobi-wan-kenobi
d0ee1b06e4
[modules/nic] make exclude list regular expression capable
...
Allow the usage of regexps in the exclude list, but keep the "this is a
prefix" logic for backwards compatibility.
should address (see #738 )
2020-11-30 17:21:17 +01:00
Tobias Witek
08ef42834e
[modules/nic] update documentation to include iwgetid
...
fixes #734
2020-11-13 14:56:31 +01:00
tobi-wan-kenobi
68bd6f8ef8
Merge pull request #727 from w1kl4s/master
...
Fix Python 3.9 compatibility
2020-10-14 18:30:56 +02:00
w1kl4s
1a7ae9ecc6
Fix Python 3.9 compatibility
...
Replaced threading.Thread.isAlive() with threading.Thread.is_alive()
2020-10-14 18:07:29 +02:00
Thaynã Moretti
4df495601a
Create symbolic links
2020-10-01 19:10:46 -03:00
Thaynã Moretti
6c0930cfae
Add load module tests
2020-09-02 14:33:07 -03:00
Thaynã Moretti
49de0e520b
Reduce code cognitive complexity
2020-08-30 12:37:58 -03:00
Thaynã Moretti
6f6f3cedd9
Improve meminfo parse logic
2020-08-30 12:28:48 -03:00
Thaynã Moretti
820598b1b8
Fix memory module tests
2020-08-30 12:11:48 -03:00
tobi-wan-kenobi
738a846853
Merge branch 'master' into main
2020-08-11 20:54:23 +02:00
Alexander Scheid-Rehder
5959d73cde
Fix wrong usage of asbool in layout-xkb
2020-08-06 14:49:41 +02:00
Naya Verdier
06d6739da4
[xrandr] Add autotoggle behavior to xrandr
...
Also makes i3 subscription events and widget click live-update
2020-07-26 13:21:49 -07:00
Naya Verdier
b1adc382aa
[vault] Turns out, <Leave> is triggered when going into a submenu
2020-07-25 12:38:28 -07:00
Naya Verdier
647ad44b31
ModuleNotFoundError incompatible with python 3.4, 3.5
2020-07-25 11:50:13 -07:00
Naya Verdier
22d85d6d1d
[xrandr-test] Catch all exceptions if i3 Subscription fails
2020-07-25 11:33:42 -07:00
Naya Verdier
b14eae4d6c
[xrandr] add safeguard to prevent turning off the only display
2020-07-25 10:52:57 -07:00
Naya Verdier
5874850bd5
[xrandr] Fix neighbor functionality when some displays are excluded
2020-07-25 10:52:10 -07:00
Naya Verdier
8f57bb952d
[xrandr] add exclude parameter to ignore certain display prefixes
2020-07-25 08:47:31 -07:00
Naya Verdier
5f2857ad9a
[vault] add leave_menu parameter to auto-close the menu
2020-07-25 08:46:57 -07:00
tobi-wan-kenobi
7c8ddc9c87
[doc] update docstrings as per PR #683
2020-07-18 08:23:28 +02:00
tobi-wan-kenobi
72966ee37d
[modules/{cpu,load,memory}] Add gnome-system-monitor dependency to doc
2020-07-18 08:16:57 +02:00
Andrew Reisner
edb8eaf410
Small fix to xrandr module.
2020-07-05 12:35:44 -06:00
Marvin Steadfast
6d9d325eca
[modules/nic] Using iw
to find out whats the SSID name
2020-06-30 14:49:43 +02:00
tobi-wan-kenobi
4925e09995
[modules/speedtest] no autostart, improve icons
...
do not start a speedtest automatically during startup, and improve the
icons a bit.
2020-06-26 09:40:35 +02:00
tobi-wan-kenobi
4ac8c2ef7a
[modules/speedtest] small fix for retrigger
2020-06-25 20:46:13 +02:00
tobi-wan-kenobi
44b3df5827
[modules/speedtest] make speedtest re-triggerable
2020-06-25 20:44:55 +02:00
tobi-wan-kenobi
72deb7eaf8
[modules] add speed test module
2020-06-25 20:34:35 +02:00
tobias.hannaske
3558176044
Do not execute iwgetid if the interface is recognized as tunnel
2020-06-22 10:33:49 +02:00
tobi-wan-kenobi
d38a21983c
[modules/ping] Use framework background update functionality
...
see #640
2020-05-30 17:25:47 +02:00
tobi-wan-kenobi
1c04068f89
[util/popup] replace mainloop with custom loop
...
add a custom event loop for popups that closes the menu on mouse button
release events and - most importantly - propagates this event back to
any parent menu.
fixes #633
2020-05-30 10:02:12 +02:00
tobi-wan-kenobi
4f2b283a55
[modules/vault] Emit leave events for submenus
...
this seems to at least partially fix #633
2020-05-28 21:06:22 +02:00
tobi-wan-kenobi
ebd98663c6
[modules/vault] fix copy of wrong password
...
- fix bad errors (missing "show" in pass command)
- pass in whole environment (otherwise clipboard doesn't work)
- generate lambda to avoid late binding
fixes #593
2020-05-28 21:05:58 +02:00
tobi-wan-kenobi
5dec4fd371
[docs] add psutil dependency to cpu module
2020-05-21 13:10:53 +02:00
tobi-wan-kenobi
c560c07890
[packaging/pip] Make binary utility tools functional
2020-05-10 12:52:20 +02:00
tobi-wan-kenobi
92577e7d26
[all] black code :)
2020-05-09 21:24:28 +02:00
tobi-wan-kenobi
320827d577
[core] restructure to allow PIP packaging
...
OK - so I have to admit I *hate* the fact that PIP seems to require a
subdirectory named like the library.
But since the PIP package is something really nifty to have (thanks to
@tony again!!!), I updated the codebase to hopefully conform with what
PIP expects. Testruns so far look promising...
2020-05-09 21:22:00 +02:00