fix readme image

This commit is contained in:
fred 2026-01-15 09:54:09 -08:00
parent ef77c68b80
commit 199101b294
2 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,5 @@
## Overview:
This project is designed to control a home theater PC (HTPC) with a pepper jobs remote control.
The buttons on the remote control are hard coded to common windows shortcuts, depending on the desktop environment some of these will work as generic shortcuts in linux out of the box, but this project aims to expand their functionality and provide custom commands based on the application that has focus.
@ -12,7 +12,7 @@ Another goal of this project is to simplify modifications by allowing easy custo
Beelink Ser5 Mini PC
<img src="https://kagi.com/proxy/Beelink-SER5.jpg?c=Sry64v3AQdbrqAk1MK4X_IpvYWn_9QPQIHyBL3hdg54PbzBSdWDk3bhAaEiq5NccxPtgmHKAh0Wl7bXyQ9OoBWb-qtRbj6TyTVJ4gtlogBgnigcspYPiYT6yA6ZJZ8PdXo3RkxoGm4TmahnNk3LK8w%3D%3D" width="500px">
<img src="images/beelink.jpg" width="500px">
<a target="_blank" rel="noopener noreferrer" href="https://www.pepper-jobs.com/products/w10-gyro-smart-remote">Pepper Jobs Remote</a>
@ -27,24 +27,28 @@ The computer could be anything, the hardware requirements are what you want to d
The cec adapter is optional, but allows the computer to turn the tv on and off via software which is mapped to the power button on the remote. It is also not necessary if running on a raspberry pi since cec is built into the hardware.
### OS:
I am running EndeavourOS on the computer, but this could be any linux distro with the following software installed.
### Software:
#### required:
Xorg<br>
xfce4<br>
xdotool<br>
wmctrl<br>
#### optional:
libcec # for cec controls<br>
kodi<br>
freetube<br>
spotify<br>
\# other apps etc...<br>
### How it works:
1. The button combos that are hardcoded on the remote are mapped as keyboard shortcuts in xfce to run the buttons.sh script with the button name as $1 when pressed
2. buttons.sh runs get_active_window.sh to find what program is active
3. It then looks for this program in the scripts in the app folder and initializes it if it finds it
@ -52,6 +56,7 @@ spotify<br>
5. If it does not find the button it will look for the button in apps/default_commands.sh and run it if it finds it
### Notes:
find_or_open.sh will check running programs, if what it is looking for is running already it will give it focus, if it is not it will launch the program.
When possible I am using commands that will preform the desired actions in the specified software. If that is not possible instead I simulate key presses using xdotool to use keyboard shortcuts provided by the application.
@ -67,6 +72,7 @@ close is alt+f4,>br?
tab is tab. Additionally, in xfce config, cycle_windows_key is remapped to just tab instead of standard alt + tab, so this button can be used to cycle through open programs.
### Button Names:
\# if no comment the name matches the word(s) on the remote<br>
sleep, # power<br>
main,<br>
@ -91,4 +97,5 @@ split_left, # bottom row right middle<br>
split_right, # bottom row right<br>
#### Future Plans:
In the future I plan to migrate this project to Nixos

BIN
images/beelink.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB