2016-11-20 02:00:31 +00:00
|
|
|
# Maintainer: Michael Carlberg <c@rlberg.se>
|
|
|
|
# Contributor: Michael Carlberg <c@rlberg.se>
|
|
|
|
_pkgname=polybar
|
|
|
|
pkgname="${_pkgname}-git"
|
Release 3.3.0 (#1543)
### Breaking Changes:
None
### Changelog
**New Config Options**
The following config options were added
In the `[settings]` section:
* `pseudo-transparency`
In `internal/cpu`:
* `ramp-coreload-spacing`, spacing between elements in `<ramp-coreload>` elements
* `%percentage-sum%` in `label`. Shows sum of all percentages
In `custom/script`:
* `double-click-left`
* `double-click-middle`
* `double-click-right`
In `internal/pulseaudio`:
* `interval`, volume increase and decrease steps in percentage points
In `internal/memory`:
* `bar-swap-used`
* `bar-swap-free`
* `ramp-swap-used`
* `ramp-swap-free`
**Deprecations**
* `tray-transparent` in the bar section is no longer used. The tray now always uses pseudo-transparency
**Features**
* volume: adjustable volume steps (#1364), see #1361
* memory: Add progress bars and ramps for swap (#1325)
* render: pseudo-transparency (always used in the tray) (#595)
* cpu:
* Configurable spacing in between coreloads (#1472), see #1389
* Non-normalized cpu load (#1517), see #1516
* script: Double click actions (#1442)
* net: Support for bridge interfaces (#1528), see #1522
* token: zero pad tokens when min-width value starts with a `0` (#1341), see #1332
**Fixes**
* config: Use font patterns detected on system in sample config (#1350)
* net: Disconnected module when SSID is only an emoji (#1371), see #1367
* tray: Tray overlapping with bar (#1392), see #591
* build: Several build errors (#1395, #1454, #1470, jaagr/xpp#12, #1493), see #1447, #1469, #750, #1492
* mpd: format-online-prefix not working (#1402), see #1399
* font: Crash for some font-patterns (#1451), see #1435
* script:
* Only `%counter%` or `%pid%` token usable, never both (#1456)
* click actions with colons in them (#1457), see #984
* renderer: Bar locks up when xorg composite extension is disabled (#1430), see #1425
2018-12-23 20:36:30 +00:00
|
|
|
pkgver=3.3.0
|
Release 3.2.0 (#1338)
Breaking Changes:
* `0 < label-NAME-maxlen < 3` will now throw an exception and disable the containing module, if ellipsis is enabled for that label. (#1198)
Changelog:
Deprecations:
* `internal/volume` is now called `internal/alsa` (#967)
* temperature: The `%temperature%` is deprecated in favor of `%temperature-c%`(#897)
* mpd: `icon-repeatone` is deprecated in favor of `icon-single` (#1295), see #1279
Features:
* feat(mpd): Add support for icon-consume (#861)
* feat(bspwm): Add workspace separator (#942)
* feat(i3): Add workspace separator (#938), see #929
* feat(build): Make polybar build on FreeBSD (#931, jaagr/xpp#8), see #239
* feat(volume): Add pulseaudio backend (#779)
* feat(script): Add %pid% token for tail commands (#934)
* feat(temp): Add temperature tokens without unit (#897)
* feat(memory): Add memory used/free ramp (#1038), see #1037
* feat(memory): Add swap tokens (#1018)
* feat(net): Add unknown-as-up option (#1077), see #457
* feat(config): Support fractional size and offset (#972), see #953
* feat(xwindow): Add label-empty (#1136)
* feat(battery): Add animation-discharging (analog to animation-charging) (#1190)
* feat(config): Support pixel offset for bar size and offset values (#1224)
* feat(mpd): Add `%album-artist%` token (#1263)
* feat(net): Add local_ip6 token (#1239), see #1234
* feat(net): Add nl80211 support (#1009), see #277
Fixes:
* fix(mpd): Wrong elapsed time when after standby (#921), see #915
* fix(config): Wrong min, maxlen when using the same token multiple times (#974), see #971
* fix(battery): use power_now correctly (#958), see #928
* fix(mpd): Crash when mpd isn't running (#983), see #979
* fix(xworkspaces): Respect 'enable-scroll' (#1002)
* fix(xbacklight): Respect 'enable-scroll' (#1014)
* fix(build): support xcb-proto >=1.13 (jaagr/xpp#11), see #973
* fix(mpd): Respect MPD_HOST env variable (#1025), see #1007
* fix(i3): Reconnect i3 IPC socket on restart/error (#1099), see #762
* fix(cursor): Occasional crash on mouseover (#1124), see #1117
* fix(net): Mark 'not connected' on querying failure (#1171), see #1163
* fix(gcc): Fix -Wstringop-truncation warning (#1216, jaagr/i3ipcpp#7), see #1215
* fix(builder): Don't truncate colors with same channels (#1217), see #1183
* fix(bspwm): Consistent behavior when scrolling through multiple desktops (#986), see #981
* fix(builder): Respect label-ellipsis option (#1198), see #1194
2018-07-23 13:17:29 +00:00
|
|
|
pkgrel=1
|
2016-11-20 02:00:31 +00:00
|
|
|
pkgdesc="A fast and easy-to-use status bar"
|
|
|
|
arch=("i686" "x86_64")
|
|
|
|
url="https://github.com/jaagr/polybar"
|
|
|
|
license=("MIT")
|
2017-09-12 03:26:00 +00:00
|
|
|
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor")
|
2018-01-20 21:56:01 +00:00
|
|
|
optdepends=("alsa-lib: alsa module support"
|
|
|
|
"pulseaudio: pulseaudio module support"
|
2016-11-20 02:00:31 +00:00
|
|
|
"libmpdclient: mpd module support"
|
2018-06-19 11:33:58 +00:00
|
|
|
"libnl: network module support"
|
|
|
|
"wireless_tools: network module support (legacy)"
|
2016-11-20 02:00:31 +00:00
|
|
|
"jsoncpp: i3 module support"
|
2018-03-18 23:59:26 +00:00
|
|
|
"i3-wm: i3 module support"
|
2016-11-20 02:06:03 +00:00
|
|
|
"ttf-unifont: Font used in example config"
|
2016-12-23 16:04:38 +00:00
|
|
|
"siji-git: Font used in example config"
|
2018-08-07 15:04:42 +00:00
|
|
|
"xorg-fonts-misc: Font used in example config"
|
2016-12-23 16:04:38 +00:00
|
|
|
"curl: github module support")
|
2017-01-26 01:37:58 +00:00
|
|
|
makedepends=("cmake" "git" "python" "python2" "pkg-config")
|
2016-11-20 02:00:31 +00:00
|
|
|
provides=("polybar")
|
2017-01-27 03:15:41 +00:00
|
|
|
conflicts=("polybar")
|
2017-01-02 01:32:16 +00:00
|
|
|
install="${_pkgname}.install"
|
2016-11-20 02:00:31 +00:00
|
|
|
source=("${_pkgname}::git+${url}.git")
|
|
|
|
md5sums=("SKIP")
|
|
|
|
|
|
|
|
pkgver() {
|
2017-01-27 03:15:41 +00:00
|
|
|
git -C "${_pkgname}" describe --long --tags | sed "s/-/.r/;s/-/./g"
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2017-01-27 03:15:41 +00:00
|
|
|
git -C "${_pkgname}" submodule update --init --recursive
|
|
|
|
mkdir -p "${_pkgname}/build"
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2017-01-27 03:15:41 +00:00
|
|
|
cd "${_pkgname}/build" || exit 1
|
2016-12-23 16:04:38 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
2017-01-27 03:15:41 +00:00
|
|
|
cmake --build .
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-01-27 03:15:41 +00:00
|
|
|
cmake --build "${_pkgname}/build" --target install -- DESTDIR="${pkgdir}"
|
|
|
|
install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|