~martijnbraam/almoports

80ab66cd2a107ad4a6c75c7b8891dae7cfe30fb0 — Sicelo A. Mhlongo 1 year, 6 months ago a1b9f90
device-nokia-n900: improve user experience on i3 (MR 4157)

- fix wifi signal quality display, since /proc/net/wireless is no longer
  available in omap kernel
  Suggested-by: DvaMishkiLapa <thesame.personal@gmail.com>

- add `polkit-elogind` so tools like `loginctl poweroff` and `nmtui` do not
  require sudo under i3wm

[ci:skip-build]: already built successfully in CI
M device/community/device-nokia-n900/APKBUILD => device/community/device-nokia-n900/APKBUILD +3 -3
@@ 3,7 3,7 @@
# Co-Maintainer: Danct12 <danct12@disroot.org>
pkgname=device-nokia-n900
pkgver=9.0
pkgrel=0
pkgrel=1
pkgdesc="Nokia N900"
url="https://postmarketos.org"
arch="armv7"


@@ 137,7 137,7 @@ xkeyboard_config() {

i3wm() {
	install_if="$pkgname postmarketos-ui-i3wm"
	depends="unclutter-xfixes conky feh postmarketos-artwork-wallpapers pm-utils i3blocks"
	depends="unclutter-xfixes conky feh postmarketos-artwork-wallpapers pm-utils i3blocks polkit-elogind"
	install -D -m644 "$srcdir"/i3wm.conf \
		"$subpkgdir"/etc/skel/.config/i3/config
	install -D -m644 "$srcdir"/i3blocks.conf \


@@ 185,7 185,7 @@ a4e9196f8ca31fea6f74af078c1e1df1e7be89b63b5d0d292d7f198cfae5f30247dd002536f0f925
2ae4771eda9b151de3b47dc4e3081eb86b92fc04c4be4b4fbb98c28016762d24008e935bbba8f95ea0732019f615ee43f5d93dacb21bdc3471e505a07a684e26  battery-bq27200
d9ef88c714e9fce8822f63b7a9d7fc3e1ed472c8c876b44ba524d44efea322839f13ddd2fa652420608427ecf7279bfaac302c9b67667f32796ca21da332164d  calendar
82038d38f94cb975a8d38914afca49b64957446bef7490ab684efa1df47ede2ea1c769045789bb9fded673345eea01911fbbf85fdb54c28685cad8022bfaafac  ofono
9791ea5f3f0d1ad4f74e2bc18af2ceccb4b8df6262f1566c67f1fd292928bfc75504d0deed32d24495a0d58ca52a52a97ae5ecd2efc34688631af04b131867ad  wifi
d7f79fa0887110b85dfb676bd426fa76764fbbb8093df89184552838ddb703b62500f61d7cfa8decdb75a542e3ef577cc71ee4c12ed14d6a76827a3f5aa13073  wifi
181187db6d88b872233f594759373f32fd08065ee340b60f0c3ff06396d99f4b1250192d70a054fcc9e51e067f6cc063c62b7d8dfff3427b292f1d0c766db206  40-xkb.conf
dc585e11bf4e06e36c5c62bcc024eaacecc30437d9da5257df14be05e247a2f2bc208874be3058edc6f87cc2877da2ecafd2f627d9b465d4fd24475fc21fdc71  rx51_ch.map
0a3e58a3a81c463937caf508a76461b4cc43f593f0817a52b6581fdd132cc894c0960fe7b950b6e6bfac1fad15cd9dd230c103fcf08a30b44ef7d8fbe31cea28  rx51_fise.map

M device/community/device-nokia-n900/i3wm/scripts/wifi => device/community/device-nokia-n900/i3wm/scripts/wifi +1 -1
@@ 29,7 29,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"

#------------------------------------------------------------------------

QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
QUALITY=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | awk '/^\*/{if (NR!=1) {print $2}}')
IPADDR=$(ip addr show $INTERFACE | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)

#------------------------------------------------------------------------