GithubHelp home page GithubHelp logo

Comments (12)

Araxeus avatar Araxeus commented on June 18, 2024 2

This is the new way of creating custom keybinds in config.json

"shortcuts": {
    "enabled": true,
    "overrideMediaKeys": false,
    "global": {
        "previous": "Shift+PageDown",
        "playPause": "Shift+Enter",
        "next": "Shift+PageUp"
    }
    "local": {
        "goToSettings": "CommandOrControl+X",
        "maximizeMinimisePlayer": "CommandOrControl+Y",
    }
},

config.json folder path:

  • Windows: %AppData%/Youtube Music (MyUser/AppData/Roaming/Youtube Music)
  • Linux: ~/.config/Youtube Music
  • MacOS: ~/Library/Application\ Support/YouTube\ Music/config.json

from youtube-music.

PolarGoose avatar PolarGoose commented on June 18, 2024 1

@th-ch,
Thank you for the implementation.

from youtube-music.

ActualBest avatar ActualBest commented on June 18, 2024 1

@th-ch
Can I disable shortcuts this way? Would like to use the shortcuts plugin without hijacking my media controls :)
Loving this app btw, thanks so much to u and other contributers

Update: I found a way to disable specific included shortcuts with shortcuts plugin, will make a pr hopefully by the end of Sat

Update update: it won't be needed once 964974c is merged

from youtube-music.

Araxeus avatar Araxeus commented on June 18, 2024 1

Update update: it won't be needed once 964974c is merged

Been waiting for this merge for 6months+ 🤣

from youtube-music.

th-ch avatar th-ch commented on June 18, 2024

Hey @PolarGoose, thanks for the feedback! The shortcuts plugin maps custom bindings to existing shortcuts (eg media keys or ctrl+F for search, etc) but all YTM shortcuts should be supported when the app is in the foreground - do you have an example of shortcut that does not work/did you have custom key bindings in mind?

from youtube-music.

PolarGoose avatar PolarGoose commented on June 18, 2024

@th-ch,

I thought that the shorcuts plugin allows controlling YTM while it is in a background. Isn't it the case?

from youtube-music.

th-ch avatar th-ch commented on June 18, 2024

Hey @PolarGoose, the shortcuts plugins actually adds additional shortcuts in addition to the default YTM ones:

  • media keys (global shortcuts)
  • some new combinations, like ctrl/cmd + F to search (local shortcuts, can only be used when YTM is in the foreground)

Some shortcuts might create issues if registered globally (for example, people might not want to mute/unmute YTM each time they press M) - Do you have a particular shortcut that you would like registered globally in mind?

A possible solution could be to add custom global/local shortcuts entries in the advanced config, this way each user can customize shortcuts like they want!

from youtube-music.

PolarGoose avatar PolarGoose commented on June 18, 2024

@th-ch,

A possible solution could be to add custom global/local shortcuts entries in the advanced config, this way each user can customize shortcuts like they want!

Exactly, I want an ability to assign custom global hotkeys for every local youtube shortcut.

from youtube-music.

th-ch avatar th-ch commented on June 18, 2024

Hey @PolarGoose, support for custom shortcuts has been added in 024ed90 and will ship in the next version! In the advanced options, you can add custom local and global shortcuts with the following format:

"shortcuts": {
    "enabled": true,
    "local": [
        {
            "shortcut": "CommandOrControl+X",
            "action": "goToSettings"
        }
    ],
    "global": [
        {
            "shortcut": "CommandOrControl+Y",
            "action": "maximizeMinimisePlayer"
        }
    ]
},

Shortcut syntax in documented in the Electron doc about accelerators and possible actions are listed in registered actions.

from youtube-music.

ActualBest avatar ActualBest commented on June 18, 2024

@th-ch
Can I disable shortcuts this way? Would like to use the shortcuts plugin without hijacking my media controls :)
Loving this app btw, thanks so much to u and other contributers

from youtube-music.

ActualBest avatar ActualBest commented on June 18, 2024

@th-ch
Can I disable shortcuts this way? Would like to use the shortcuts plugin without hijacking my media controls :)
Loving this app btw, thanks so much to u and other contributers

Update: I found a way to disable specific included shortcuts with shortcuts plugin, will make a pr hopefully by the end of Sat

from youtube-music.

Araxeus avatar Araxeus commented on June 18, 2024

PR #243 added a dedicated keybind changer in shortcuts plugin options 🙂

from youtube-music.

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.