PJ/apps/kodi.sh

56 lines
840 B
Bash
Raw Permalink Normal View History

2025-06-13 16:09:14 -07:00
kodi(){
play(){
kodi-send --action="PlayPause"
}
forward(){
kodi-send --action="SkipNext"
}
back(){
kodi-send --action="SkipPrevious"
}
split_up(){
sleep .2
xdotool key p
2025-06-13 16:09:14 -07:00
}
move_up(){
sleep .2
xdotool key o
2025-06-13 16:09:14 -07:00
}
search(){
kodi-send --action="VideoLibrary.Search"
}
desktop(){
kodi-send --action="PreviousMenu"
}
refresh(){
kodi-send --action="UpdateLibrary(video)"
}
notification(){
kodi-send --action="ShowSubtitles"
}
settings(){
kodi-send --action="ActivateWindow(10123)"
for i in {0..3}
do
kodi-send --action="Down"
done
kodi-send --action="Select"
}
fast_forward(){
kodi-send --action="NextPreset"
}
rewind(){
kodi-send --action="PreviousPreset"
}
split_right(){
kodi-send --action="LockPreset"
}
file_explorer(){
kodi-send --action="ActivateWindow(12901)"
}
}