Risto Toijala
eb1775d5f8
Implement shared execs for custom modules
...
For more complicated configurations with several actions activated
through clicks on various connected modules, it is currently necessary
to have each of those connected modules exec their own subprocess to
produce the wanted output. This is problematic because it greatly
increases CPU usage.
Implement a new configuration option for bars, "custom-execs", which
contains an array of subprocess specifications ("exec", "exec_if",
"interval", "restart-interval"). The bar runs each of these executables
and reads their output. The output is in the form of a JSON object with
module names as keys and either strings (for "raw" type output) or
objects (for "json" type output) as values. These values are forwarded
to the custom modules named by the keys.
2021-10-14 18:27:08 +03:00
Risto Toijala
ccdc9b8e0b
Separate worker thread into util class
2021-10-05 20:19:22 +03:00
Alex
6eb9606f23
Merge pull request #1274 from RobertMueller2/master
...
sway/window: include floating_nodes when considering window count for class
2021-10-03 10:27:26 +02:00
Alex
03ebbf6d98
Merge pull request #1275 from dartkron/master
...
Fix Clock crash on empty string in timezones field
2021-10-03 10:26:05 +02:00
Sergey Mishin
174db444d6
Fix Clock crash on empty string in timezones field
...
Also fixed timezones behavior: now waybar starting with the first timezone in timezones list and falling back to timezone field only if timezones omit or has no elements.
2021-10-03 03:27:54 +00:00
Rene D. Obermueller
9972384597
sway/window: include floating_nodes when considering window count for class
2021-10-02 18:35:38 +02:00
Alex
8b4dafd701
Merge pull request #1273 from ElyesH/master
...
Fix spelling errors
2021-10-02 18:29:41 +02:00
Elyes HAOUAS
f18eb71ad7
Fix spelling errors
...
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
2021-10-02 18:13:17 +02:00
Alex
7af6e8413c
Merge pull request #1271 from alebastr/sni-passive-visibility
...
fix(tray): fix visibility of Passive items
2021-10-02 09:49:57 +02:00
Aleksei Bavshin
fbedc3d133
fix(tray): fix visibility of Passive items
...
`show_all` call from `Tray::update` attempts to walk the widget tree and
make every widget visible. Since we control individual tray item
visibility based on `Status` SNI property, we don't want that to happen.
Modify `Tray::update` to control the visibility of a whole tray module
only and ensure that the children of `Item` are still visible when
necessary.
2021-10-02 00:08:45 -07:00
Alex
fe5ac0fe08
Merge pull request #1257 from tokyovigilante/fix-catch2
...
Update catch2 dependency 2.13.3 -> 2.13.7
2021-09-23 22:40:31 +02:00
Ryan Walklin
f638fe473a
Update catch2 dependency 2.13.3 -> 2.13.7
2021-09-22 11:43:25 +12:00
Alex
8534175c59
Merge pull request #1252 from gavinbeatty/fix-sway-language-tabs
...
sway/language: remove tabs, indent with 2 spaces
2021-09-19 19:08:28 +02:00
Alex
6778a79033
Merge pull request #1253 from Darkclainer/per-core-cpu-usage
...
Add cpu usage for every core
2021-09-19 19:00:46 +02:00
Darkclainer
6e5a0bc80a
Add cpu usage for every core
2021-09-19 14:02:25 +03:00
Gavin Beatty
fe547901fa
sway/language: remove tabs, indent with 2 spaces
2021-09-18 15:28:45 -05:00
Alex
cee08eccd1
Merge pull request #1251 from Alexays/revert-1250-master
...
Revert "Add CPU usage for every core"
2021-09-18 13:50:25 +02:00
Alex
67c7302938
Revert "Add CPU usage for every core"
2021-09-18 13:50:16 +02:00
Alex
8489646b66
Merge pull request #1250 from Darkclainer/master
...
Add CPU usage for every core
2021-09-18 13:48:39 +02:00
Alex
6938921e92
Merge pull request #1239 from mazunki/default-gateway
...
Added support for {gwaddr} as a variable
2021-09-18 13:47:32 +02:00
mazunki
7b73cc472f
Merge branch 'default-gateway' of github.com:mazunki/waybar into default-gateway
2021-09-18 02:09:57 +02:00
mazunki
1c91c71dcd
updated original debug message with gateway ip, similar, yet not identical to `ip route`
2021-09-18 02:09:25 +02:00
mazunki
6142dfba6a
updated original debug message with gateway ip, similar, yet not identical to default via 10.13.37.100 dev enp7s0 metric 2
...
10.13.37.0/24 dev enp7s0 proto kernel scope link src 10.13.37.97 's output
2021-09-18 01:51:16 +02:00
mazunki
13239417d8
fixed wrong dependency for make target
2021-09-18 01:20:16 +02:00
mazunki
5f083193e4
fixed tab indentation to spaces, removed debug
2021-09-18 01:12:58 +02:00
Darkclainer
a51ac59252
Merge remote-tracking branch 'origin/master'
2021-09-17 22:30:31 +03:00
Darkclainer
8da940f929
Update man pages for cpu usage
2021-09-17 22:22:14 +03:00
Alex
ce9e8aead3
Merge pull request #1222 from mswiger/use_g_memdup2
...
Use g_memdup2 instead of g_memdup
2021-09-17 20:56:47 +02:00
Alex
73ce2a99ff
Merge pull request #1238 from Matan1x/master
...
round brightness
2021-09-17 20:56:28 +02:00
Alex
b028a47d57
Merge pull request #1243 from alebastr/config-unittest
...
Unit-tests for configuration includes
2021-09-17 20:56:09 +02:00
Darkclainer
4bf577e89b
Add CPU usage for every core
2021-09-17 21:18:21 +03:00
Aleksei Bavshin
5991bbb741
ci: run unit-tests
2021-09-15 22:20:46 +07:00
Aleksei Bavshin
d7d606b721
doc: update documentation for 'include'
2021-09-15 22:20:45 +07:00
Aleksei Bavshin
0c1d3e30b6
fix(config): preserve explicit null when merging objects
2021-09-15 22:20:44 +07:00
Aleksei Bavshin
ccc60b4245
refactor(config): more sensible multi-bar include behavior
2021-09-15 22:15:27 +07:00
Aleksei Bavshin
8912bd3ed0
test: multi-bar config with includes
2021-09-15 21:34:56 +07:00
Aleksei Bavshin
9f3b34e4d9
test: validate configuration load
2021-09-15 21:34:55 +07:00
Aleksei Bavshin
6eba62f060
test: add build configs for catch2
2021-09-15 21:34:55 +07:00
Aleksei Bavshin
1f16d7955d
refactor(config): drop getValidPath
2021-09-15 21:34:54 +07:00
Aleksei Bavshin
1f7d399b8e
refactor(config): remove style handling from Config
2021-09-15 21:34:53 +07:00
Aleksei Bavshin
4fff2eaaa0
refactor(client): change config visibility to public
2021-09-15 21:34:10 +07:00
Aleksei Bavshin
b377520a38
refactor(client): extract config handling into a new class
2021-09-14 13:15:54 +07:00
Rolf Vidar Mazunki Hoksaas
95ecff0551
added example tooltip usage
2021-09-09 20:12:20 +02:00
Rolf Vidar Mazunki Hoksaas
2c380a53ca
added support for the {gwaddr} variable
2021-09-09 20:05:18 +02:00
Matan1x
aacd0fcc65
round brightness
2021-09-08 17:12:30 +03:00
Michael Swiger
4f76c9bd43
Only use g_memdup2 for glib >= 2.68
2021-08-29 13:11:04 -07:00
Alex
4e256cf3f0
Merge pull request #1223 from xi/cpu-mem-format-icon
...
add format-icons for cpu und memory
2021-08-23 09:22:02 +02:00
Alex
eae94ee14a
Merge pull request #1224 from xi/rm-travis-shield
...
rm travis-ci shield
2021-08-23 09:10:07 +02:00
Tobias Bengfort
e0260ac4fc
rm travis-ci shield
2021-08-23 08:02:08 +02:00
Tobias Bengfort
7b4b5e55a2
support format-icon for cpu und memory
2021-08-23 07:30:19 +02:00