mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix
This commit is contained in:
parent
cbc4253ca6
commit
743cf91312
@ -2,7 +2,7 @@
|
|||||||
_pkgname=rotate
|
_pkgname=rotate
|
||||||
_reponame=arch
|
_reponame=arch
|
||||||
pkgname="de-p1st-$_pkgname"
|
pkgname="de-p1st-$_pkgname"
|
||||||
pkgver=0.0.5
|
pkgver=0.0.6
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Scripts to automate screen rotation"
|
pkgdesc="Scripts to automate screen rotation"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# The screen to rotate
|
# The screen to rotate
|
||||||
SCREEN=eDP-1 # other values could be "eDP1" or "HDMI1"
|
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=()
|
||||||
#DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Finger touch' ) # LenovoYoga460
|
#DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Finger touch' ) # LenovoYoga460
|
||||||
#DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Pen stylus' ) # LenovoYoga460
|
#DEVICES+=( 'pointer:Wacom Pen and multitouch sensor Pen stylus' ) # LenovoYoga460
|
||||||
|
@ -18,10 +18,10 @@ case "${ORIENTATION_STR}" in
|
|||||||
ORIENTATION="inverted";
|
ORIENTATION="inverted";
|
||||||
;;
|
;;
|
||||||
*": right-up"*)
|
*": right-up"*)
|
||||||
ORIENTATION="left";
|
ORIENTATION="right";
|
||||||
;;
|
;;
|
||||||
*": left-up"*)
|
*": left-up"*)
|
||||||
ORIENTATION="right";
|
ORIENTATION="left";
|
||||||
;;
|
;;
|
||||||
*": undefined"*)
|
*": undefined"*)
|
||||||
echo "The orientation could not yet be determined. Please rotate the device a bit and try again."
|
echo "The orientation could not yet be determined. Please rotate the device a bit and try again."
|
||||||
|
@ -25,7 +25,7 @@ xrandr --output "${SCREEN}" --rotate "${ORIENTATION}" || {
|
|||||||
|
|
||||||
for i in "${DEVICES[@]}"; do
|
for i in "${DEVICES[@]}"; do
|
||||||
xinput --map-to-output "${i}" "${SCREEN}" || {
|
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
|
FAILURE=true
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user