-
I want to use the media key commands for play/pause, next, and previous. With other media players, I bound the key in my Sway config file to run a script that would make an rpc call to the player. I unbound those, hoping that YTM would read the media keys, but it does not. I also tried setting up a global shortcut, but that didn't work either. I tried with overrideMediaKeys true and false. Neither worked.
Or does YTM support an external rpc call to run commands? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found some remote control programs for YTM and was able to determine the remote API from their source code, so I wrote my own CLI tool to control YTM and bound my keys to call that. Here's the tool for anyone who wants to use it or modify it: |
Beta Was this translation helpful? Give feedback.
I found some remote control programs for YTM and was able to determine the remote API from their source code, so I wrote my own CLI tool to control YTM and bound my keys to call that. Here's the tool for anyone who wants to use it or modify it:
https://github.com/j8s0n/ytm-cli/tree/main