For the keys, have you tried adding them into your WMs key configuration?Set them to execute xbacklight with the '-inc <percent>' and '-dec <percent>' options respectively.Same for the volume keys, but get them to call 'amixer' like so: amixer -q -c 0 sset Master 5dB+ // increase master volume by 5 decibels
amixer -q -c 0 sset Master 5dB- // decrea
Looking at the amixer man page, the mapping mentioned earlier can be invoked in amixer with the -M flag. So using amixer -M [...] works in the units that you see in alsamixer. These are "more natural for human ear".
Sometimes I'll be listening to a song at 100% volume, and it is not as loud as I would like it to be. I can run pavucontrol and pull the slider to make the output above 100%, but I prefer the command line and am looking for a way to do this from there.
I have the following three lines in my .xbindkeysrc"amixer set Master 1-"
m:0x0 + c:122
XF86AudioLowerVolumeIf I restart X, the audio key does not affect the volume. If I run the command in the terminal, the volume lowers just as expected. When I checked the wiki for Xbindkeys, it said to runxbindkeys -nand hit the troublesome key to see any errors. The od
I'm just using alsa (haven't felt the need to install pulseaudio), so here's what I ended up with:bindsym XF86AudioLowerVolume exec amixer -q set Master 5-bindsym XF86AudioRaiseVolume exec amixer -q set Master 5+bindsym XF86AudioMute exec $(amixer get Master | grep off > /dev/null && amixer -q set Master unmute) || amixer -q set Master muteI didn't even have to edit
I have the logitech k800 keyboard but can't seem to get certain shortcuts working.
I change in the keyboard shortcut settings volume up and down and it actually takes the key assignment but does not take effect when trying to use.
After trying for a while I also tried to create a custom shortcut after with the command amixer -q sset Master 10%-
Finally I tried changing the command to touch a file
I'm using Lubuntu 13.04 and am looking for the command to raise and lower my volume in increments so I can add that command to my lubuntu-rc.xml file thus binding it to my XF86AudioRaiseVolume (i.e. Fn+Uparrow) key.