- https://github.com/andrewfraley/magic_mapper
- https://github.com/RootMyTV/RootMyTV.github.io
watch tail -n 10 /tmp/magic_mapper.log
watch tail -n 10 /tmp/magic_mapper.log
#!/bin/bash | |
# Place at /var/lib/webosbrew/init.d/enable_swap | |
# run chmod +x /var/lib/webosbrew/init.d/enable_swap | |
# Note the homebrew script that executes this won't work if you add an extension like .sh, | |
# so be sure to leave off the extension | |
swapon /home/root/swapfile |
{ | |
"yellow": { | |
"function": "cycle_energy_mode", | |
"inputs": { | |
"reverse_order": false, | |
"notifications": true | |
} | |
}, | |
"blue": { | |
"function": "toggle_eye_comfort", | |
"inputs": { | |
"notifications": true | |
} | |
}, | |
"red": { | |
"function": "reduce_oled_light", | |
"inputs": { | |
"increment": 10, | |
"disable_energy_savings": "True" | |
} | |
}, | |
"green": { | |
"function": "increase_oled_light", | |
"inputs": { | |
"increment": 10, | |
"disable_energy_savings": "True" | |
} | |
}, | |
"9": { | |
"function": "screen_off" | |
}, | |
"disney": { | |
"function": "launch_app", | |
"inputs": { | |
"app_id": "cdp-30" | |
} | |
}, | |
"prime": { | |
"function": "launch_app", | |
"inputs": { | |
"app_id": "youtube.leanback.v4" | |
} | |
}, | |
"alexa": { | |
"function": "launch_app", | |
"inputs": { | |
"app_id": "com.viettel.media.tv360" | |
} | |
} | |
} |
fallocate -l 512M /home/root/swapfile | |
chmod 600 /home/root/swapfile | |
mkswap /home/root/swapfile | |
swapon /home/root/swapfile |