Skip to content

Automatically Loading Profiles

Paweł Kotiuk edited this page Sep 11, 2021 · 2 revisions

AntiMicroX has the ability to automatically load profiles either based on what was last used or based on what the active window is. This makes life much easier for use on a multimedia machine or for those of with a lot of profiles.

Loading The Last Used Profile On Startup

Automatically loading the last profile on start up is simply a matter of enabling "Auto Load Last Opened Profile" under Options -> Settings -> General and clicking OK.

Snapshot of settings box illustrating enabling of auto load last profile.

Loading A Profile Based On The Active Window

To set up autoloading of profiles by active window, go to Options -> Settings -> Auto Profile. Here, you can specify as many recipes as you'd like. To add a new recipe, click the Add button, which brings up this dialog:

Example of setting up a new profile.

Specify the profile to load in the "Profile" box.

Specify the window information for the target application. Just one of the "Title", "Program", or "Class" fields has to match in order to load a profile. The "Class" field is only applicable on Linux clients. Note that these fields have to match exactly. For example, if the window title has the ® or ™ symbol, you need to include that in the "Title" field. The easiest way to acquire this information is to:

  1. Start the target application
  2. Click the "Detect Window Properties" button in the above dialog.
  3. Follow the instructions.

You can optionally restrict the profile to specific devices using the "Devices" field.

Alternate Ways to Determine Window Information

Correctly determining the window information to use in the above dialog can be a bit tricky. Below are a couple of additional options for determining the correct information.

Using xprop

xprop is a Linux tool that grabs various X11 properties for a given window. It is available in most distributions. To use it, open up a terminal and type xprop and hit enter. After hitting enter, click on the window you want to gather information about. This will dump quite a bit of information to the terminal. The entries that you are interested in are:

  • WM_CLASS (take the name after the comma)
  • WM_NAME (this is the Title field)