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

How can I add multiple key presses after running a shell script? #233

Open
robokonk opened this issue Oct 15, 2023 · 0 comments
Open

How can I add multiple key presses after running a shell script? #233

robokonk opened this issue Oct 15, 2023 · 0 comments

Comments

@robokonk
Copy link

This is my config Karabiner.edn file.

{
 :profiles {:Default {:default true
                      :sim 50 ;;
                      :delay 500 ;;
                      :alone 1000 ;;
                      :held 500 ;;
}} 

 :templates {:echo "echo \"%s\""
             :open "open \"%s\""
             :open-app "open -a \"%s\""} ;; templates

 :simlayers {:launch-mode {:key :o}} ;; layers

 :tos {
       :toggle_caps {:key :caps_lock :hold_down_ms 100}}
 :main [
        {:des "launch mode: quick launch applications"
         :rules [:launch-mode 
                 [:b
                     [:open-app "obsidian" [:key :left_command :left_shift :f]]]]}]}

How should I rewrite this element?

  :rules [:launch-mode 
                 [:b
                     [:open-app "obsidian" [:key :left_command :left_shift :f]]]]

I want to open "Obsidian" in the shell. Then, in Karabiner, I need to press three keys: Left Command, Left Shift, and F.

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

1 participant