Do not start lisgd if it is not running (e.g. lockscreen)
This commit is contained in:
parent
96931ce22c
commit
24380603a4
1 changed files with 3 additions and 6 deletions
|
@ -17,8 +17,7 @@ rotnormal() {
|
|||
pkill "$KEYBOARD"
|
||||
xrandr -o normal
|
||||
applyptrmatrix 0 0 0 0 0 0 0 0 0
|
||||
pkill lisgd
|
||||
sxmo_lisgdstart.sh -o 0 &
|
||||
pidof lisgd && pkill lisgd | sxmo_lisgdstart.sh -o 0 &
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
@ -26,8 +25,7 @@ rotright() {
|
|||
pkill "$KEYBOARD"
|
||||
xrandr -o right
|
||||
applyptrmatrix 0 1 0 -1 0 1 0 0 1
|
||||
pkill lisgd
|
||||
sxmo_lisgdstart.sh -o 1 &
|
||||
pidof lisgd && pkill lisgd | sxmo_lisgdstart.sh -o 1 &
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
@ -35,8 +33,7 @@ rotleft() {
|
|||
pkill "$KEYBOARD"
|
||||
xrandr -o left
|
||||
applyptrmatrix 0 -1 1 1 0 0 0 0 1
|
||||
pkill lisgd
|
||||
sxmo_lisgdstart.sh -o -1 &
|
||||
pidof lisgd && pkill lisgd | sxmo_lisgdstart.sh -o -1 &
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue