import initial version

This commit is contained in:
Izaya 2022-08-27 16:00:45 +10:00
commit 2bcd3b8582
4 changed files with 96 additions and 0 deletions

4
65-lightdm-keyboard.conf Normal file
View File

@ -0,0 +1,4 @@
[greeter]
keyboard=onboard -l Phone -t Nightshade
keyboard-position="50%,center -0;100% 25%"
a11y-states=+keyboard

78
APKBUILD Normal file
View File

@ -0,0 +1,78 @@
# Contributor:
# Maintainer:
pkgname=postmarketos-ui-awesome-mobile
pkgver=1
pkgrel=0
pkgdesc="awesomewm configuration for touchscreens"
url="https://git.shadowkat.net/izaya/awesome-mobile"
arch="noarch"
license="MPL-2.0"
depends="
dnsmasq
lightdm
lightdm-gtk-greeter
onboard
xf86-input-evdev
postmarketos-base-ui
postmarketos-base-ui-x11
networkmanager
networkmanager-cli
networkmanager-openrc
networkmanager-elogind
networkmanager-tui
networkmanager-wifi
networkmanager-wwan
postmarketos-base-ui
pulseaudio
xinput
xorg-server
gnome-console
awesome"
makedepends=""
checkdepends=""
install=""
subpackages=""
options="!check"
source="
awesome-mobile.sh
awesome-mobile.desktop
65-lightdm-keyboard.conf
awesome-mobile.tar.gz::https://git.shadowkat.net/izaya/awesome-mobile/archive/master.tar.gz
awesome-longpress.tar.gz::https://git.shadowkat.net/izaya/awesome-longpress/archive/master.tar.gz
awesome-navbar.tar.gz::https://git.shadowkat.net/izaya/awesome-navbar/archive/master.tar.gz
awesome-launcherpopup.tar.gz::https://git.shadowkat.net/izaya/awesome-launcherpopup/archive/master.tar.gz
awesome-switcherpopup.tar.gz::https://git.shadowkat.net/izaya/awesome-switcherpopup/archive/master.tar.gz
awesome-powermenu.tar.gz::https://git.shadowkat.net/izaya/awesome-powermenu/archive/master.tar.gz
"
builddir="$srcdir/"
package () {
ls "$srcdir"
mkdir -p "$pkgdir/usr/share"
cp -a "$srcdir/awesome-mobile" "$pkgdir/usr/share/awesome-mobile"
cp -a "$srcdir/awesome-longpress" "$pkgdir/usr/share/awesome-mobile/awesome-longpress"
cp -a "$srcdir/awesome-navbar" "$pkgdir/usr/share/awesome-mobile/awesome-navbar"
cp -a "$srcdir/awesome-launcherpopup" "$pkgdir/usr/share/awesome-mobile/awesome-launcherpopup"
cp -a "$srcdir/awesome-switcherpopup" "$pkgdir/usr/share/awesome-mobile/awesome-switcherpopup"
cp -a "$srcdir/awesome-powermenu" "$pkgdir/usr/share/awesome-mobile/awesome-powermenu"
echo "$srcdir/awesome-mobile.desktop" "$pkgdir/usr/share/xsessions/awesome-mobile.desktop"
install -Dm644 "$srcdir/awesome-mobile.desktop" "$pkgdir/usr/share/xsessions/awesome-mobile.desktop"
install -Dm644 "$srcdir/65-lightdm-keyboard.conf" "$pkgdir/etc/lightdm/lightdm-gtk-greeter.conf.d/65-lightdm-keyboard.conf"
install -Dm755 "$srcdir/awesome-mobile.sh" "$pkgdir/usr/bin/awesome-mobile.sh"
find "$pkgdir/usr/share/awesome-mobile" -name README.md -delete
find "$pkgdir/usr/share/awesome-mobile" -name LICENSE -delete
find "$pkgdir/usr/share/awesome-mobile" -type f -exec chmod 644 -- {} +
find "$pkgdir/usr/share/awesome-mobile" -type d -exec chmod 755 -- {} +
}
sha512sums="
ce990b5e6269b94bd91a07388b52890156eda21fd4b61ae1729319213e8b953b00ef80de5dd05da45db423f584708c74194e67321a28c96c3f36bd21f5dc9766 awesome-mobile.sh
8f51346f42b06fff9dce0c1809c8c35552fc8118592784e5f482c2ab49bca4660e115a959fcc95757d6179b4834748a72b93550c5eb1b0203a9fea520e35eb6b awesome-mobile.desktop
8d5a6789deac75dfec1ed9662e6d6a5addf53c3f2e31ccb929da02a7dd7cde7f4bc4a5b3a0b863328b49c36827e104b1506417dd10f35ebd8ba0f25d8da0bcc1 65-lightdm-keyboard.conf
fdfdcd5542e48e899369f08ba49a8ac93da81926179c611b2148666f838fc1cfbd37a290cf2af24c8a5a9896166fcb31ac065d6051d214a516d019259b7fdd61 awesome-mobile.tar.gz
ecce7ec21e6fea5e42ea4b40baffe875a5610207b33665502bd3da423173e034e91a198e0ae86e1faa61ffca81919cbf68781edb0c5b34aa148b6ccbbb638be3 awesome-longpress.tar.gz
9399941b4710f0c11eb9898ae4d40a46593ed3d9ce37655f07c934292aa8e2219c60b88bd9244ebac646256ed8c2d2c88d3d9f0e66cd826a9ec1f29de2dc1d0c awesome-navbar.tar.gz
b455c371d7d9061422491530ab6634e92e4d4599837dcde4eb8ce6f9832dd7c827279c41d891bf6124f3aaf4ee87f5d872ba70c631442139756f17a05120ce2e awesome-launcherpopup.tar.gz
21e870c7d2df4d4643720502536a81624a0bc2e8481d86fcff31526cbe744d3cdb8d00d35a16a747845059f2d327123523901bc9e8d75ccd365b2ff79fc18aeb awesome-switcherpopup.tar.gz
a038b93beb5d1a081507408a5af5f8f2500cf2ca081bce9e725fd5c75c50179b38ca5b4139ea21803a410251472bbeaf68c7dd5842cdf75fd29f75aac55d3790 awesome-powermenu.tar.gz
"

6
awesome-mobile.desktop Normal file
View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=awesome-mobile
Comment=Highly configurable framework window manager, now with touchscreen configuration!
TryExec=awesome-mobile.sh
Exec=awesome-mobile.sh
Type=Application

8
awesome-mobile.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# This script will check for a user configuration file, and if it exists, run
# awesome-mobile from there. Otherwise, it runs from /usr/share.
if [ -f ~/.config/awesome-mobile/rc.lua ]; then
awesome --search ~/.config/awesome-mobile/ --search /usr/share/awesome-mobile/ -c ~/.config/awesome-mobile/rc.lua
else
awesome --search /usr/share/awesome-mobile/ -c /usr/share/awesome-mobile/rc.lua
fi