Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

volumenup and volumendown #11

Open
ErosLibidus opened this issue Jun 1, 2022 · 1 comment
Open

volumenup and volumendown #11

ErosLibidus opened this issue Jun 1, 2022 · 1 comment

Comments

@ErosLibidus
Copy link

Hello! I have a question. I need to change a button to increase or decrease the volume. How and where can it be configured in the script?
I'm sorry for my English.

@S-trace
Copy link

S-trace commented Jun 1, 2022

Hello.
You can create your configuration based on this config snippet (I configured a gesture to control media playback using mouse move and change the volume using wheel when the Forward mouse button is pressed):

# Forward
cid: 0x56;
action:
{
    type: "Gestures";
    threshold: 50
    gestures: (
        {
            direction: "Up";
            mode: "OnRelease";
            interval: 150;
            action:  {
                type: "Keypress";
                keys: [ "KEY_PLAYPAUSE" ];
            };
        },
        {
            direction: "Down";
            mode: "OnRelease";
            interval: 150;
            action:  {
                type: "Keypress";
                keys: [ "KEY_PLAYPAUSE" ];
            };
        },
        {
            direction: "Left";
            mode: "OnRelease";
            interval: 150;
            action:  {
                type: "Keypress";
                keys: [ "KEY_PREVIOUSSONG" ];
            };
        },
        {
            direction: "Right";
            mode: "OnRelease";
            interval: 150;
            action:  {
                type: "Keypress";
                keys: [ "KEY_NEXTSONG" ];
            };
        },
        {
            direction: "ScrollDown";
            threshold: 1;
            mode: "OnInterval";
            interval: 1;
            action =
            {
                type: "Keypress";
                keys: ["KEY_VOLUMEDOWN"];
            }
        },
        {
            direction: "ScrollUp";
            threshold: 1;
            mode: "OnInterval";
            interval: 1;
            action =
            {
                type: "Keypress";
                keys: ["KEY_VOLUMEUP"];
            }
        },
        {
            direction: "None";
            mode: "OnRelease";
            action =
            {
                type: "Keypress";
                keys: [ "KEY_FORWARD" ];
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants