fairphone-fp4: add configuration for phosh (MR 2949)
Add scale factor and pre-set tweaks to handle the notch / screen corners on the device.
This commit is contained in:
parent
341a897fbb
commit
a24fb58660
3 changed files with 34 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-fairphone-fp4
|
||||
pkgdesc="Fairphone 4"
|
||||
pkgver=0.2
|
||||
pkgrel=1
|
||||
pkgver=0.3
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
|
@ -14,9 +14,14 @@ depends="
|
|||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
source="
|
||||
deviceinfo
|
||||
gtk.css
|
||||
rootston.ini
|
||||
"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-phosh
|
||||
"
|
||||
|
||||
build() {
|
||||
|
@ -46,6 +51,16 @@ nonfree_firmware() {
|
|||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
||||
install -Dm644 "$srcdir"/gtk.css \
|
||||
"$subpkgdir"/etc/skel/.config/gtk-3.0/gtk.css
|
||||
install -Dm644 "$srcdir"/rootston.ini \
|
||||
"$subpkgdir"/etc/phosh/rootston.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
f6cbf5a753757cd72df609ff9c45172f5d7f8266d9514275fe3d9f56218abb74ee94bc240c97aa728e2a82f4ccf65b1d6ec608eb0c84d5ba6274e631cf6a019a deviceinfo
|
||||
25a93dcbe6dbc6cff24f57cbf5539bc475c5fe0f6bf5e8374c7032b9c38a939bef0aa0cde1707afcc16b1ec2d0859c03c6ee92d80d8048d1c6adc6e25178b85f gtk.css
|
||||
9fef488a655fcbad4fb28c11d7d6cbe385096e766cd99ca59802f1dbc4e3c99dac0ff682549e02fac0b73f7e95db953f3a87c453d1b19b229785e4ffeec515ed rootston.ini
|
||||
"
|
||||
|
|
11
device/testing/device-fairphone-fp4/gtk.css
Normal file
11
device/testing/device-fairphone-fp4/gtk.css
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* TWEAKS-START phosh-clock-notch */
|
||||
.phosh-topbar-clock {
|
||||
margin-left: 100.0px;
|
||||
}
|
||||
/* TWEAKS-END phosh-clock-notch */
|
||||
/* TWEAKS-START phosh-panel-btn-space */
|
||||
.phosh-panel-btn {
|
||||
margin-left: 10.0px;
|
||||
margin-right: 10.0px;
|
||||
}
|
||||
/* TWEAKS-END phosh-panel-btn-space */
|
5
device/testing/device-fairphone-fp4/rootston.ini
Normal file
5
device/testing/device-fairphone-fp4/rootston.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
# /etc/phosh/rootston.ini
|
||||
# Overwrites values set in /usr/share/phosh/phoc.ini
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 3.0
|
Loading…
Reference in a new issue