When I change the volume using my laptop's dedicated volume-control buttons, a pretty notification is displayed on the top right.

I have recently started using my laptop with a dock. My external keyboard does not have dedicated volume buttons. I have mapped the scroll-lock/pause-break to "amixer -D pulse sset Master playback 5%-/+". Doing so does indeed change the volume, but now the volume-change notification does not display. How do I make the notification appear when I change the volume using shortcuts on my external keyboard?

1 Answer 1


Install the xdotool package, and try using the following commands instead:

xdotool key XF86AudioLowerVolume


xdotool key XF86AudioRaiseVolume
  • Worked like a charm. Ta mate! Also, is there any way to register repeated keystrokes if I keep the key pressed?
    – smalltimer
    Commented Nov 25, 2015 at 18:34
  • @smalltimer hmm. I'm going to say no to that, but you can always ask a new question. Either here or on Ask Ubuntu - they're more into scripting. Don't say you are using elementary OS, though. Post the link here when you ask :)
    – user3
    Commented Nov 25, 2015 at 18:36
  • Gotcha. Thanks anyway. Will post link if/when I find the answer. Cheerio now
    – smalltimer
    Commented Nov 25, 2015 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.