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

Media keys emulation #147

Open
ghost opened this issue Sep 6, 2020 · 3 comments
Open

Media keys emulation #147

ghost opened this issue Sep 6, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2020

I'am trying to run

skhd -k "sound_up" or
khd -k "play"

but it does not make any effect. Am I understand correct how it should work?

I'am trying to emulate media keys on keyboard not supported by osx.

@koekeishiya
Copy link
Owner

Media keys cannot be synthesized in the current version. They can only be bound as the trigger for some hotkey action.

@yorhodes
Copy link

this might be useful
yorhodes/dotfiles@ce74bcc

@anandkumar89
Copy link

anandkumar89 commented Mar 28, 2024

possible to do this with safari? taking notes while watching video. Need to pause/rewind/forward. Usually I'd move to next screen, hit j/k/l move back finish the notes again go to safari screen hit k and return to notes screen. A simple shortcut to tell safari to play/pause would have been nicer. Any ways I could achieve this ?

I've seen some multiline AppleScript to that searches for specific tab and uses javascript selector to play/pause : here https://www.reddit.com/r/applescript/comments/gb031a/applescript_to_pause_media_in_safari/ but not sure how to use multiline AppleScript with skhd, still new here!

Thanks :)


alternate solution I found : as I also use karabiner-elements, allows remapping key-combinations to media actions (playpause/next/prev). However, this doesn't resolve skipping 10s ahead/back.

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

3 participants