Remove stale 98-jslisten.

This commit is contained in:
fewtarius 2023-01-26 06:11:52 -05:00
parent b388788a49
commit 7e68df1a5f
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -1,70 +0,0 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/os-release
export PATH="$PATH:/usr/local/bin:/usr/bin:/storage/bin"
if [ -e "/storage/.config/jslisten_hotkeys" ]
then
source /storage/.config/jslisten_hotkeys
else
source /usr/config/jslisten_hotkeys
fi
jslisten() {
JSLISTENCONF="/storage/.config/system/configs/jslisten.cfg"
if [ "$1" == "set" ]
then
systemctl stop jslisten
rm /storage/.config/system/configs/jslisten.cfg
if [ "$2" == "mpv" ]
then
cat <<EOF >${JSLISTENCONF}
[Pause]
program="/usr/bin/manage_mpv.sh pause"
button1=${BTN_PAUSE}
[Exit]
program="/usr/bin/manage_mpv.sh quit"
button1=${BTN_QUIT_HOTKEY}
button2=${BTN_QUIT_SELECT}
[Skip5s]
program="/usr/bin/manage_mpv.sh skip5s"
button1=${BTN_SKIP5S}
[Back5s]
program="/usr/bin/manage_mpv.sh back5s"
button1=${BTN_BACK5S}
[Skip60s]
program="/usr/bin/manage_mpv.sh skip60s"
button1=${BTN_SKIP60S}
[Back60s]
program="/usr/bin/manage_mpv.sh back60s"
button1=${BTN_BACK60S}
EOF
fi
cat <<EOF >>${JSLISTENCONF}
[KillAll]
program="/usr/bin/killall ${2}"
button1=${BTN_KILL_HOTKEY}
button2=${BTN_KILL_SELECTA}
button3=${BTN_KILL_SELECTB}
EOF
systemctl start jslisten
elif [ "$1" == "stop" ]
then
systemctl stop jslisten
elif [ "$1" == "start" ]
then
systemctl start jslisten
fi
}