I wrote this because the AUR build of Advanced-Scene-Switcher was not working All I wanted to do was to be able to change my OBS scene to the monitor my mouse was hovering over the corrosponding monitor
requirements:
- hyprland & hyprctl
- OBS + WebSockets
- python3 + WebSockets
- fish shell
It basically just runs in a loop and checks if your monitor is to the left or right of a margin value if it is, it invokes the python script to tell OBS what scene to switch to using WebSockets..
It will automatically just try to switch between whatever the first two scenes are in OBS, and in fact is mostly made with two monitors in mind, so it only checks the horizontal position of the cursor and simply checks if it's above a certain value (Line 12 in switcher.fish)
This can be upgraded by making it check for 2D zones to allow it to change in arbitrary areas