Skip to content

A simpel script that when run, asks for what applications to control and then gives the X-Touch Mini the ability to control the volumes of the audio streams (ex. Browser, Discord, Music Player etc.). Fader controls master volume and play, next, previous and stop buttons are also mapped.

License

Notifications You must be signed in to change notification settings

Quasolaris/X-Touch-Mini-Linux-Volume-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Behringer X-Touch MINI Script to control your audio sources

A simple script that gives the X-Touch Mini by Behringer the ability to control the volumes of audio streams (ex. Browser, Discord, Music Player etc.). The sources to control are set through clicking the buttons beneath the knobs. To set outputs to switch from and to (ex. speakers to headphones and back), click the button next to MC. For all mappings see the image under Implemented Mappings.

This script should also work with other MIDI controllers, but you will need to change the mappings, see the Sources chapter for an explanation on how to do it.

Functionalities

  • Knobs 1 - 8 control the volume of 8 sources chosen with the buttons beneath the knobs (0-127 mapped from 0.0 to 1.0)
  • Knob buttons 1 - 8 (See image below) used to map application
    • Click button and choose an application from the list
  • Fader control the main volume (0-127 mapped from 0 to 100%)
  • Buttons mapped:
    • Play
    • Stop
    • Next
    • Previous
  • MC Button switches between two outputs (ex. Speakers and Headphones), which are set via button next to it
  • Button next to MC (Row 2 button on the bottom) set the outputs
  • Record Button Resets Terminal view, in case error messages made it unreadable

Implemented Mappings

image

Terminal Output

image

Set Sources to control Set Outputs to switch
sources selection output selection

Dependencies

  • playerctl
    • Arch
    • Debian / Ubuntu
    • Other distributions will have it as well

Instructions for using X-Touch MINI

  1. Plugin your Behringer X-Touch MINI
  2. Run aseqdump -l to make sure, your X-Touch MINI is recognized and named X-TOUCH MINI under Client name
  3. If it is named otherwise go to the Script and change the line aseqdump -p "X-TOUCH MINI" to aseqdump -p "WHAT YOUR MIDI CONTROLLER IS NAMED"
  4. Run the script bash midi_control.sh
  5. Follow the instructions
  6. Control your volumes

Instructions to use with other MIDI Controller

Same steps as for X-Touch MINI but you maybe need to change the mappings, for that read the article in the Sources chapter of the README.

Sources

This article by Martin de Reuver made it possible for me to write this script. I tried countless scripts, programs and repos but none worked, which is why I decided to write my own.

About

A simpel script that when run, asks for what applications to control and then gives the X-Touch Mini the ability to control the volumes of the audio streams (ex. Browser, Discord, Music Player etc.). Fader controls master volume and play, next, previous and stop buttons are also mapped.

Topics

Resources

License

Stars

Watchers

Forks

Languages