diff --git a/pkg/de-p1st-rotate/PKGBUILD b/pkg/de-p1st-rotate/PKGBUILD index 4f81079..42b970c 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.12 +pkgver=0.1.0 pkgrel=1 pkgdesc="Scripts to automate screen rotation" arch=('any') @@ -19,10 +19,5 @@ package() { install -Dm0555 usr/bin/de-p1st-rotate-screen "$pkgdir"/usr/bin/de-p1st-rotate-screen install -Dm0555 usr/lib/de-p1st-rotate/get-orientation "$pkgdir"/usr/lib/de-p1st-rotate/get-orientation - install -Dm0555 usr/share/de-p1st-rotate/examples/rotate "$pkgdir"/usr/share/de-p1st-rotate/examples/rotate - install -Dm0555 usr/share/de-p1st-rotate/examples/rotate-inverted "$pkgdir"/usr/share/de-p1st-rotate/examples/rotate-inverted - install -Dm0555 usr/share/de-p1st-rotate/examples/rotate-left "$pkgdir"/usr/share/de-p1st-rotate/examples/rotate-left - install -Dm0555 usr/share/de-p1st-rotate/examples/rotate-normal "$pkgdir"/usr/share/de-p1st-rotate/examples/rotate-normal - install -Dm0644 -o0 etc/de-p1st-rotate/config.cfg "$pkgdir"/etc/de-p1st-rotate/config.cfg } diff --git a/pkg/de-p1st-rotate/README.md b/pkg/de-p1st-rotate/README.md index 46cad29..46c83ca 100644 --- a/pkg/de-p1st-rotate/README.md +++ b/pkg/de-p1st-rotate/README.md @@ -2,16 +2,37 @@ * https://kevinbecker.org/blog/2019/11/21/dell-venue-10-pro-5055-screen-rotation-in-gnome -## usage +## Usage - XFCE4 -In xfce4 one can create shortcuts on their desktop to rotate the screen, -e.g., left or automatically depending on the device orientation: +Create a launcher with an icon symbolising "screen rotation" and use the following command: ```shell -ln -s /usr/share/examples/de-p1st-rotate/rotate-left ~/Desktop/rotate-left -ln -s /usr/share/examples/de-p1st-rotate/rotate ~/Desktop/rotate +de-p1st-rotate-screen ``` +Every time you click on the launcher, the screen gets rotated to the current device orientation. + +## Usage without acceleration sensor - XFCE4 + +Create two launchers, one with icon "arrow left" the other one with "arrow right" +and use the following commands: + +```shell +de-p1st-rotate-screen "left" +``` + +```shell +de-p1st-rotate-screen "normal" +``` + +With these two launchers rotating the scren left into portrait mode or back to landscape mode +is just one quick click away. + + + + + + ## inotifywait **TODO**: Use `ionotifywait` to periodically call the rotation script. @@ -29,4 +50,4 @@ just returns `orientation: undefined`. After I switched to `iio-sensor-proxy-git` it was **working** until I rebooted. Since then it does not work as well ... -**TODO**: Open an issue here: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy \ No newline at end of file +**TODO**: Open an issue here: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy diff --git a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate b/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate deleted file mode 100644 index e3f390b..0000000 --- a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -de-p1st-rotate-screen diff --git a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-inverted b/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-inverted deleted file mode 100644 index 773ce9b..0000000 --- a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-inverted +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -de-p1st-rotate-screen "inverted" \ No newline at end of file diff --git a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-left b/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-left deleted file mode 100644 index 881cb43..0000000 --- a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-left +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -de-p1st-rotate-screen "left" \ No newline at end of file diff --git a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-normal b/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-normal deleted file mode 100644 index 21f7479..0000000 --- a/pkg/de-p1st-rotate/usr/share/de-p1st-rotate/examples/rotate-normal +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -de-p1st-rotate-screen "normal" \ No newline at end of file