mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Add touchscreen keyboard toggle
This commit is contained in:
@@ -4,9 +4,25 @@
|
||||
|
||||
. /etc/profile
|
||||
|
||||
PID="$(pidof wvkbd-mobintl)"
|
||||
if [ "$PID" != "" ]; then
|
||||
killall wvkbd-mobintl
|
||||
else
|
||||
/usr/bin/wvkbd-mobintl -L 350 -fg 6b6b75 -fg-sp 6b6b75 -bg 1d1d1d --text ffffff --text-sp ffffff -fn 50 -l simple --hidden
|
||||
TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled")
|
||||
if [ ! -n "${TSKEY}" ]; then
|
||||
if [ "$DEVICE_HAS_TOUCHSCREEN" == "true" ]; then
|
||||
set_setting "rocknix.touchscreen-keyboard.enabled" "1"
|
||||
else
|
||||
set_setting "rocknix.touchscreen-keyboard.enabled" "0"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
while true; do
|
||||
TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled")
|
||||
if [[ "${DEVICE_HAS_TOUCHSCREEN}" == "true" ]] && [[ "${TSKEY}" == "1" ]]; then
|
||||
PID="$(pidof wvkbd-mobintl)"
|
||||
if [ "$PID" != "" ]; then
|
||||
killall wvkbd-mobintl
|
||||
else
|
||||
/usr/bin/wvkbd-mobintl -L 350 -fg 6b6b75 -fg-sp 6b6b75 -bg 1d1d1d --text ffffff --text-sp ffffff -fn 50 -l simple --hidden
|
||||
fi
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)
|
||||
|
||||
PKG_NAME="emulationstation"
|
||||
PKG_VERSION="dcc9960e7e7637605149f8c71281cc975b4092bf"
|
||||
PKG_VERSION="86f9d35c11ab2efe2beb66eb2938bec88d79cf0e"
|
||||
PKG_GIT_CLONE_BRANCH="master"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/ROCKNIX/emulationstation-next"
|
||||
|
||||
Reference in New Issue
Block a user