55 lines
840 B
Bash
55 lines
840 B
Bash
kodi(){
|
|
|
|
play(){
|
|
kodi-send --action="PlayPause"
|
|
}
|
|
forward(){
|
|
kodi-send --action="SkipNext"
|
|
}
|
|
back(){
|
|
kodi-send --action="SkipPrevious"
|
|
}
|
|
split_up(){
|
|
sleep .2
|
|
xdotool key p
|
|
}
|
|
move_up(){
|
|
sleep .2
|
|
xdotool key o
|
|
}
|
|
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)"
|
|
}
|
|
|
|
}
|
|
|
|
|