Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Automatically Loading Profiles

Jeff Backus edited this page Sep 11, 2016 · 2 revisions

AntiMicro 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:

  1. Click Add
  2. Highlight the new recipe.
  3. Click Edit
  4. Browse to the profile you would like to use.
  5. Specify one or more of the Window Title, the Program Executable, or the Window Class (Linux only).

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

Note: Just one of the Title, Program, or Class fields has to match in order to load a profile, but it has to match exactly. For example, if the window title has the ® or ™ symbol, you need to include that in the Title field.

Example of setting up a new profile.

Determining Window Information

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

Checking the Log

Starting with version 2.23, AntiMicro will log window information to the debug log whenever it detects a window change. Debug logging is enabled by specifying the --log-level debug on the commandline. Debug messages are sent to the console, so you will want to redirect the console output to a file. In Windows, open a command shell, cd to where antimicro.exe is and type the following:

antimicro --log-level debug >> antimicro.log

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)

Clone this wiki locally