Some scripts / configurations used to automate my media center
I have a very small media center in my bedroom with:
The PC is running a minimal arch linux installation with Kodi. I'm using a 8Bitdo NES30 bluetooth controller to control this setup. I also have a IRToy v2 connected to the PC allowing me to control the TV and amp.
This repository contains some small tools and configurations I use to automate my setup, with low power usage and convenience in mind.
For detailed specifics on the PC configuration see the ansible playbook used to provision it.
The included bt-power-listener
script is used to listen for connection status
changes for the NES30 controller. The idea is that the power status of the
controller should dicate the media center being 'in use' or not.
Thes two actions will only happen under the condition that Kodi isn't already started and playing a video.
These actions will only happen if Kodi is not currently playing any media. In that case instead a notification will be displayed on screen to alert me to turn the controller back on if it has disconnected.
This simple script is used to switch HDMI inputs on my TV. It will also suspend the bluetooth controller power listener, so that turning off the controler (or having it go into standby) will not trigger the TV and amp to turn off.
The script will bring up a dialog where pressing "OK" will switch back to the first input, this allows the workflow of:
A PKGBUILD file is provided in my PKGBUILDs repository