Comments (12)
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.
@th-ch,
Thank you for the implementation.
from youtube-music.
@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 contributersUpdate: 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.
Update update: it won't be needed once 964974c is merged
Been waiting for this merge for 6months+ 🤣
from youtube-music.
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.
I thought that the shorcuts plugin allows controlling YTM while it is in a background. Isn't it the case?
from youtube-music.
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.
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.
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.
@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.
@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.
PR #243 added a dedicated keybind changer in shortcuts
plugin options 🙂
from youtube-music.
Related Issues (20)
- App failing to load properly.
- [Bug]: Ads are playing when playing music from the Home Page HOT 5
- [Bug]: Looping one song does not work when crossfade is enabled
- [Bug]: In-Player Ad-Blocker Not Working HOT 5
- [Bug]: Google auth HOT 1
- MALWARE HOT 6
- [Feature Request]: Hide sidebar
- [Feature Request]: Increase padding between the top bar and window controls (macOS) HOT 2
- [Bug]: Couldn't Sign You In HOT 2
- [Bug]: Crossfade mutes song after 3 songs HOT 1
- [Feature Request]: Notification if adding to a playlist that exceeds the Youtube set maximum limit (5000)
- [Bug]: sponsors not being blocked HOT 7
- [Feature Request] Elgato Streamdeck Control HOT 4
- [Feature Request]: Twitch functionalities HOT 1
- [Feature Request]: if possibile, down app volume
- [Bug]: Playback speed slider is not visible HOT 1
- [Feature Request]: Lyrics V2 Plugin HOT 2
- Suggesting An End User Persona HOT 6
- [Bug]: App starts to lag when I select a playlist with alot of songs HOT 6
- [Bug]: Fullscreen cuts off large amount of video with a black bar ontop HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-music.