You are not logged in.
This doesn't really bother me much, but I've been curious for a while, so I may as well just ask.
In a gnome-session I am able to control my master volume with a little scrolling wheel built into the front of my laptop. This same wheel has no effect in xfce/openbox/awesome or anything else I've tried. I had a look at gnome's startup applications and found the commands 'gnome-sound-applet' and 'start-pulseaudio-x11' in there. I can start both in xfce/openbox/awesome, the former allows me to control the volume with an icon in the corner, but there's still no use for the scroll wheel.
Again, I'm only asking because I'm curious, but does anyone know of a program I can install or possibly a setting I could edit to give XFCE this same (admittedly frivolous) feature?
Last edited by Kebertx (2012-09-10 15:21:47)
Offline
Does it scroll in clicks, or is it smooth? If it's the former, it could be that the up/down scroll clicks are mapped to XF86RaiseVolume and XF86Lowervolume respectively. If so, then you might be able to map these to a command that lowers/raises your volume in your keyboard configs. I know it's possible in Xfce; not sure about other DEs/WMs.
Last edited by MrCode (2012-09-10 03:58:38)
Offline
Does it scroll in clicks, or is it smooth? If it's the former, it could be that the up/down scroll clicks are mapped to XF86RaiseVolume and XF86Lowervolume respectively.
That was my thought too. I had to map my keyboard volume buttons accordingly in xfce. The commands I used for decrease/increase volume respectively:
/usr/bin/amixer -c 0 set Master 3- unmute
/usr/bin/amixer -c 0 set Master 3+ unmuteLast edited by fukawi2 (2012-09-10 06:09:23)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I guess you could try to use xorg-xev to determine what those "buttons" actually register as. I would imagine that MrCode's guesses of the mappings are likely correct, but xev would be a sure way to find out.
If you are looking for a program separate from XFCE to control it, you could use xbindkeys... I use it with dwm when I am too lazy to go through the loooooong (10 seconds maybe...) compiling process.
Offline
MrCode you were spot on! Tested it out in xev, and sure enough:
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x14d, subw 0x0, time 496782, (165,-12), root:(759,307),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x14d, subw 0x0, time 496785, (165,-12), root:(759,307),
state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2e00001,
root 0x14d, subw 0x0, time 497086, (165,-12), root:(759,307),
state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2e00001,
root 0x14d, subw 0x0, time 497090, (165,-12), root:(759,307),
state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: FalseI just installed xbindkeys and with all three of your wisdoms combined, all has worked like a charm! Thank you arch linux internet people!
Offline