Giter Club home page Giter Club logo

Comments (4)

bthiebault avatar bthiebault commented on June 4, 2024 1

Thanks.

For future users that might have the same issue, what I did in the end was to use sxhkd configuration file, by adding the following lines:

# Volume control
XF86AudioLowerVolume
        pactl set-sink-volume @DEFAULT_SINK@ -5%

XF86AudioRaiseVolume
        pactl set-sink-volume @DEFAULT_SINK@ +5%

XF86AudioMute
        pactl set-sink-mute @DEFAULT_SINK@ toggle

These actually don't depend on eruption's way of working. I just didn't configure my sxhkd daemon properly with my previous keyboard.

from eruption.

X3n0m0rph59 avatar X3n0m0rph59 commented on June 4, 2024

Hi! Thank you for your bug report!

Could you please tell me which distro and what version of it you are using? And what is your current desktop environment?

I have followed the README instructions regarding PulseAudio. However, I'm not sure this was necessary. The README says it needs to be done If you want Eruption to be able to play back sound effects, or use one of the audio visualizer Lua scripts, which I actually don't want. But I figured that if my keyboard must adjust the volume it might better have access to the audio.

If you only want the media keys and volume control knob/mute button to work, then this was not necessary. Eruption translates rotation of the volume control knob to key press events that subsequently need to be handled by your desktop environment. Eruption currently does not adjust the system volume.

Edit:
For the "Master Volume Indicator Overlay" to work correctly, Eruption needs to access pulse audio. (The white overlay effect you are seeing when turning the volume knob) Apparently Eruption is unable to query the master volume of your sound card too.

from eruption.

bthiebault avatar bthiebault commented on June 4, 2024

I use Arch.

I have no DE, only a WM, namely BSPWM with SXHKD. What are the key pressed events I need to listen to to translate to volume modification?

from eruption.

X3n0m0rph59 avatar X3n0m0rph59 commented on June 4, 2024

The respective events are:

code 113 (KEY_MUTE)
code 114 (KEY_VOLUMEDOWN)
code 115 (KEY_VOLUMEUP)

You can see the exact key codes that are emitted by the Eruption Virtual Keyboard device using the evtest utility.

from eruption.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.