This commit is contained in:
Daniel Langbein 2021-06-17 16:37:04 +02:00
parent b552b417c8
commit 185a56b60e
2 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@
_pkgname=rotate _pkgname=rotate
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.1 pkgver=0.0.2
pkgrel=1 pkgrel=1
pkgdesc="Scripts to automate screen rotation" pkgdesc="Scripts to automate screen rotation"
arch=('any') arch=('any')
@ -16,8 +16,8 @@ sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsu
package() { package() {
cd "${_reponame}/pkg/${pkgname}" cd "${_reponame}/pkg/${pkgname}"
install -Dm0544 usr/bin/de-p1st-rotate/de-p1st-rotate-screen "$pkgdir"/usr/bin/de-p1st-rotate/de-p1st-rotate-screen install -Dm0555 usr/bin/de-p1st-rotate/de-p1st-rotate-screen "$pkgdir"/usr/bin/de-p1st-rotate/de-p1st-rotate-screen
install -Dm0544 usr/bin/de-p1st-rotate/de-p1st-auto-rotate "$pkgdir"/usr/bin/de-p1st-rotate/de-p1st-auto-rotate install -Dm0555 usr/bin/de-p1st-rotate/de-p1st-auto-rotate "$pkgdir"/usr/bin/de-p1st-rotate/de-p1st-auto-rotate
install -Dm0644 -o0 etc/de-p1st-rotate/config.cfg "$pkgdir"/etc/de-p1st-rotate/config.cfg install -Dm0644 -o0 etc/de-p1st-rotate/config.cfg "$pkgdir"/etc/de-p1st-rotate/config.cfg
} }

View File

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
#
# Inspired by https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu
# Output of "monitor-sensor --accel | grep 'orientation'": # Output of "monitor-sensor --accel | grep 'orientation'":
# === Has accelerometer (orientation: normal) # === Has accelerometer (orientation: normal)