feat: new brave tab shortcut
This commit is contained in:
parent
e956f01761
commit
d12d395e41
3 changed files with 27 additions and 0 deletions
|
@ -67,6 +67,28 @@
|
|||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "New Brave tab",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "n",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"option",
|
||||
"command"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"shell_command": "osascript /Users/teidesu/.config/new-brave-tab.scpt"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
4
users/teidesu/assets/new-brave-tab.scpt
Normal file
4
users/teidesu/assets/new-brave-tab.scpt
Normal file
|
@ -0,0 +1,4 @@
|
|||
tell application "Brave Browser"
|
||||
activate
|
||||
tell front window to make new tab at after (get active tab)
|
||||
end tell
|
|
@ -45,5 +45,6 @@
|
|||
|
||||
home.file.".config/alacritty/alacritty.toml".source = ./assets/alacritty.toml;
|
||||
home.file.".config/karabiner/karabiner.json".source = ./assets/karabiner.json;
|
||||
home.file.".config/new-brave-tab.scpt".source = ./assets/new-brave-tab.scpt;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue