Silence slider button usage
-
Oneplus 5T has on the left side of the phone a slider button that is used to put the phone on silent mode when the slider is on the top position. That works very well.
But the button has three positions and the middle position has no different signification from the bottom position.
I would like to have, for example, the multimedia muted on the middle position. By multimedia I mean the sounds from the music application or from a website. I see the multimedia volume slider in uVolMan - that is where I got the name for it.
Is there any way I can create a script where I map the middle position of the silence slider to the muting of the multimedia volume?
-
@mihael I guess it's possible. If volume of different audio roles can be adjusted via script, maybe it's
gsettings
for example. Then you can useevtest
to check the details like the keycode of what the toggle use for each state. Then you can go from there. This is just a high level I can think of and I can't help you further -
@kugiigi Great start, thank you! And how can I adjust the volume of multimedia from bash?
-
@mihael I don't know. Perhaps check the source of uVolman. If this is something that can be simple, I can also try creating a custom patch for Lomiri to give you these functions.
-
@kugiigi Hello again.
Through
evtest
I can monitor /dev/input/event2: tri-state-key but then I don't find something similar anywhere ingsettings
... I am stuck here and any hint in the right direction would be much appreciated!Thank you!