Deminder / osd-volume-number

Replace the on-screen-display volume level icon with a number
3 stars 2 forks source link

Possible to change increment amount? #1

Closed ghost closed 1 year ago

ghost commented 1 year ago

I love this extension, thanks so much for it!

When I change volume, it increments/decrements in steps of 6 (e.g. volume is 50, pressing Volume Up change it to 56, then 62, etc.). Is there any way this extension could allow changing this step amount?

If not, any suggestions on how else to do so?

Deminder commented 1 year ago

I'm glad you like it!

I think, the +-2 step is precise enough, however, you could set volume-step to 1 with:

dconf write /org/gnome/settings-daemon/plugins/media-keys/volume-step 1

The step VOLUME_STEP_PRECISE=2 with the Shift key is constant. The media-keys VOLUME_DOWN_KEY/VOLUME_UP_KEY are handled here: https://github.com/GNOME/gnome-settings-daemon/blob/0ad4e34c54d848481adeabb46ff8c78789daf1b9/plugins/media-keys/gsd-media-keys-manager.c#L1565-L1579

ghost commented 1 year ago

...however, you could set volume-step to 1 with:

dconf write /org/gnome/settings-daemon/plugins/media-keys/volume-step 1

I just discovered this myself too! Since it's possible to change in Gnome itself, no need for it here then :-)