bind volume up and down to f11 and f12 keys.
Tofloor
poster avatar
osomfinch
deepin
2016-07-16 06:18
Author
Hi! Wanted to say I am imprssed by Deepin. The only function I miss is binding volume up an down function to f11 and f12. How can I do that in Deepin?
Thank you!

Reply Favorite View the author
All Replies
tristar
deepin
2016-07-16 10:29
#1
It's really simple:

1) open control center on right down corner
2) find keyboard shortcuts
3) add new shortcut, name vol up
4) command: amixer -q sset Master 3%+
5) done
6) add new shortcut, name vol down
7) command: amixer -q sset Master 3%-
8) done
9) now just give them right shortcuts and you are done
Reply View the author
osomfinch
deepin
2016-07-16 14:40
#2
https://bbs.deepin.org/post/31255
It's really simple:

1) open control center on right down corner

Thank you mate! But unfortunately it doesn't work.  I did everything as you said. Doesn't work.
"amixer sset Master mute" works though. Weird.
Reply View the author
tristar
deepin
2016-07-16 20:48
#3
Edited by tristar at 2016-7-16 05:52

Replace command with this one for vol up: pactl set-sink-volume 0 +3%
and vol down: pactl set-sink-volume 0 -3%

for me this command is not working, and amixer working, maybe for you will be right one
you can try another one:

amixer -q -D pulse sset Master 3%+
amixer -q -D pulse sset Master 3%-


Reply View the author
osomfinch
deepin
2016-07-25 04:38
#4
https://bbs.deepin.org/post/31255
Replace command with this one for vol up: pactl set-sink-volume 0 +3%
and vol down: pactl set-sink-v ...

I tried these commands but it simply doesn't want to bind. I try to bind it to f12 but it says none.
This problem is very weird. Deepin looks so well thought through and having this porblem is ridiculous.
Reply View the author
osomfinch
deepin
2016-08-05 02:15
#5
So apparently the combination "fn" button + sound buttons work(without any binding). I guess it's ok. But is there a way to make it work by pressing only the sound button?

And many thanks to tristar for trying to help me.
Reply View the author