postmarketos-base-eink: add gnome subpackage (MR 4142)

- add dconf file
- add backlight udev rule
This commit is contained in:
Petr Hodina 2023-06-19 10:03:45 +02:00 committed by Stefan Hansson
parent 764d6f8772
commit b9c3ee99cd
No known key found for this signature in database
GPG key ID: 990600ED1DB95E02
4 changed files with 75 additions and 3 deletions

View file

@ -0,0 +1,47 @@
[org/gnome/desktop/a11y/applications]
screen-keyboard-enabled=true
[org/gnome/desktop/a11y/interface]
high-contrast=true
[org/gnome/desktop/a11y/keyboard]
mousekeys-enable=false
stickykeys-enable=true
[org/gnome/desktop/interface]
clock-show-weekday=false
cursor-blink=false
cursor-size=24
cursor-theme='breeze_cursors'
enable-animations=false
font-antialiasing='grayscale'
font-hinting='slight'
font-name='Noto Sans 11'
gtk-theme='Breeze'
icon-theme='breeze'
show-battery-percentage=true
toolbar-style='text'
toolkit-accessibility=true
[org/gnome/desktop/search-providers]
disable-external=false
disabled=['org.gnome.Contacts.desktop', 'org.gnome.Documents.desktop', 'org.gnome.Nautilus.desktop', 'org.gnome.Calendar.desktop', 'org.gnome.Software.desktop', 'org.gnome.seahorse.Application.desktop', 'org.gnome.clocks.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Calculator.desktop', 'org.gnome.Characters.desktop']
sort-order=['org.gnome.Contacts.desktop', 'org.gnome.Documents.desktop', 'org.gnome.Nautilus.desktop']
[org/gnome/desktop/wm/preferences]
action-double-click-titlebar='menu'
button-layout='icon:minimize,maximize,close'
theme='HighContrast'
visual-bell=false
favorite-apps=['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'firefox.desktop', 'com.github.johnfactotum.Foliate.desktop', 'org.gnome.Geary.desktop', 'com.github.xournalpp.xournalpp.desktop', 'libreoffice-writer.desktop', 'org.kde.okular.desktop']
[org/gnome/mutter]
auto-maximize=true
center-new-windows=true
[org/gnome/nautilus/preferences]
click-policy='single'
default-folder-viewer='icon-view'
search-filter-time-type='last_modified'
search-view='list-view'

View file

@ -0,0 +1,5 @@
[org/gnome/shell]
enabled-extensions=['pnhelper@m-weigand.github.com']
[org/gnome/settings-daemon/peripherals/touchscreen]
orientation-lock=true

View file

@ -0,0 +1 @@
SUBSYSTEM=="backlight", ACTION=="add", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

View file

@ -1,7 +1,7 @@
# Maintainer: Petr Hodina <phodina@protonmail.com>
pkgname=postmarketos-base-eink
pkgver=1
pkgrel=0
pkgrel=1
pkgdesc="Base package with some opinionated default for e-ink devices"
# It's worth emphasising the word "opinionated" here, e-ink has some
# obvious differences compared to regular displays, there are cases
@ -15,12 +15,27 @@ license="GPL-3.0-or-later"
options="!check"
source="
001-eink-gschema.override
01-postmarketos-base-eink-settings
02-pine64-pinenote-settings
83-backlight.rules
"
subpackages="
$pkgname-gnome
$pkgname-phosh
"
subpackages="$pkgname-phosh"
builddir="$srcdir/"
package() {
mkdir -p "$pkgdir"
install -Dm644 "$srcdir"/83-backlight.rules \
"$pkgdir"/lib/udev/rules.d
}
gnome() {
install -Dm644 "$srcdir"/01-postmarketos-base-eink-settings \
-t "$subpkgdir"/etc/dconf/db/local.d/
install -Dm644 "$srcdir"/02-pine64-pinenote-settings \
-t "$subpkgdir"/etc/dconf/db/local.d/
}
phosh() {
@ -32,4 +47,8 @@ phosh() {
"$pkgdir"/usr/share/glib-2.0/schemas/001-eink.gschema.override
}
sha512sums="235928ab88d2b941804c0e9d94a057f61f1d4b66f3bbb6f3001101bc53da2f69f867c6f8def1037e586e7d57105ca7c287ad2d2d1c6091beaf828d85a2c9bd49 001-eink-gschema.override"
sha512sums="235928ab88d2b941804c0e9d94a057f61f1d4b66f3bbb6f3001101bc53da2f69f867c6f8def1037e586e7d57105ca7c287ad2d2d1c6091beaf828d85a2c9bd49 001-eink-gschema.override
7ad903eea8a2a970191f6569e1fe1ea5461ae83afb7b7f2bbcc106ed448fb35f07834bf832541960f601f3d507958a16257a2332f5e21aca2f00277fd1568c44 01-postmarketos-base-eink-settings
cd8b019a106773d450ee1c7fbc02ce3141d6f43841ab73a3ac9ad92de5d54012d1f4b9a546f896e476e41f604a4fce1651d9e448d5bcc3a0c0b418a970dd1bad 02-pine64-pinenote-settings
cc2bb8481fcae0c829b170150a109abd1d7d8ff96f58e538d91fce26fa105db981151be2e5ca9883ce3b41017d46673480c7201b8ee4d1a71b25c0efcb918fbe 83-backlight.rules
"