Merge remote-tracking branch 'upstream/master' into tray-child-window
This commit is contained in:
commit
921e2d0670
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
COLOR: "ON"
|
COLOR: "ON"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
python3-xcbgen \
|
python3-xcbgen \
|
||||||
libuv1-dev \
|
libuv1-dev \
|
||||||
xcb-proto
|
xcb-proto
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
@ -115,7 +115,7 @@ jobs:
|
|||||||
if [ "$POLYBAR_BUILD_TYPE" = "tests" ]; then
|
if [ "$POLYBAR_BUILD_TYPE" = "tests" ]; then
|
||||||
sudo apt-get install -y lcov
|
sudo apt-get install -y lcov
|
||||||
fi
|
fi
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
@ -125,7 +125,7 @@ jobs:
|
|||||||
run: ./common/ci/configure.sh
|
run: ./common/ci/configure.sh
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd $BUILD_DIR
|
cd "$BUILD_DIR"
|
||||||
make
|
make
|
||||||
- name: Collect initial coverage
|
- name: Collect initial coverage
|
||||||
if: ${{ matrix.polybar_build_type == 'tests' }}
|
if: ${{ matrix.polybar_build_type == 'tests' }}
|
||||||
@ -134,17 +134,17 @@ jobs:
|
|||||||
- name: Tests
|
- name: Tests
|
||||||
if: ${{ matrix.polybar_build_type == 'tests' }}
|
if: ${{ matrix.polybar_build_type == 'tests' }}
|
||||||
run: |
|
run: |
|
||||||
cd $BUILD_DIR
|
cd "$BUILD_DIR"
|
||||||
make check
|
make check
|
||||||
- name: Collect coverage
|
- name: Collect coverage
|
||||||
if: ${{ matrix.polybar_build_type == 'tests' }}
|
if: ${{ matrix.polybar_build_type == 'tests' }}
|
||||||
run: |
|
run: |
|
||||||
lcov --capture --no-external --directory . -o cov_tests.info
|
lcov --capture --no-external --directory . -o cov_tests.info
|
||||||
lcov --add-tracefile cov_base.info --add-tracefile cov_tests.info -o cov_total.info
|
lcov --add-tracefile cov_base.info --add-tracefile cov_tests.info -o cov_total.info
|
||||||
lcov --remove cov_total.info ${PWD}'/build/*' ${PWD}'/tests/*' ${PWD}'/lib/*' -o cov.info
|
lcov --remove cov_total.info "${PWD}/build/*" "${PWD}/tests/*" "${PWD}/lib/*" -o cov.info
|
||||||
- name: Upload Coverage
|
- name: Upload Coverage
|
||||||
if: ${{ matrix.polybar_build_type == 'tests' }}
|
if: ${{ matrix.polybar_build_type == 'tests' }}
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
flags: unittests
|
flags: unittests
|
||||||
files: ./cov.info
|
files: ./cov.info
|
||||||
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -31,9 +31,11 @@ jobs:
|
|||||||
RELEASE_TAG=${GITHUB_REF#refs/tags/}
|
RELEASE_TAG=${GITHUB_REF#refs/tags/}
|
||||||
fi
|
fi
|
||||||
echo "Publishing Version $RELEASE_TAG"
|
echo "Publishing Version $RELEASE_TAG"
|
||||||
echo "RELEASE_TAG=$RELEASE_TAG" >> "$GITHUB_ENV"
|
{
|
||||||
echo "POLYBAR_DIR=polybar-$RELEASE_TAG" >> "$GITHUB_ENV"
|
echo "RELEASE_TAG=$RELEASE_TAG"
|
||||||
echo "POLYBAR_ARCHIVE=polybar-$RELEASE_TAG.tar.gz" >> "$GITHUB_ENV"
|
echo "POLYBAR_DIR=polybar-$RELEASE_TAG"
|
||||||
|
echo "POLYBAR_ARCHIVE=polybar-$RELEASE_TAG.tar.gz"
|
||||||
|
} >> "$GITHUB_ENV"
|
||||||
|
|
||||||
# Checks out the target tag
|
# Checks out the target tag
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
11
CHANGELOG.md
11
CHANGELOG.md
@ -10,10 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Breaking
|
### Breaking
|
||||||
- `custom/script`: now doesn't hide failing script if it's output is not changing ([`#2636`](https://github.com/polybar/polybar/issues/2636)). Somewhat similar behaviour can be imitated with `format-fail`, if necessary.
|
- `custom/script`:
|
||||||
|
- now doesn't hide failing script if it's output is not changing ([`#2636`](https://github.com/polybar/polybar/issues/2636)). Somewhat similar behaviour can be imitated with `format-fail`, if necessary.
|
||||||
|
- If the `exec` command produced no output and exited with a non-zero exit code the module is no longer completely empty, but just has an empty `%output%` token. If you relied on this behavior to hide the module under certain circumstances, make sure the script exits with an exit code of zero. ([`#2857`](https://github.com/polybar/polybar/discussions/2857), [`#2861`](https://github.com/polybar/polybar/pull/2861))
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
- Respect `CMAKE_INSTALL_PREFIX` when installing default config ([`#2770`](https://github.com/polybar/polybar/pull/2770))
|
- Respect `CMAKE_INSTALL_PREFIX` when installing default config ([`#2770`](https://github.com/polybar/polybar/pull/2770), [`#2917`](https://github.com/polybar/polybar/pull/2917))
|
||||||
|
- Change default `CMAKE_INSTALL_PREFIX` to `/usr`. Installations with default flags will now go into `/usr` instead of `/usr/local` ([`#2917`](https://github.com/polybar/polybar/pull/2917))
|
||||||
- Bump C++ version to C++17 ([`#2847`](https://github.com/polybar/polybar/pull/2847))
|
- Bump C++ version to C++17 ([`#2847`](https://github.com/polybar/polybar/pull/2847))
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
@ -33,6 +36,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Added `enable-struts` option in bar section to enable/disable struts ([`#2769`](https://github.com/polybar/polybar/issues/2769), [`#2844`](https://github.com/polybar/polybar/pull/2844)) by [@VanillaViking](https://github.com/VanillaViking).
|
- Added `enable-struts` option in bar section to enable/disable struts ([`#2769`](https://github.com/polybar/polybar/issues/2769), [`#2844`](https://github.com/polybar/polybar/pull/2844)) by [@VanillaViking](https://github.com/VanillaViking).
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
- `custom/script`:
|
||||||
|
- No longer produces a completely empty module if the `exec` command failed. It only produces an empty module if the script had a zero exit code. ([`#2857`](https://github.com/polybar/polybar/discussions/2857), [`#2861`](https://github.com/polybar/polybar/pull/2861))
|
||||||
|
- Bumped the script polling interval (not related to the `interval` setting) to decrease wakeups. Polybar may take slightly longer to shut down. [`#2879`](https://github.com/polybar/polybar/pull/2879)
|
||||||
- `internal/fs`: Use `/` as a fallback if no mountpoints are specified ([`#2572`](https://github.com/polybar/polybar/issues/2572), [`#2705`](https://github.com/polybar/polybar/pull/2705))
|
- `internal/fs`: Use `/` as a fallback if no mountpoints are specified ([`#2572`](https://github.com/polybar/polybar/issues/2572), [`#2705`](https://github.com/polybar/polybar/pull/2705))
|
||||||
- `internal/backlight`:
|
- `internal/backlight`:
|
||||||
- Detect backlight if none specified ([`#2572`](https://github.com/polybar/polybar/issues/2572), [`#2728`](https://github.com/polybar/polybar/pull/2728))
|
- Detect backlight if none specified ([`#2572`](https://github.com/polybar/polybar/issues/2572), [`#2728`](https://github.com/polybar/polybar/pull/2728))
|
||||||
@ -49,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Error reporting for deprecated config values ([`#2724`](https://github.com/polybar/polybar/issues/2724))
|
- Error reporting for deprecated config values ([`#2724`](https://github.com/polybar/polybar/issues/2724))
|
||||||
- Also monitor include-files for changes when --reload is set ([`#675`](https://github.com/polybar/polybar/issues/675), [`#2759`](https://github.com/polybar/polybar/pull/2759))
|
- Also monitor include-files for changes when --reload is set ([`#675`](https://github.com/polybar/polybar/issues/675), [`#2759`](https://github.com/polybar/polybar/pull/2759))
|
||||||
- `internal/xwindow`: module does not crash when a tag is not provided in format ([`#2826`](https://github.com/polybar/polybar/issues/2826), [`#2833`](https://github.com/polybar/polybar/pull/2833)) by [@VanillaViking](https://github.com/VanillaViking)
|
- `internal/xwindow`: module does not crash when a tag is not provided in format ([`#2826`](https://github.com/polybar/polybar/issues/2826), [`#2833`](https://github.com/polybar/polybar/pull/2833)) by [@VanillaViking](https://github.com/VanillaViking)
|
||||||
|
- `internal/i3`: module errors when i3 has negative gaps ([`#2888`](https://github.com/polybar/polybar/issues/2888), [`#2889`](https://github.com/polybar/polybar/pull/2889))
|
||||||
|
|
||||||
## [3.6.3] - 2022-05-04
|
## [3.6.3] - 2022-05-04
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -22,6 +22,14 @@ else()
|
|||||||
set(APP_VERSION "${version_txt}")
|
set(APP_VERSION "${version_txt}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set the default installation prefix to /usr
|
||||||
|
# Otherwise the default value is /usr/local which causes the default config
|
||||||
|
# file to be installed to /usr/local/etc, with /usr, cmake has special handling
|
||||||
|
# for this.
|
||||||
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||||
|
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Project-default installation prefix" FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH
|
list(APPEND CMAKE_MODULE_PATH
|
||||||
${PROJECT_SOURCE_DIR}/cmake
|
${PROJECT_SOURCE_DIR}/cmake
|
||||||
${PROJECT_SOURCE_DIR}/cmake/common
|
${PROJECT_SOURCE_DIR}/cmake/common
|
||||||
@ -60,10 +68,9 @@ if(BUILD_TESTS)
|
|||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(BUILD_CONFIG)
|
if(BUILD_CONFIG)
|
||||||
install(FILES ${CMAKE_SOURCE_DIR}/doc/config.ini
|
install(FILES ${CMAKE_SOURCE_DIR}/doc/config.ini
|
||||||
DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME}
|
DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/${PROJECT_NAME}
|
||||||
COMPONENT config)
|
COMPONENT config)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ message_colored(STATUS " BINDIR: ${CMAKE_INSTALL_FULL_BINDIR}" "32")
|
|||||||
message_colored(STATUS " DATADIR: ${CMAKE_INSTALL_FULL_DATADIR}" "32")
|
message_colored(STATUS " DATADIR: ${CMAKE_INSTALL_FULL_DATADIR}" "32")
|
||||||
message_colored(STATUS " DOCDIR: ${CMAKE_INSTALL_FULL_DOCDIR}" "32")
|
message_colored(STATUS " DOCDIR: ${CMAKE_INSTALL_FULL_DOCDIR}" "32")
|
||||||
message_colored(STATUS " MANDIR: ${CMAKE_INSTALL_FULL_MANDIR}" "32")
|
message_colored(STATUS " MANDIR: ${CMAKE_INSTALL_FULL_MANDIR}" "32")
|
||||||
|
message_colored(STATUS " SYSCONFDIR: ${CMAKE_INSTALL_FULL_SYSCONFDIR}" "32")
|
||||||
|
|
||||||
message(STATUS " Targets:")
|
message(STATUS " Targets:")
|
||||||
colored_option(" polybar" BUILD_POLYBAR)
|
colored_option(" polybar" BUILD_POLYBAR)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 86ddf7102c6903ae0cc543071e2d375403fc0727
|
Subproject commit 85b444c06267fbae8e9e06877cae6f03b42acbfb
|
@ -109,7 +109,7 @@ script_runner::interval script_runner::run() {
|
|||||||
* For non-tailed scripts, we only use the first line. However, to ensure interruptability when the module shuts
|
* For non-tailed scripts, we only use the first line. However, to ensure interruptability when the module shuts
|
||||||
* down, we still need to continue polling.
|
* down, we still need to continue polling.
|
||||||
*/
|
*/
|
||||||
if (io_util::poll_read(fd, 25) && !got_output) {
|
if (io_util::poll_read(fd, 250) && !got_output) {
|
||||||
changed = set_output(cmd.readline());
|
changed = set_output(cmd.readline());
|
||||||
got_output = true;
|
got_output = true;
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ script_runner::interval script_runner::run_tail() {
|
|||||||
assert(fd != -1);
|
assert(fd != -1);
|
||||||
|
|
||||||
while (!m_stopping && cmd.is_running() && !io_util::poll(fd, POLLHUP, 0)) {
|
while (!m_stopping && cmd.is_running() && !io_util::poll(fd, POLLHUP, 0)) {
|
||||||
if (io_util::poll_read(fd, 25)) {
|
if (io_util::poll_read(fd, 250)) {
|
||||||
auto changed = set_output(cmd.readline());
|
auto changed = set_output(cmd.readline());
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
|
@ -93,7 +93,7 @@ namespace modules {
|
|||||||
|
|
||||||
m_exit_status = data.exit_status;
|
m_exit_status = data.exit_status;
|
||||||
|
|
||||||
if (data.output.empty()) {
|
if (data.output.empty() && m_exit_status == 0) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "x11/xresources.hpp"
|
#include "x11/xresources.hpp"
|
||||||
|
|
||||||
|
#include "common.hpp"
|
||||||
|
|
||||||
POLYBAR_NS
|
POLYBAR_NS
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
|
Loading…
Reference in New Issue
Block a user