main/postmarketos-ui-sway: fix date FMT in status bar (MR 3811)

busybox date command does not seem to understand the
%l formatting character. Replace with the equivalent
%_I instead.
This commit is contained in:
Alex 2023-01-18 08:20:17 +01:00 committed by Newbyte
parent 04df7ec06b
commit 4bbd01460d
No known key found for this signature in database
GPG key ID: 990600ED1DB95E02
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
# Reference: https://postmarketos.org/uipkg
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=postmarketos-ui-sway
pkgver=3
pkgrel=7
pkgver=3.1
pkgrel=0
pkgdesc="(Wayland) Tiling WM, drop-in replacement for i3wm (DOES NOT RUN WITHOUT HW ACCELERATION!)"
url="https://postmarketos.org"
arch="noarch"
@ -49,6 +49,6 @@ logo_key_alt() {
}
sha512sums="
07d8d0f93e6437b62299baf472242adfb84502420659a6fc3f1bea2e5f64556b409552ee35de1ef1a0806653fdfc504bb222ed3ef488a25fd589f9a4bc734ce9 etc-sway-config
6caaaa313d509a54eaa43e6bc24739f5d8241689dbed268885f6645e79567e3cd9f41d0d8fa43d52fe99587a1d1b6f1669cfecc88220d9ea409feb4f4cd43d3c etc-sway-config
889f10fb247396a11375057f7e81eae0f0b21ec90cd47964e02ba24fc0f6db8bb7678545e3272149535cf0bb6a2019456cc59d06a9564ce4a1797bb434013b78 etc-sway-config.d-00-logo-key.conf
"

View file

@ -211,7 +211,7 @@ bar {
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
status_command while date +'%Y-%m-%d %_I:%M:%S %p'; do sleep 1; done
colors {
statusline #ffffff