diff --git a/pkg/de-p1st-rotate/PKGBUILD b/pkg/de-p1st-rotate/PKGBUILD index bc5bf57..b0ca8e5 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.5 +pkgver=0.0.6 pkgrel=1 pkgdesc="Scripts to automate screen rotation" arch=('any') diff --git a/pkg/de-p1st-rotate/etc/de-p1st-rotate/config.cfg b/pkg/de-p1st-rotate/etc/de-p1st-rotate/config.cfg index 1d2b7f3..d0404de 100644 --- a/pkg/de-p1st-rotate/etc/de-p1st-rotate/config.cfg +++ b/pkg/de-p1st-rotate/etc/de-p1st-rotate/config.cfg @@ -1,7 +1,7 @@ # The screen to rotate SCREEN=eDP-1 # other values could be "eDP1" or "HDMI1" -# xrandr devices to rotate together with the screen +# xinput devices to rotate together with the screen DEVICES=() #DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Finger touch' ) # LenovoYoga460 #DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Pen stylus' ) # LenovoYoga460 diff --git a/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate b/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate index 57eb54b..b9177d7 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-auto-rotate @@ -18,10 +18,10 @@ case "${ORIENTATION_STR}" in ORIENTATION="inverted"; ;; *": right-up"*) - ORIENTATION="left"; + ORIENTATION="right"; ;; *": left-up"*) - ORIENTATION="right"; + ORIENTATION="left"; ;; *": undefined"*) echo "The orientation could not yet be determined. Please rotate the device a bit and try again." diff --git a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen index c9b5ae6..43233d3 100644 --- a/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen +++ b/pkg/de-p1st-rotate/usr/bin/de-p1st-rotate-screen @@ -25,7 +25,7 @@ xrandr --output "${SCREEN}" --rotate "${ORIENTATION}" || { for i in "${DEVICES[@]}"; do xinput --map-to-output "${i}" "${SCREEN}" || { - echo "Could not map device ${i} to screen ${SCREEN}!"; + echo "Could not map device ${i} to screen ${SCREEN}! Please check output of 'xinput'."; FAILURE=true } done