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

Keyboard shortcuts update #699

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jmatsushita
Copy link

@jmatsushita jmatsushita commented Jun 20, 2023

Fixed a few things in #636

  • Replaced deprecated litteralExample with litteralExpression
  • Some measure of fixing of the generation of an ascii code for the first array element of the parameters dict according to https://stackoverflow.com/a/23318003
  • Added comments to help guide future completionist implementers
  • Worked out a way to activate without restart or relogging based on this resource and seeing that "bumping" the defaults was necessary for activateSettings -u to pick up the change (just changing the plist is not enough, there must be some hidden state that's patched when running defaults write.

Overall, it might be better to convert this into a script which generates defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add magicNumber "<dict></dict>" commands, reusing the machinery for the dict generation. But this is probably a good enough fix for now.

@jmatsushita jmatsushita force-pushed the keyboard-shortcuts-update branch from 7201681 to 26bd639 Compare June 20, 2023 14:22
@Pablo1107
Copy link

What is the status of this PR? I'm interested in knowing how to automate the creation of keyboard shortcuts with Nix and I encountered this.

@jmatsushita jmatsushita force-pushed the keyboard-shortcuts-update branch from 87fe433 to 4dac085 Compare March 25, 2024 16:59
kirelagin and others added 3 commits June 19, 2024 19:59
This commit implements the necessary functions, but only some of the
shortcuts are supported as adding them is a little boring.
@jmatsushita jmatsushita force-pushed the keyboard-shortcuts-update branch from 4dac085 to b761f7b Compare June 19, 2024 17:59
@jmatsushita
Copy link
Author

What is the status of this PR?

Hey @Pablo1107 I can't really say I'm maintaining it... Just rebasing once in a while when I want to get a fresher version of nix-darwin. If you feel like it could be useful, then please try it out and see if it works for you! (in my local flake I use darwin.url = "github:lnl7/nix-darwin/pull/699/head"; in case that's useful).

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

Successfully merging this pull request may close these issues.

3 participants