From 185a56b60eab0eb7cec9da78267f2853b3f7dc46 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 17 Jun 2021 16:37:04 +0200 Subject: [PATCH] fix --- pkg/de-p1st-rotate/PKGBUILD | 6 +++--- .../usr/bin/de-p1st-rotate/de-p1st-auto-rotate | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/de-p1st-rotate/PKGBUILD b/pkg/de-p1st-rotate/PKGBUILD index ba4db16..4be64a1 100644 --- a/pkg/de-p1st-rotate/PKGBUILD +++ b/pkg/de-p1st-rotate/PKGBUILD @@ -2,7 +2,7 @@ _pkgname=rotate _reponame=arch pkgname="de-p1st-$_pkgname" -pkgver=0.0.1 +pkgver=0.0.2 pkgrel=1 pkgdesc="Scripts to automate screen rotation" arch=('any') @@ -16,8 +16,8 @@ sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsu package() { 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 -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-rotate-screen "$pkgdir"/usr/bin/de-p1st-rotate/de-p1st-rotate-screen + 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 } diff --git a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate/de-p1st-auto-rotate b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate/de-p1st-auto-rotate index 23ddb7a..a1aaff3 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate/de-p1st-auto-rotate +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate/de-p1st-auto-rotate @@ -1,4 +1,7 @@ #!/bin/bash +# +# Inspired by https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu + # Output of "monitor-sensor --accel | grep 'orientation'": # === Has accelerometer (orientation: normal)