2014-01-02, 06:41
Great plugin, works well on Ubuntu. I was able to perfect it by mapping some xdotools scripts to unused buttons on my MCE remote on Linux. I think it might be a good idea to have a configurable file for instructions to send in the try statement here: https://code.google.com/p/addonscriptord...ult.py#393
The default logic doesn't work for me because I am not in windowed mode. I hand-modified the code to leave windowed mode, Alt+Tab to switch to Chrome, then F11 to full screen as Kiosk does not work. The 'kiosk' command is supposed to be --app=some_netfilx_url on my version of chrome.
For those interested here is my configuration using lirc, irexec, and xdotools:
~/.lircrc
playpause.sh
alttab.sh
altf4.sh
The default logic doesn't work for me because I am not in windowed mode. I hand-modified the code to leave windowed mode, Alt+Tab to switch to Chrome, then F11 to full screen as Kiosk does not work. The 'kiosk' command is supposed to be --app=some_netfilx_url on my version of chrome.
For those interested here is my configuration using lirc, irexec, and xdotools:
~/.lircrc
Code:
begin
remote = *
prog = irexec
button = KEY_CLEAR
config = /home/username/bin/alttab.sh &
repeat = 0
delay = 0
end
begin
remote = *
prog = irexec
button = KEY_ENTER
config = /home/username/bin/altf4.sh &
repeat = 0
delay = 0
end
begin
remote = *
prog = irexec
button = Star
config = /home/username/bin/playpause.sh &
repeat = 0
delay = 0
end
playpause.sh
Code:
#!/bin/bash
xdotool mousemove 0 5500 click 1 # hide mouse and click on window to make keyboard shortcuts work
xdotool key space # play/pause toggle
exit
alttab.sh
Code:
#!/bin/bash
xdotool key backslash # switch to windowed xbmc
xdotool key Alt+Tab # switch to chrome (assuming xbmc and chrome are the only apps running)
xdotool key F11 # full screen chrome
exit
altf4.sh
Code:
#!/bin/bash
xdotool key Alt+F4 # close chrome
sleep 3 # wait 3 seconds
xdotool key backslash # full screen xbmc
exit