mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Merge pull request #3019 from CvH/9.0/kodi-remote
kodi: add kodi-remote script
This commit is contained in:
commit
bde9f81d8a
@ -279,6 +279,7 @@ post_makeinstall_target() {
|
|||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/cputemp $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/cputemp $INSTALL/usr/bin
|
||||||
ln -sf cputemp $INSTALL/usr/bin/gputemp
|
ln -sf cputemp $INSTALL/usr/bin/gputemp
|
||||||
|
cp $PKG_DIR/scripts/kodi-remote $INSTALL/usr/bin
|
||||||
cp $PKG_DIR/scripts/setwakeup.sh $INSTALL/usr/bin
|
cp $PKG_DIR/scripts/setwakeup.sh $INSTALL/usr/bin
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/share/kodi/addons
|
mkdir -p $INSTALL/usr/share/kodi/addons
|
||||||
|
50
packages/mediacenter/kodi/scripts/kodi-remote
Executable file
50
packages/mediacenter/kodi/scripts/kodi-remote
Executable file
@ -0,0 +1,50 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
|
echo "Supported keys:
|
||||||
|
← ↑ ↓ → Left | Up | Down | Right
|
||||||
|
Context Menu c
|
||||||
|
Player Debug d
|
||||||
|
Fullscreen f
|
||||||
|
Info i
|
||||||
|
Codec Info o
|
||||||
|
Pause p
|
||||||
|
Screenshot s
|
||||||
|
Skin Debug t
|
||||||
|
Stop x
|
||||||
|
Volume Down -
|
||||||
|
Volume Up +
|
||||||
|
Back Backspace
|
||||||
|
Select Enter
|
||||||
|
Quit Remote q or ctrl+c
|
||||||
|
"
|
||||||
|
|
||||||
|
com() {
|
||||||
|
kodi-send --action="$1" > /dev/null 2>&1
|
||||||
|
echo -ne "\r$1\e[K";
|
||||||
|
}
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
read -r -sn1 k
|
||||||
|
case "$k" in
|
||||||
|
A) com "Up";;
|
||||||
|
B) com "Down";;
|
||||||
|
C) com "Right";;
|
||||||
|
D) com "Left";;
|
||||||
|
c) com "ContextMenu";;
|
||||||
|
d) com "PlayerDebug";;
|
||||||
|
f) com "FullScreen";;
|
||||||
|
i) com "Info";;
|
||||||
|
o) com "CodecInfo";;
|
||||||
|
p) com "Pause";;
|
||||||
|
s) com "TakeScreenshot";;
|
||||||
|
t) com "Skin.ToggleDebug";;
|
||||||
|
x) com "Stop";;
|
||||||
|
-) com "VolumeDown";;
|
||||||
|
+) com "VolumeUp";;
|
||||||
|
$'\177') com "Back";;
|
||||||
|
"") com "Select";;
|
||||||
|
q) exit
|
||||||
|
esac
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user