Just wanted to share something I did, still very amateur when it comes to bash, but I wrote a script to disconnect bluetooth controllers after I close my emulator. I’m sure there are better ways to do it, but this is my way of coping having lost DS4Windows PS+Options quick disconnect-

#!/bin/bash

# Run Retroarch flatpak run org.libretro.RetroArch

# Disconnect Controller after Quitting bluetoothctl disconnect 40:1B:5F:C9:94:2C

Just wanted to share as either my search games is weak, or there really isn’t anything out there this straightforward.

Next up, trying to set up antimicrox to enable the same feature… :)

    • jntesteves@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      The last commit on that repository was 7 years ago, seems unmaintained. I wouldn’t recommend using this.

      If someone decides to use it anyway, don’t use their udev rules. Just install steam-devices or game-devices-udev instead. If you don’t have those packages available in your distro, all rules can be found in the git repo https://codeberg.org/fabiscafe/game-devices-udev

      • MrSoup@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        7 months ago

        Yes, it is unmaintained, but it does the job and works well. What the OP is looking for is already there. Since it’s just a simple tool should be ok. Take a look at github’s insights > network, maybe there is an active fork.