lastfm / lastfm-desktop

The official Last.fm desktop application suite
http://www.last.fm
GNU General Public License v3.0
462 stars 94 forks source link

Mousewheel on tray #17

Closed romuald closed 5 years ago

romuald commented 11 years ago

X11 only

User can use mouse wheel on lastfm tray icon to lower/raise the volume

Mainly inspired from the 1.5 client :)

eartle commented 11 years ago

Couple of things about this. I think the volume change should be a percentage of the total volume range. The volume range is probably always 0 to 1, but I think it might be dependant on the audio backend.

Also, I suspect that this works well when you're getting lots of mouse wheel events to control it, but for the menu options to raise and lower volume, which should be accessible by keyboard shortcuts, the volume change should be a lot larger. Something like 10% of the volume range.

I'll probably pull this into a branch at some point and make some mods myself.