Commit Graph

1426 Commits

Author SHA1 Message Date
3f7b6c0e85 fix(plugin): Warn only for built plugins on a failed load. 2018-09-20 15:57:35 -05:00
e5f5fa59d2 refactor(plugin): Remove unused include. 2018-09-20 15:50:54 -05:00
01891e0567 refactor(plugin): Add missing braces to if statement. 2018-09-20 15:50:53 -05:00
d8687e2a3a refactor(controller): Use \brief instead of @brief for comment. 2018-09-20 15:50:53 -05:00
67835c9fb2 refactor(cmake): Add to net-src in modules CMakeLists. 2018-09-20 15:50:53 -05:00
0fbd5367b5 fix(tests): Link against shared modules library for builder test. 2018-09-20 15:50:53 -05:00
cd8b5be4c0 refactor(cmake): Add CMAKE_DL_LIBS to required lib list. 2018-09-20 15:50:53 -05:00
890abda4f7 fix(xkeyboard): Fix incorrect name for xkeyboard module. 2018-09-20 15:50:53 -05:00
0e08f47c5c fix(alsa): Add missing internal/volume alias. 2018-09-20 15:50:53 -05:00
ce6ac7869e refactor(cmake): Use a source list instead of static libs 2018-09-20 15:50:52 -05:00
95588a2c21 fix(gcc): Build all components directly into polybar executable
gcc-5 seemed to be having issues trying to link with the components
separated out into a separate static library, so for now it's easier to
just fall back on building all components together with main.cpp.
2018-09-20 15:50:52 -05:00
455e8c5596 fix(plugin): Use extern vector for list of plugin names. 2018-09-20 15:50:52 -05:00
0ba1732d59 fix(restack): Avoid double-free on exit with restackers.
Switch to maintaining a singleton in each restacker's shared library to
avoid creating memory in one DSO and freeing it in another.
2018-09-20 15:50:52 -05:00
e374dd467e fix(restack): Add missing virtual dstructor to wm_restacker. 2018-09-20 15:50:52 -05:00
cb0a351404 fix(cmake): Enable -fPIC for static jsoncpp. 2018-09-20 15:50:52 -05:00
6ff04022c4 fix(cmake): Add missing xpp dependencies
This is a spurious failure: it only fails out if the xpp headers aren't
generated before the drawtypes, modules, or utils directories begin
building. By depending on xpp explicitly, this ensures that xpp's
headers are generated first.
2018-09-20 15:50:52 -05:00
42fda5b105 feat(plugin): Add initial draft plugin architecture.
Modules and other features that require optional libraries are now
dynamically loaded on the construction of the controller via dlopen().
This allows polybar to be built with support for all of the features on
one machine, but gracefully fall back and disable those features on
machines where the required optional shared libraries are not found.
2018-09-20 15:50:51 -05:00
15e444abe7 fix(cairo): Silence possibly uninitialized variable warning. 2018-09-20 15:50:51 -05:00
7b042a6466 feat(cmake): Add MODULE library type to make_library. 2018-09-20 15:50:51 -05:00
61dba1b2dc refactor(modules): Use self-registration for modules. 2018-09-20 15:50:51 -05:00
9bccdee394 feat(cmake): add INTERNAL type for make_library
This will allow us to make internal static libraries that can be shared
across components that are not targets for installation.
2018-09-20 15:50:51 -05:00
a5fff81368 refactor(cmake): Build modules with lib deps as shared libraries 2018-09-20 15:50:51 -05:00
b31226ffcc refactor(cmake): Break out adapters into static libs
Each adapter now links against the shared libraries it requires, and the
polybar executable inherits these through linking to them via
TARGET_DEPS.
2018-09-20 15:50:51 -05:00
2fba443f56 fix(cpu): Replace %percentage-cores% normally (#1282) 2018-09-19 19:58:09 -07:00
a881d49d9d doc(net): Indicate the wireless library used
This helps us to more easily debug network issues because before it
wasn't clear if a user had built polybar with the libnl or libiw
adapter
2018-09-18 15:29:05 -07:00
fbc5a9fb7f doc: List xcb-xkb as optional dependency 2018-09-17 23:22:27 -07:00
b9777a48c5 readme: format dependencies 2018-09-17 23:22:27 -07:00
6df18fc8b3 readme: Remove GetDeb mention
GetDeb.net has been offline for a month and isn't looking like coming
back up. Now there isn't even a DNS record anymore.
2018-09-16 20:21:10 -07:00
11d66ee78d feat(mem): Add ramp and bar for swap (#1325)
Now all the tokens in the memory module also have ramp and bar counterparts.

These can be used exactly the same as `bar-used` and `ramp-used`, they are named `<bar-swap-used>`, `<bar-swap-free>`, `<ramp-swap-used>`, and `<ramp-swap-free>`
2018-09-14 20:42:04 +02:00
a2ab4699ab refactor(temperature): Do not use 'm_' prefix with local variable 2018-09-04 14:07:22 -07:00
68ae7a869a fix(mpd): Get format-online-{prefix,suffix} explicitly (#1399) 2018-09-01 00:46:06 -07:00
e794fe0d01 fix(gtest): prefer target_link_libraries
From commit 880896c6f4814f4c7798355a652dc6167be2b75f in googletest cmake
test configuration fails with errors like

CMake Error: install(EXPORT "gtestConfigInternal" ...) includes target
  "gtest" which requires target "i3ipc++" that is not in the export set.

The issue was that link_libraries also affected the googletest internal
targets that came after it making the whole thing fail.

This could also have been solved by moving link_libraries after the
configuration of googletest but according to the cmake documentation [1]
target_link_libraries should be prefered over link_libraries anyways.

[1]: https://cmake.org/cmake/help/latest/command/link_libraries.html

Fixes #1393
2018-08-31 13:17:19 -07:00
2268136971 readme: add link to polybar config examples 2018-08-29 16:11:28 -07:00
e4b7c96e3f readme: Add release badge 2018-08-26 23:04:59 +02:00
0ae4de7d1e fix(compiling): map variable without namespace. (#1395)
If polybar is compiled with `-xkb +xcursor`, `cursor.hpp` doesn't include `using std::map`, which is located in `xkb.hpp`
2018-08-24 13:37:45 +02:00
676d9d7e1a fix(tray): Reconfigure tray on error (#1392)
This will fix the issue of the tray container not being
properly reconfigured when a tray client fails to be added
or removed.
2018-08-21 21:06:58 +02:00
b32e48a440 github: Custom issue templates (#1388)
* github: Add template for bug or issue reports

* github: Add template for build issues

* github: Add tempalte for feature requests

* github: Change 'New Issue' links to issue chooser

Github provides an issue chooser dialog when custom issue templates are
used.
2018-08-17 23:34:00 +02:00
238f8fb592 refactor: Simplify if statements (#1381) 2018-08-14 23:31:44 +02:00
2a3b2b2b99 refactor(logger): Use better contrast for trace
The current colors are barely legible
2018-08-13 12:21:14 -07:00
0daae86fc9 fix(net): Allow all characters for the SSID
Don't filter out any character that is not part of the current C
locale, since it might drop some wanted characters
2018-08-09 14:09:50 -07:00
e7e24e9979 readme: Package for openSUSE Leap 15 and Tumbleweed (#1370) 2018-08-09 21:00:36 +02:00
b632e7da38 fix(cmake): Use name of found font (#1350)
Before queryfont would never change the name of the font, this ensure that it is propery updated in the caller's scope
2018-08-07 17:04:42 +02:00
fba87227c7 feat(pulseaudio): add volume interval option 2018-08-07 11:52:38 +02:00
83784fde14 feat(alsa): add volume interval option 2018-08-07 11:52:38 +02:00
c6afe4881b feat(build.sh): extend build.sh
* extend build.sh

- add option flags;
  - among others, flag --auto allows executing
    script in a non-interactive mode, where all
    unset options are defaulted automaticaly;
- add help/usage;

* post-review: --pulse-audio -> --pulseaudio

* post-review: do not install config by default
2018-08-06 20:31:37 -07:00
0421b5b05f refactor: Remove unnecessary quote trim operations
Trimming the quotes in labels and the date module are not needed at all,
because surrounding quotes are removed when loading the values from the
config.

Removing the quotes in the builder also doesn't seem to serve any
purpose at all.
2018-08-05 08:50:54 +02:00
58e269b2d6 refactor(test): Remove old testing harness
Now all tests have been converted to gtest and the old testing utility
code is not used anywhere
2018-07-31 13:20:27 -07:00
9ec6682777 tests: Convert string tests to gtest
The sstream test was removed because it only tested standard library
behvaior
2018-07-30 14:12:22 +02:00
491d9ecfab ycm: Remove -Werror from ycm flags
This way warnings are colored differently from actual errors in vim
2018-07-30 14:12:22 +02:00
a3786be26a tests: Disable -Werror for tests
This way we can still run tests with some compiler warnings
2018-07-30 14:12:22 +02:00