View Single Post
Posts: 25 | Thanked: 99 times | Joined on Apr 2013
#104
Originally Posted by thp View Post
You mean that the +/- buttons are used for volume control? Should be possible by setting a resource application class. Patches welcome.
I gave it a shot and this was actually very easy to implement following to the Resource Policy docs. You only need to place a single file at /usr/share/policy/etc/syspart.conf.d/apkenv.conf with the following contents:

Code:
[classify gaming]
/usr/bin/apkenv
Afterwards, everything started with apkenv is handled as a game and the +/- keys handle the volume when it is in the foreground.

I sent a pull request to Thomas' repository on github.
 

The Following 4 Users Say Thank You to Raim For This Useful Post: